Difference between revisions of "C Programming"

From Mech
Jump to navigationJump to search
Line 3: Line 3:
<ol>
<ol>
<li> [[C Example: Digital Inputs|Digital Inputs]]
<li> [[C Example: Digital Inputs|Digital Inputs]]
<li> [[C Example: Digital Outputs|Digital Outputs]]
<li> [[C Example: Digital Outputs|Digital Outputs, one bit at a time]]
<li> [[C Example: Digital Outputs (Ports)|Digital Outputs (Ports)]]
<li> [[C Example: Digital Outputs (Ports)|Digital Outputs, by ports, 8 bits at a time]]
<li> [[C Example: Analog Inputs|Analog Inputs]]
<li> [[C Example: Analog Inputs|Analog Inputs]]
<li> [[C Example: Comparators|Comparators]]
<li> [[C Example: Comparators|Comparators]]
<li> [[C Example: PWM Motor Control|PWM Motor Control]]
<li> [[C Example: PWM Motor Control|PWM outputs, for motor control]]
<li> [[C Example: Bi-Directional PWM Motor Control|Bi-Directional PWM Motor Control]]
<li> [[C Example: Bi-Directional PWM Motor Control|Bi-Directional PWM Motor Control]]
<li> [[C Example: Timer Interrupts|Timer Interrupts]]
<li> [[C Example: Timer Interrupts|Timer Interrupts]]
<li> [[C Example: Serial LCD|Serial LCD]]
<li> [[C Example: Serial LCD|Text output to a serial LCD display]]
<li> [[C Example: Parallel Interfacing with LCDs|Parallel Interfacing with LCDs]]
<li> [[C Example: Parallel Interfacing with LCDs|Text output to a parallel LCD display]]
</ol>
</ol>

Revision as of 01:04, 30 November 2007

The following files supply simple examples of C programming, and describe the processes which are taking place. These can be copied into the Windows IDE and programmed into a PIC18F4520.

  1. Digital Inputs
  2. Digital Outputs, one bit at a time
  3. Digital Outputs, by ports, 8 bits at a time
  4. Analog Inputs
  5. Comparators
  6. PWM outputs, for motor control
  7. Bi-Directional PWM Motor Control
  8. Timer Interrupts
  9. Text output to a serial LCD display
  10. Text output to a parallel LCD display