Hello:
I am using the MSP430F2002 and I have a PWM output generated by Timer_A2 ; CCR0 and CCR1. CCR1 also generates an interrupt that calls an ISR to run four selected ADC channel conversions. The goal is to provide precise timing for the first channel converted.
The problem is, I cannot get the conversions to occur except when the program is paused and then step through the code. I can block out the code after one conversion, and that channel will convert at full speed.
Some specific questions:
- I'm using "while" loops in the ISR to wait for conversions to be completed--Is this allowed? The calculated conversion time should finish well before another interrupt occurs.
- Do you have any source for example code for multi-channel manually selected ADC10 conversions? None of the literature I've found shows this for the MSP430. I am wondering if there are some delays that need to be added (I've tried a few).
Any feedback or input is welcomed and appreciated!
Thanks again!
Paul