Hello All!
I'm trying to read back all of the registers from a AD7793 which is on a custom board. I've been successful reading back most of them, however, on a couple of registers bit 1 is incorrect.
For example, when I read back the AD7793 identification register I get back a 0x4A instead of a 0x4B. Sometimes, sporadically I'll read the correct value but not always. It seems as if I do a few reads before reading the ID register I get back the correct value.
This seems to have something to do with timing so I'm wondering if I can increase the delay length? I know there is a parameter delay_usecs in the spi_ioc_transfer struct but I would like to use the half duplex read and write()'s to access my A/D. Any ideas how I can do this? A code snippet would be an immense help.
Thanks!