i need complete code for example to use adc in the msp430g2231 please
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.
i need complete code for example to use adc in the msp430g2231 please
Michele,
No one here will provide complete code. There are many resources to do what you want. First, you will need to be more specific with your request. What do you want to sample? How do you want to sample it?
If you're using Code Composer Studio, I believe the GRACE tool supports the MSP430G2231 and it will generate very good code which you can use. If you look for MSP430G2231 in the parts search and go to the part's main page, you can find example code that will show you how to use the ADC. Just look for a link to a zip file on that page.
Gustavo
Go to http://www.ti.com/msp430 and click on the Code Examples tab near the upper right.
This page has links to sample code for many of the MSP430 device famillies.
Choose the MSP430G2xx1 and download the zip file. Inside the zip you will find many examples using the ADC10 on the G2x31.
Steve
The absolute maximum voltage is the MSPs VCC +0.2V (the clamp diode voltage). The maximum usable input voltage, however, is 1 digits worth below the used reference. Which can be VCC itself, 2.5V, 1.5V or an externally applied reference voltage in the range of 1.4V and VCC.pomari michele said:How is max analog input voltage
**Attention** This is a public forum