This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
I am a newcomer to msp430 platform.I am trying to implement a project in which timerb0 controls sampling sequence of adc12.
Timerb0 works in upmode and in the first half of the period a pulse is generated and when CCR1 hits the half period pulse is stopped.
What I want to do is start sampling after certain clock cycles when the pulse is stopped.Following is my code.My problem is adc12 isr is never triggered .
Thank you for your kind reply Dennis.
As per my problem, yes start and stop conversion functions are called and executed but adc12 never hits the isr.I think my problem is that I have to hard wire timerb output to adc wtih this adc configuration.I tried a double channel repeated conversion.channel 0 for start and stop conversion and channel 1 for actual readings.I hardwired P7.4 (signal generated by timerb) to 6.0 for starting and stopping the conversions.It seems to work but there must be a way to manipulate the sequence with software only.
Thanks,
Tufan
Tobias Oschmann said:In your code I cannot find the ADC12SC bit
tufan takak said:void startConversion(){ADC12CTL0 &= ~ADC12ENC;ADC12IE = 0x01; // Enable ADC12IFG.0ADC12CTL0 |= ADC12ENC; // Enable conversionsADC12CTL0 |= ADC12SC; // Start conversion}
**Attention** This is a public forum