SLUUDD1 August 2025
Page 0 of the AFE20408 contains basic configuration registers. The file contains variables for the registers and specific data combinations. You are required to write 0x0000 to the PAGE register before writing or reading from any register on this page.
This page contains the following registers:
| Register | Description |
|---|---|
| CHIP_ID | Readback is 0x2480 |
| CHIP_VER | |
| SDO_EN | Required to enable SDO for SPI readback. |
| GEN_CFG_0 | PAON and FLEXIO configurations |
| GEN_CFG_1 | VSS Range and FLEXIO selection |
| ALARMOUT_SRC_0 | |
| ALARMOUT_SRC_1 | |
| ALARM_STATUS_0_BYP | |
| ALARM_STATUS_1_BYP | |
| PAON_SRC_0 | |
| PAON_SRC_1 | |
| RESET_FLAGS |
Example:
#Example: Read chip ID
ftdiObject.spiWrite(PAGE_ADDRESS, PAGE_GEN_CONFIG) #Set page
ftdiObject.spiWrite(SDO_EN_ADDRESS, SDO_EN_FSDO_Dis + SDO_EN_SDOenabled) #Enable SDO
print(ftdiObject.spiRead(CHIP_ID_ADDRESS)) #Read Chip ID