C Programming

From Mech
Jump to navigationJump to search

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.

  1. Digital Inputs
  2. Digital Outputs, by pins, one bit
  3. Digital Outputs, by ports, 8 bits
  4. Analog Inputs
  5. Comparators
  6. PWM outputs, for motor control
  7. Bi-Directional PWM Motor Control
  8. Text output to a serial LCD display
  9. Text output to a parallel LCD display
  10. Analog Output by 8-bit DAC
  11. Analog Output by I2C
  12. Interrupt on Timer for servo cycle
  13. Interrupt on external event
  14. Counters for encoders
  15. Quadrature decoding and counting
  16. Serial communication to a text window
  17. IR communication modulated at 38KHz
  18. Zigbee radio communication
Retrieved from "https://hades.mech.northwestern.edu//index.php?title=C_Programming&oldid=5530"

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 30 November 2007, at 01:12.
  • This page has been accessed 89,881 times.
  • Privacy policy
  • About Mech
  • Disclaimers