User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 758
UG585 (v1.11) September 27, 2016
Chapter 30: XADC Interface
30.4.3 Command Preparation
Example: Prepare Data for Writing to the XADC Register
This example formats data for writing to XADC Configuration Register 1 to set the XADC in
Independent mode. Refer to Table 30-2, page 754.
1. DRP data. Data to set the XADC in independent mode is 8000h. Refer to the XADC Register
Interface section of UG480
.
2. DRP address. The address of the XADC Configuration Register 1 is 0x41.
3. Write command. The command for a write operation is 0010b.
The command to write 8000h in XADC Configuration Register 1 (0x41) is 08418000h.
Example: Prepare Data for Reading from the XADC Register
This example formats data for reading the XADC V
CCPAUX
Status register, 0x0E.
1. DRP data. Data can be any arbitrary data for the read operation (0).
2. DRP address. The address of the XADC V
CCPAUX
Status register is 0x0E.
3. Write command. The command for a read operation is 0001b.
The command to read the XADC V
CCPAUX
Status register, 0x0E, is 040E0000h.
30.4.4 Register Overview
An overview of the PS-XADC Interface control registers is shown in Table 30-3. Register bit details are
provided in Appendix B, Register Details. Refer to the XADC Register Interface section of UG480
LogiCORE User Guide for register details of the XADC.
Note: After power-up (refer to the Zynq-7000 AP SoC data sheet for the proper voltage sequencing),
PS-to-PL voltage shifters are automatically enabled. The PL must be powered-up to access the
PS-XADC interface registers, but the PL does not need to be configured to access the registers.
Table 30-3 shows an overview of XADC Interface registers.
Table 30-3: Register Overview
Function Mnemonic Description Type
Configuration
devcfg.XADCIF_CFG Configuration: Enable, FIFO threshold,
frequency ratio, and launch edge.
Read/Write
devcfg.XADCIF_MCTL XADC Interface Misc. Control register Read/Write
Interrupts devcfg.XADCIF_INT_STS XADC Interface Interrupt Status register Read,
Write 1 to clear
devcfg.XADCIF_INT_MASK XADC Interface Interrupt Mask register Read/Write
devcfg.XADCIF_MSTS XADC Interface Misc. Status register Read