Background: Need a PIC to complete a feedback loop using a tachometer. PIC will vary a PWM signal based on Tach input.
I need a RS-232 link to a PC but I haven't quite figured out how I want to structure my program due to the limitations of ucontrollers. I've chosen the 16F876 PIC and the PBP compiler.
The PC will send a START/STOP and RPM command via RS232. The motor will then start up and tightly regulate the RPM on the motor as the load changes.
My question is how do I effectively maintain a tight loop on my feedback loop but maintain RS-232 comm with the PC? Do i need to use an interupt? I would like to stream RPM data back to the PC for analysis.
Thanks!
- Nate
Bookmarks