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.

reading adc value p1.2 and p1.2 of msp430g2533

Other Parts Discussed in Thread: MSP430WARE

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

-------------

  • Hi kamlesh,

    Now, now you can't seem like your asking someone to work for you or else i would like to get payed for that.

    Try searching here http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Tutorials

  • 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