pokmo

Analog comparator

5 posts in this topic

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

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