Hi All,
I am trying to configure Timer_B0.1 to be the ADC12 sample-and-hold source select on the MSP430F6636. I have set the ADC12SHS bit to ADC12SHS_3 so as to choose TB0.1 accordingly. I have configured Timer_B to have a period of 3ms, to count in Up-Mode, and I have set TB0CCR1 to be less than TB0CCR0. I am able to verify that the timer is counting to TB0CCR0. It appears to be working correctly; however, the ADC does not seem to be performing any conversions. Do I need to select TB0.1 functionality on the output pin in order for the TB0.1 output to reach the ADC? I hope not, because I have already used that pin as GPIO. Any thoughts on what the issue may be?
Thanks,
Zack Bomsta Do I need to select TB0.1 functionality on the output pin in order for the TB0.1 output to reach the ADC?
No.
Some ideas:
Maybe you could post some code related to these questions.
Jeff
Zack Bomsta I have set TB0CCR1
Also, you'll have to start the conversion by setting the ADC12SC (and ENC) bit, or the ADC won't do anythign, whether there is a trigger or not.
The SHP bit controls whether the pulsewidth of TB0.1 controls the samling time, or the internal sampling timer and the SHT_x settings (which of course must be shorter than the TB cycle time, bu tlong enough to sample your signal depending on teh signal source impedance)
_____________________________________Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.
Jeff,
I was failing on number 3. I was making some incorrect assumptions, but taking a few extra steps to identify a completed ADC showed that it is working! I find that it is usually my faulty assumptions that get me in the most trouble. Thanks for your suggestions.
Jens-Michael Gross Also, you'll have to start the conversion by setting the ADC12SC (and ENC) bit, or the ADC won't do anythign, whether there is a trigger or not.
I am not so sure that this is entirely true. I have the ADC performing correct conversions in repeated auto scan mode using TB0.1 as SHS, but I never had to set the ADC12SC in software to get it to work.
Thanks for your response, you have no idea ho much I have learned by reading your posts on various topics!
Zack BomstaJens-Michael Gross Also, you'll have to start the conversion by setting the ADC12SC (and ENC) bit, or the ADC won't do anything, whether there is a trigger or not.I am not so sure that this is entirely true.
Jens-Michael Gross Also, you'll have to start the conversion by setting the ADC12SC (and ENC) bit, or the ADC won't do anything, whether there is a trigger or not.
Zack BomstaThanks for your response, you have no idea ho much I have learned by reading your posts on various topics!