Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21927

CTSD16 Continuous Conversion with Preload

$
0
0

Hi,

Problem


Utilize the CTSD16 of the MSP430FG6626 to take continuous samples on a single channel at a continuous rate of 244us.

Background

Placing the device in single conversion mode, the CTSD16PREx Preload Value register can be used in conjunction with the CTSD16OSRx register to set an effective modulation clock divider of 250 resulting in a conversion time of 244us. However, based upon section 30.2.10 of the user's guide, this will not be possible in continuous mode due to not being able to write to the CTSD16PREx register until the current conversion is complete with the preload value not applying until the start of the next conversion. This results in conversions not reliably being completed at a rate of 244us due to the software overhead of setting the CTSD16SC bit.

Steps Taken

  • The Single-Conversion, Single-Channel code example, ctsd16_05.c, was modified to use CTSD16OSRx = CTSD16OSR__128 and CTSD16PRE0 = 122 with seemingly correct results.
  • Read sections 30.2.9 and 30.2.10 regarding conversion type and preload use

Question

Is there a way to configure the CTSD16 to take continuous samples at a rate of 244us/sample on a single channel?


Any help is greatly appreciated!

Best Regards,

Mark-


Viewing all articles
Browse latest Browse all 21927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>