Other Parts Discussed in Thread: ADS8861,
Hi Team,
I want to check the procedure of reading voltage by using ADS8861. Would you help check below procedure for us? Thank you.
Platfrom : Raspberry Pi, SPI speed, = 15.25878906kHz
SPI interface, SDO-O, SCLK, CONVST/CS, SDI
REFIO , REFCAP, connect to cap
DGND, AGND, REFGND, AIN_GND to GND (Raspberry Pi board GND)
AVDD = 5V, DVDD = 3V (Raspberry Pi supply the power)
Program procedure :
RST : high -> delay 1 ms -> low -> delay 1 ms -> high
Register parameters writing :
DEVICE_ID_REG(0x02) -> data (0x00 , 0x0c) (address 0x03 下0x00 data, address 0x02 下0x0c data, )
RST_PWRCTL_REG (0x04) -> data (0x69 , 0x03)
SDI_CTL_REG (0x08) -> data (0x00 , 0x03)
SDO_CTL_REG (0x0C) -> data (0x00 , 0x00)
DATAOUT_CTL_REG (0x0C) -> data (0x55 , 0x08) -> output data word with all Data Flags Enabled
RANGE_SEL_CTL_REG (0x0C) -> data (0x00 , 0x0B) -> internal reference 4.096V , Range = 1.25 *4.096 = 0 ~ 5.12 V
We want to read digital voltage via ADS8861. ( We placed an voltage input on AIN_P.)
Now we can detect the Raspberry Pi Device_ID.
I want to know how to explain the data we read.
Below is our measurement result.
0x00b10c00 (GND)
0x00b13c5c (1.834V)
0x00b23c2d (3.443V)
0x00b27c6d (4.82V)
Regards,
Roy