Gday all
I am mucking around investigating possible problems with a PWM motor drive system ( 12V ) that is controlled by an OEM PIC in a piece of equipment ( telescope drive ).
I want to be able to log the pulse data on both motor supply lines, such that i can read it out to a PC and then investigate the waveforms ( similar to a digital storage CRO ).
The PWM for the motors is 20KHz, thus i will be gettting an approx 50uS period with changing duty cycle as speed changes.
I need to log up to 30secs of continuous data, on both channels simultaneously, at the best sample rate i can get.
I've been going through this now and have myself totally confused.
I will have to write data out to an external EEPROM and that will take time on each write.
As i cant multithread in the PIC, what are the best options available to me, to ensure i can get the minimum constant sample rate over that time span, and dont end up with holes when i have to write data.
Andrew
Bookmarks