Difference between revisions of "Sample code for most PIC18F4520 operations"

From Mech
Jump to navigationJump to search
Line 8: Line 8:
<li> [http://129.105.69.13/pic/CodeSamples/Interrupt2 Periodic servo cycles using interrupt routines; 10mS & faster; Timer 2]
<li> [http://129.105.69.13/pic/CodeSamples/Interrupt2 Periodic servo cycles using interrupt routines; 10mS & faster; Timer 2]
<li> [http://129.105.69.13/pic/CodeSamples/InterruptExternal Interrupts generated by an external pulse]
<li> [http://129.105.69.13/pic/CodeSamples/InterruptExternal Interrupts generated by an external pulse]
<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/RCservoSoft PWM output in software 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/RCservoHard PWM output in hardware for position control of up to two RC servos; Timer 2]
<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/QuadratureSoft Quadrature decoder/counter in software for arbitarily many encoders; 1KHz max]
<li> [http://129.105.69.13/pic/CodeSamples/QuadratureHard Quadrature decoder/counter in hardware for one fast encoder; Timers 0 and 1]
<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]

Revision as of 12:56, 19 December 2007