Jump to content
Sign in to follow this  

Timer triggered A/D on the f5529 ?

Recommended Posts

I would like to trigger the sampling from a timer, but somehow cannot find the required information about the ADC12SHS bits in the ADC12CTL1 register.

The family manual tells me to look in the specific device datasheet for that information, but I can't find it there (the MSP430F5529 datasheet).

Also looked into the mspware C examples, but none uses timer triggered A/D.

Where should I look for that info (which timers can be used, and how to set ADC12SHS bits to use them)?



Share this post

Link to post
Share on other sites


Basically, the timer(s) and ADC are indpendent peripherals.  So, what you do is set a timer at the interval you're interested in and either:

1) In the timer event handler trigger the ADC to read


2) Set a flag that's read in a main loop to trigger the ADC

You might find some guidance here.


Share this post

Link to post
Share on other sites

Hello NurseBob,

There is a hardware connection between timers and ADC, that allows you to trigger the ADC directly from a timer, no need to do it "by hand" in a timer interrupt. This provides constant sampling intervals, independent of any software latencies.

I have been successfully using this feature on MSP430G2553. Now I am porting to F5529, and ran into this problem.

In the mean time, by trial and error, I found that ADC12SHS_1 in ADC12CTL1 will trigger from timer A0.1, but can't find out from which timer ADC12SHS_2 and ADC12SHS_3 trigger. (The family manual clearly says from some timer, but does not specify which,. It refers to the specific device datasheet, but neither can I find the info there.)

I need timers A0 and B (many CCRs) for other tasks, and would like to trigger the ADC from one of the "small" timers, A1 or A2.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this