Hi Team,
My customer is using ADS7953 in their design. And they want to configure it as Auto-1 mode using SPI. Can you provide some code example?
Regards!
Yangbo
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.
Hi Team,
My customer is using ADS7953 in their design. And they want to configure it as Auto-1 mode using SPI. Can you provide some code example?
Regards!
Yangbo
Yangbo,
I am sorry that I do not have a ready code to share with you, but this device is fairly easy to configure.
Fig 52 of the ADS7953 datasheet describes the steps involved in programming the device for Auto-1 Channel-sequencing mode.
Let us assume that the customer is interested in configuring the device to capture data from Channels 1,3 and 5, in Range 2 and with GPIO0 as output high
Here is the sequence of commands to send over the SDO to configure the device:
>> wr 0x4200 // Device resets all registers in the next CS frame to the reset states (it also resets itself).
>> wr 0x4001 // Configure GPIO0 as a general purpose output
>> wr 0x8000 // Program Register for Auto-1 Frame 1
>> wr 0x002A // Program Register for Auto-1 Frame 2, to select channels Ch1,Ch3 and Ch5
>> wr 0x2C40 // Enable Auto-1 Mode, counter set to lower programmed channel (Ch1), Select Range 2 operation
>> wr 0x2841 // Stay in Auto-1 Mode, enable increment counter, Range 2 operation and GPIO set as output high
The device is now configured and these setting can be retained by driving SDI low. The channel selection will cycle through the 3 channels with each subsequent frame.
Hope this helps. Do let me know if you need any clarifications on this.
Thanks.
Regards,
Sandeep
Thanks for your replay.
I follow your instruction give the below instruction to configure the divice
//we dont use GPIO, so omit the instruction of 0x4200 and 0x4001
>> wr 0x8000 // Program Register for Auto-1 Frame 1
>> wr 0xFFFF // Program Register for Auto-1 Frame 2, to select all 16 channles
>> wr 0x2C00 // Enable Auto-1 Mode, counter set to lower programmed channel (Ch1)
>> wr 0x2841 // Stay in Auto-1 Mode, enable increment counter, Range 2 operation and GPIO set as output high
>> wr 0x000 all
give the instructions above it only give the result of CH15, oscilloscope display
As is shown in Table 7 in the datasheet, to stay in Auto-1 mode, write 0x0000 instead of 0x2841.
And what do you mean by driving SDI low?
Thanks a lot!
Regards!
Yangbo
Yangbo,
You could stay in a given mode by either reprogramming the bits for that mode in every frame or by writing 0x0000 as mentioned in Table 7. By "driving SDI low" I meant writing 0x0000 for no change, as you have correctly mentioned.
Regards,
Sandeep
Tobby,
This looks right.
1. Did you try the same sequence after the 0x4200 register reset command ?
2. Could you please share the schematics?
Regards,
Sandeep