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.

ADS1243 sample code

Other Parts Discussed in Thread: ADS1243

Hi

I am working on ADS 1243 ADC to be interfaced with MK61 series controller of freescale. All i have to do is to read the output counts for A0 -A7 input channels supplied with analog voltages. Since i am new to A2D converter i am not able to understand how to start with this.

Can i get any reference code for ADC so that i can know about general flow for getting data from ADC. Some steps for initialization configuration and data reception etc for this ADC. Can i get a sequence of steps of what needs to be done to perform the above task of reading counts form ADC. I will be thankful to you.

  • Hi Vikram,

    Unfortunately I do not have any example code for the ADS1243.  Once the device has been properly connected with respect to supplies, communication, reference, clock, etc., you need to configure the ADS1243 for the desired operation.  You do this by writing to the registers where the descriptions are given starting on page 15 of the datasheet.

    To read and write to the ADS1243 you must adhere to the timing specifications given in the timing diagram shown on page 6 of the datasheet.  The one specifiation that is often missed is the t6 timing, where the command sent must have sufficient time to decode before reading or sending data.  Also, CS is required to be low throughout the entire communication transaction.

    The best way to determine if the conversion has completed and the results are ready to read is by using the DRDY pin.  When DRDY transitions from high to low, the results have been updated and the data is ready to be read from the device.

    Best regards,

    Bob B

  •  

     

    Hi bob thanx for your reply but i  need more info on how to use the ADS1243 analog-to-digital converter. The datasheet provides lots of details on what can be done with the part, I'll call them pieces of the puzzle, but I can't find any info on a procedure to actually put the part to use, I'll call this how to assemble the puzzle. I need a flowchart or sequence of events, such as 'run calibration', 'write to this register,' 'send this command,' 'read the result.' A flowchart or sequence of steps would be of great help.

  • Hi Vikram,

    That is what I already sent you.  There are just too many combinations for me to tell you how you should do something as I have no way of knowing what you want in the end.  I think if you write out what you want your system to do, you will see that you have taken care of 80% of the question yourself.  You need to know what you want the system to do before you can set the registers.  I have no idea which inputs you want to use, or whether you need gain or not.  You may or may not need a buffered input.  These parts are highly integrated and I realize they can be complicated to use.  However, the same part can be used for many applications and sensors.  There is not a single answer here with respect to setting up and using the device.

    Best regards,

    Bob B