Hi, I am trying to interface the AFE4403EVM with C and libusb (previously tried to read/write serial port as well). I now run into 2 problems:
1. When I try to set all timing registers to EVM defaults in the GUI software, 4 register changed contents:
- LED1ENDC: want 0x000f9e, got 0x000f0e
- LED1LEDSTC: want 0x0007d0, got 0x000000
- LED1LEDENDC: want 0x000f9f, got 0x000f0f
- ALED2CONVEND: want 0x000f9f, got 0x000f0f
Is there any restrictions on the sequence of writing the registers or any extra steps before I can changed the timing?
2. When I send the start ADC command to the EVM, I receive no response. However, if I send stop ADC command after sending start ADC command, I do have samples streaming to my PC, but the number of samples seems to be infinite rather than what I set. If I send another or more stop ADC commands, the sending will stop as expected. Simply sending 0x0d after the start ADC command does not have the same effects. I have check my code many times and could not figure out what is going on. I wonder if you have any ideas.
Thanks.