View Single Post
Old 01-20-2011, 01:18 PM   #4245 (permalink)
MPaulHolmes's Avatar
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,155 Times in 754 Posts
Well, the code is mostly similar. It's all just C and is already written. Even the CAN code is tested and works. The pwm period triggers all 4 A/D conversions and generates an interrupt, you do a bunch of stuff inside the interrupt, and do the serial communications when not inside the interrupt. It's really pretty simple.
kits and boards
  Reply With Quote