I'm using the AD7192 ADC for a measurement unit. On startup I do all the configuration and then set the ADC into continuous read mode by writing b'01011100
to the command register.
Now I need to set one of the ADC's GPO during operation what doesn't work. It seems to me like already the write operation to the command register fails - I'm sending b'00101000
.
According to the datasheet(page 31) I've to send this command while the nRDY/DOUT is low, but what I don't understand is, when the nRDY/DOUT is low and I start to clock, the ADC will send the current conversion so the nRDY/DOUT starts alternating.
Did I miss something?
1 Answer 1
Seems like the transition cannot be done in one step. One has to explicitely deactivate the continuous read mode first by writing b01011000
to the command register and then in a second run perform the write operation to the GPO register.
-
\$\begingroup\$ That sounds annoying to have to do that. \$\endgroup\$Andy aka– Andy aka2018年06月08日 13:24:46 +00:00Commented Jun 8, 2018 at 13:24
-
\$\begingroup\$ Think the issue is that if the R/W bit of the first write action to the command register is not '1' (so read) it simply ignores the command. \$\endgroup\$po.pe– po.pe2018年06月08日 13:27:27 +00:00Commented Jun 8, 2018 at 13:27
-
\$\begingroup\$ I guess so but nice find +1 \$\endgroup\$Andy aka– Andy aka2018年06月08日 13:29:59 +00:00Commented Jun 8, 2018 at 13:29