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.
|