pokmo 0 Posted October 3, 2016 Share Posted October 3, 2016 Hi I wonder if there's an analog comparator built into the MSP430. That is, could an analog comparator be be set up to trigger an interrupt when the voltage on the one pin exceeds the voltage on another pin. Thanks for the help in advance. Quote Link to post Share on other sites
Clavier 34 Posted October 3, 2016 Share Posted October 3, 2016 Many MSP430 models have a comparator. You can find out whether this is the case for your specific model (whatever it is) by looking into the datasheet. Quote Link to post Share on other sites
cubeberg 540 Posted October 3, 2016 Share Posted October 3, 2016 I poked around - not an interrupt based on threshold. You can certainly set up a regular ADC conversion based on a reference pin (the 2553 does support VREF) and write a small amount of code to address the need. There are some 430's that can trigger an ADC conversion on a timer (http://processors.wiki.ti.com/index.php/MSP430_-_Triggering_ADC_Conversion_Using_Timer_Module) that might simplify things a bit. Quote Link to post Share on other sites
Clavier 34 Posted October 4, 2016 Share Posted October 4, 2016 not an interrupt based on threshold. Huh? All MSP430 comparator modules are able to raise an interrupt for this. tripwire and pokmo 2 Quote Link to post Share on other sites
cubeberg 540 Posted October 4, 2016 Share Posted October 4, 2016 @@Clavier - sorry - you're right - I hadn't used Comparator_A - looks like I need to do some more reading in the family guide. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.