This example reads the current VCCPAUX value from the XADC VCCPAUX status register.
- Prepare command. Prepare the command as described in Command Preparation for reading the XADC VCCPAUX Status register (
0x0E). - Write data to Command FIFO. Write data formatted in step 1 to the devcfg.XADCIF_CMDFIFO register.
- Wait until the Command FIFO becomes empty. Wait until devcfg.XADCIF_MSTS [CFIFOE] = 1.
- Read dummy data from the Read Data FIFO. Read the devcfg.XADCIF_RDFIFO register.
- Format data. Prepare Command for No operation as described in Command Preparation.
- Write data to the Command FIFO. Write the formatted data in step 5 to the devcfg.XADCIF_CMDFIFO register.
- Read the Read Data FIFO. Read the devcfg.XADCIF_RDFIFO register.
- After a read command has been sent to the XADC, the corresponding read data will be available during the next shift period. Therefore, one dummy command write (as shown in step 5) is always needed to push out the last read data.