Sample code for most PIC18F4520 operations
From Mech
Revision as of 12:56, 19 December 2007 by
LIMS
(
talk
|
contribs
)
(
diff
)
← Older revision
|
Latest revision
(
diff
) |
Newer revision →
(
diff
)
Jump to navigation
Jump to search
Digital input and output bit-by-bit or byte-by-byte
Reading up to twelve Analog Inputs
Counting pulses with Timer0
Counting pulses with Timer1
PWM outputs for torque control of one or two DC motors; Timer 2
Serial RS232 communication between PIC and a text window
Periodic servo cycles using interrupt routines, 10mS & slower; Timer 0
Periodic servo cycles using interrupt routines; 10mS & faster; Timer 2
Interrupts generated by an external pulse
PWM output in software for position control of up to five RC servos; Timer 3
PWM output in hardware for position control of up to two RC servos; Timer 2
Quadrature decoder/counter in software for arbitarily many encoders; 1KHz max
Quadrature decoder/counter in hardware for one fast encoder; Timers 0 and 1
Analog output using 8 digital lines
Analog output using I2C serial
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
Log in
Navigation
Main Page
Recent changes
Help
Lab Inventory
File List
Most Popular Pages
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
Search