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.

MSP-EXP430F5529

Other Parts Discussed in Thread: MSP430F5529

I am using the MSP430F5529 processor, I have two questions about the ADC_12 timer.

1- I know ADC12SSELx bits in ADC12CTL1 register are used to select the clock source, there are 4 options. How to select a lower frequency clock for example 10 kHz

2-What is the role of the ADC12SH0x bits in register ADV12CTL0, why when using value for x higher than 2 I got syntax error.

3- I can not understand what is the difference between ADC12SHP equal to zero or equal to one.

Thanks

  • 1) Using ADC12SSEL_1 will clock the ADC using ACLK (REFO=32kHz). If you then divide it with ADC12DIV_2 (/3) you'll be roughly 10kHz. Do you really want to clock the ADC slower, or do you want a slower sample rate? (See also CONSEQ and SHS.)

    2) The ADC12SHT0x bits themselves are somewhat cumbersome and usually not useful. There are some useful helper definitions, e.g. you can set ADC12SHT0=2 (16 clocks) using the name ADC12SHT0_2. In CCS you can right-click on one of these names and "go to definition" to see what's provided close by.

    3) The use of ADC12SHP=0 is fairly specialized. Its use is described in User Guide (SLAU208Q) Sec. 28.2.5.1. You'll pretty much always use ADC12SHP=1.

    [Edit: If you haven't already, browse through the "adc" examples in Resource Explorer:

    http://dev.ti.com/tirex/explore/node?node=ACt.3NsUP.t3V3gtuC8DhQ__IOGqZri__LATEST

    ]

  • Hi,

    How about your issue?

    Best Regards

    Johnson

  • Hi,

    I haven’t heard from you for eight days, so I’m assuming you were able to resolve your issue. If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information. If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

    Best Regards,

    Johnson

  • Hi,

    How about your issue?

    Best Regards

    Johnson

**Attention** This is a public forum