Sample code for most PIC18F4520 operations

From Mech
Revision as of 19:14, 18 December 2007 by LIMS (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  • Reading Analog Inputs
  • Counting pulses with Timer0
  • Counting pulses with Timer1
  • Digital input and output bit-by-bit or byte-by-byte
  • Periodic servo cycles using interrupt routines; Timer 0; slow
  • Periodic servo cycles using interrupt routines; Timer 2; fast
  • Interrupts generated by an external pulse
  • PWM outputs for torque control of one or two DC motors; Timer 2
  • PWM output for position control of up to four RC servos; Timer 3
  • Quadrature decoder/counter in software; slow; many
  • Quadrature decoder/counter in hardware; fast; just one; Timers 0 and 1
  • Serial RS232 communication between PIC and a text window
  • Analog output using 8 digital lines
  • Analog output using I2C serial
  • Retrieved from "https://hades.mech.northwestern.edu//index.php?title=Sample_code_for_most_PIC18F4520_operations&oldid=5609"

    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

     
    Powered by MediaWiki
    • This page was last edited on 8 April 2008, at 16:20.
    • This page has been accessed 102,132 times.
    • Privacy policy
    • About Mech
    • Disclaimers