camilasccv
Newbie level 3
- Joined
- Jul 25, 2012
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Rio de Janeiro, Brazil
- Activity points
- 1,317
Hi. I'm using a PIC18F2550 on a Dinamic Positioning system that I'm developing. I'm currently using the PIC to control a single DC Stepper Motor. The PIC receives reference position from the PC through USB. The pulses are then generated by means of a Timer1 interrupt. One thing I've noticed is that if I make the pulse frequency too high, the PIC stops communicating to the PC. For this reason I decided to use a pulse waveform of 360Hz. The problem is that I have to control 8 motors and read data from 3 potentiometers and 3 encoders. I'm thinking that's quite a lot of work for a single PIC. Especially since I have the USB communication that cannot be lost. I was wondering if there's anyone here who has more experience with PIC programming that could give me their oppinion on the possibility or not of using a single PIC and how to do it. I was thinking about using mutiple interrupts, but I'm not sure that's necessary or if it can be done. Thanks.