View Single Post
Old 01-20-2011, 12:18 PM   #4245 (permalink)
MPaulHolmes
PaulH
 
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,202 Times in 765 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