![]() ![]() The ADC10 module on the MSP430G devices is configured by the user through software. Now the value of 512 or 2048 is the value that would be stored as a variable by the ADC, this can actually be seen in Code Composer Studio and will be demonstrated later on in this tutorial. So using an example we can see what this would mean in real terms, if 1.5V was fed into the ADC input. The ADC12 has also been shown to help illustrate the step size changes and how this affects accuracy. So now that we have the range and the number of sample steps, we can now determine the resolution of the ADC with some simple maths. So from this the voltage range for the ADC can be determined as 0-3 volts. The range is defined as what voltage range the ADC accepts, to find this we need to consult the datasheet for the MSP430G2253, an extracted image from the datasheet can be seen below. So now we understand the term regarding bit size, we need to find the range. 10bit means 2 to the power of 10, or 2x2x2x2x2x2x2x2x2x2x2 which equals 1024, the 1024 is the number of sample steps taken over a given range (in the case of microcontrollers it’s actually 0 to 1023). ADC10 Resolutionįirstly lets clarify what 10bit resolution is and how this maybe relevant to the accuracy of a project. You can find them here Part 1 and Part 2. Suggested reading on the main differences between the 2 types of ADC is the MSP430x2xx Family User’s Guide, which at the time of writing is release SLAU144J hereīefore reading further if you are having trouble understanding how the registers work, and how the C code updates the individual register settings? It would be worth reading my MSP430 Programming Tutorial, Part 1 covers the basics and Part 2 gives clear examples. The MSP430G2253 only incorporates the ADC10, apart from having greater resolution the ADC12 does not differ that much from the ADC10. The ADC10 is a 10bit analog to digital conversion and the ADC12 is a 12bit analog to digital conversion. ![]() The MSP430G series devices are supplied in a number of packages with different specification and peripherals, there are 2 types of ADC, ADC10 and ADC12. Texas Instruments ships the MSP430G2253 microprocessor with the latest Launchpad, the datasheet for the MSP430G2253 can be downloaded here In this MSP430 ADC tutorial the MSP430G2253 will be used as an example. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |