Follow these steps to configure and read the DIGIO Data Input:
- Read IEP_DIGIO_DATA_IN_RAW_REG for raw input
data
or
- Enable sampling of PR<k>_IEP0_EDIO_DATA_IN_OUT[31:28] by setting
IEP_DIGIO_CTRL_REG[5-4] IN_MODE = 1h.
- Read IEP_DIGIO_DATA_IN_REG for data sampled upon
PR<k>_IEP<n>_EDC_LATCH_IN0 posedge
Follow these steps to configure and write to the DIGIO Data Output:
- Pre-configure DIGIO by setting
IEP_DIGIO_EXP_REG[1] OUTVALID_OVR_EN and IEP_DIGIO_EXP_REG[0]
SW_DATA_OUT_UP
- Write to IEP_DIGIO_DATA_OUT_REG to configure
output data.
- To HiZ output, set corresponding
IEP_DIGIO_DATA_OUT_EN_REG[31-0] DATA_OUT_EN bits to 1h (clear to 0h to drive
value stored in IEP_DIGIO_DATA_OUT_REG).