Jump to content
43oh

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)?

 

 

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.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...