Difference between revisions of "C Programming"
From Mech
Jump to navigationJump to search(4 intermediate revisions by the same user not shown) | |||
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, by pins, one bit]] |
||
<li> [[C Example: Digital Outputs (Ports)|Digital Outputs |
<li> [[C Example: Digital Outputs (Ports)|Digital Outputs, by ports, 8 bits]] |
||
<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 |
<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: |
<li> [[C Example: Serial LCD|Text output to a serial LCD display]] |
||
<li> [[C Example: |
<li> [[C Example: Parallel Interfacing with LCDs|Text output to a parallel LCD display]] |
||
<li> [[C Example: Analog Output by 8-bit DAC|Analog Output by 8-bit DAC]] |
|||
<li> [[C Example: Analog Output by I2C|Analog Output by I2C]] |
|||
<li> [[C Example: Interrupt on Timer for servo cycle|Interrupt on Timer for servo cycle]] |
|||
<li> [[C Example: Interrupt on external event|Interrupt on external event]] |
|||
<li> [[C Example: Counters for encoders|Counters for encoders]] |
|||
<li> [[C Example: Quadrature decoding and counting|Quadrature decoding and counting]] |
|||
<li> [[C Example: Serial communication to a text window|Serial communication to a text window]] |
|||
<li> [[C Example: IR communication modulated at 38KHz|IR communication modulated at 38KHz]] |
|||
<li> [[C Example: Zigbee radio communication|Zigbee radio communication]] |
|||
</ol> |
</ol> |
Latest revision as of 00:12, 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.
- Digital Inputs
- Digital Outputs, by pins, one bit
- Digital Outputs, by ports, 8 bits
- Analog Inputs
- Comparators
- PWM outputs, for motor control
- Bi-Directional PWM Motor Control
- Text output to a serial LCD display
- Text output to a parallel LCD display
- Analog Output by 8-bit DAC
- Analog Output by I2C
- Interrupt on Timer for servo cycle
- Interrupt on external event
- Counters for encoders
- Quadrature decoding and counting
- Serial communication to a text window
- IR communication modulated at 38KHz
- Zigbee radio communication