Difference between revisions of "Sample code for most PIC18F4520 operations"
From Mech
Jump to navigationJump to searchLine 1: | Line 1: | ||
<li> [http://129.105.69.13/pic/CodeSamples/ |
<li> [http://129.105.69.13/pic/CodeSamples/DigitalIO Digital input and output bit-by-bit or byte-by-byte] |
||
⚫ | |||
<li> [http://129.105.69.13/pic/CodeSamples/Counter0 Counting pulses with Timer0] |
<li> [http://129.105.69.13/pic/CodeSamples/Counter0 Counting pulses with Timer0] |
||
<li> [http://129.105.69.13/pic/CodeSamples/Counter1 Counting pulses with Timer1] |
<li> [http://129.105.69.13/pic/CodeSamples/Counter1 Counting pulses with Timer1] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<li> [http://129.105.69.13/pic/CodeSamples/MotorPWM PWM outputs for torque control of one or two DC motors; Timer 2] |
<li> [http://129.105.69.13/pic/CodeSamples/MotorPWM PWM outputs for torque control of one or two DC motors; Timer 2] |
||
<li> [http://129.105.69.13/pic/CodeSamples/ |
<li> [http://129.105.69.13/pic/CodeSamples/RS232com Serial RS232 communication between PIC and a text window] |
||
⚫ | |||
⚫ | |||
⚫ | |||
<li> [http://129.105.69.13/pic/CodeSamples/RCservoPWM PWM output for position control of up to five RC servos; Timer 3] |
|||
<li> [http://129.105.69.13/pic/CodeSamples/QuadratureSoft Quadrature decoder/counter in software; slow; many] |
<li> [http://129.105.69.13/pic/CodeSamples/QuadratureSoft Quadrature decoder/counter in software; slow; many] |
||
<li> [http://129.105.69.13/pic/CodeSamples/QuadratureHard Quadrature decoder/counter in hardware; fast; just one; Timers 0 and 1] |
<li> [http://129.105.69.13/pic/CodeSamples/QuadratureHard Quadrature decoder/counter in hardware; fast; just one; Timers 0 and 1] |
||
<li> [http://129.105.69.13/pic/CodeSamples/RS232com Serial RS232 communication between PIC and a text window] |
|||
<li> [http://129.105.69.13/pic/CodeSamples/AnalogOutputParallel Analog output using 8 digital lines] |
<li> [http://129.105.69.13/pic/CodeSamples/AnalogOutputParallel Analog output using 8 digital lines] |
||
<li> [http://129.105.69.13/pic/CodeSamples/AnalogOutputI2C Analog output using I2C serial] |
<li> [http://129.105.69.13/pic/CodeSamples/AnalogOutputI2C Analog output using I2C serial] |