Dear Sir,
my value is between from 0-3v on these pins and i want to read it continiously in the two unsigned variable.
please help us in coding in C.
Regards,
kamlesh
-------------
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.
Dear Sir,
my value is between from 0-3v on these pins and i want to read it continiously in the two unsigned variable.
please help us in coding in C.
Regards,
kamlesh
-------------
Kamlesh:
A good starting point would be the msp430g2x33_adc10_01.c or msp430g2x33_adc10_02.c found in
MSP430ware_1_90_00_30\examples\devices\2xx\MSP430G2xx3_Code_Examples\C
You will need to make a few changes to get both samples stored...
Luis, this type of question often is a ‘I don’t know where to start’ rather than a ‘please do it for me’.
Kamlesh: in the product folder of your MSP, there are links to the device datasheet, the users guide and to demo code. The users guide explains how the different modules in the MSP work.
I suggest reading the users guide chapters about:
- clock system
- Timer
- ADC10
For a start, the ADC10 chapter might seem to be enough. And it will help you understanding the ADC demo code (or the tutorial parts about the ADC).
However, if you want to properly time your AD conversions, clock system and timers are the next things to learn about.
And perhaps the digital I/O chapter (so you can signal something through an LED)
Next is the USCI chapter, so you can send the results back to the PC.
If you have specific questions about one of the components, feel free to ask again.
Hi Michael,
Yea, i was not sure which one it was. But i would not neglect directing to some guides i know TI has available on the wiki as i did.
I just seemed that to me. Maybe i was a bit sleepy and grumpy that day
Well, sometimes I’m a bit grumpy too. And the tone of my answer starts to get sarcastic for some requests.
**Attention** This is a public forum