MSP-EXP430F5529 & CCS: Basic use of ADC12_A


Following some examples with the MSP430F5529 and using CCS, it is the turn to use the ADC12_A, which has a resolution of 12 bits, this time we will use the example called "MSP430F55xx_adc_01" included in the folder MSP430F552x Code Examples.

What does this example? Basically it configures to read the voltage through port A0 and attend it by means of an interruption (the system is in LowPowerMode until the interruption takes it out of there), when the voltage in A0 is greater than 0.5 * AVcc (considering that AVcc is connected to VCC, the value should be about 3.3V approximately, I have measured it with my multimeter and walked in the 3.5V) will turn on LED1, otherwise it will remain off.

Circuit:
Now reviewing the schematic of the experimental board, we will note that pin A0 is connected to DB0 (a Touch Pad) which will not serve to demonstrate this example, therefore I have decided to use the potentiometer that has the board, this is connected to A5 (as shown in the following image), to work properly we must activate P1.8 and leave jumper JP2.


Firmware:
Considering these modifications, the code is as follows::
Video
Here is a small working video:


Download:
Here the direct link to DOWNLOAD the available files, you can also check or download the information from my repository on GitHub, if you do not know how to download it you can check here, well for now it's all, if you have doubts, comments, suggestions, concerns, etc. leave them and I will try to answer as soon as possible.


Donations:
If you like the content or if the resources are useful to you, share the link on your social networks or sites where you think it may be of interest, you can also help me with a donation to continue making publications and improve the content of the site. You can also donate in kind, for example components, development boards or tools. Contact me to talk or you can become one of our sponsors.


I ask for feedback notifying each time a link does not work or has errors when opening it, as well as if an image is not visible or does not load, to correct it in the shortest possible time.

Bibliography:

Publicar un comentario

0 Comentarios