SLUUDD1 August   2025

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Introduction
  5. FT4222_Python_Controller.py
    1. 2.1 I2C Commands
    2. 2.2 SPI Commands
  6. AFE20408_Page_Global_Def.py
  7. AFE20408_Page_0_Def.py
  8. AFE20408_Page_1_Def.py
  9. AFE20408_Page_2_Def.py
  10. AFE20408_Page_3_Def.py
  11. AFE20408_Page_4_Def.py
  12. AFE20408_Page_6_Def.py
  13. 10Main.py
  14. 11Common Sequences
    1. 11.1 Reset Sequence
    2. 11.2 ADC Configuration
    3. 11.3 DAC Configuration
  15. 12Common Issues
  16. 13Summary

AFE20408_Page_0_Def.py

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:

Table 4-1 Page 0 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