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.

ADC 1230 data readout problem

Other Parts Discussed in Thread: MSP430F5529

hi all

please help me

i am using ADC1230 for weigh scale application with MSP430F5529.

ADC configure as internal clock, 10 sps data rate, gain 128, 5 for volt AVDD and reference, 3.3 volt for DVDD.

problem is that, sometimes data received from ADC is correct, but sometimes it is all ones.

i am unable to understand it is hardware or software problem?

please suggest me any thing.

regards 

nikhil

  • Nikhil,

    If you use a timer or delay to read your data you may run into a condition where you read in between updates.  So I guess my question to you would be, when are you determining to read the data? 

    You may want to verify your measurement with an oscilloscope.  You should see that DRDY is going low before the SCLK clocks the data out.  The data as shown on the scope should match the data received in your program.  If you send me your scope shots I can help interpret them.

    Best regards,

    Bob B 

  • thank you sir

    i got solutation.

    i was used 100 ms interrupt for data read, but actually due to mismatch in frequency of data read and data ready

    sometimes data read during time of tupdate therefore it readout as all one's.

    please find movie clip of that time instances.

    solution: now instead of interrupt i used it in main rutine in polling mode.(file in mp4 format)

    where blue trace is 100ms interrupt instances (port pin toggled at 100ms) and yellow trace is data ready signal

    thanks again 

    regards 

    nikhil