SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
This procedure initializes the general-purpose Interface module after a power-on reset (POR) or software reset.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Configure GPIO channels as input or output of the corresponding bank | DIR | -h |
Interrupt requests configuration | ||
Configure detection events | SET_RIS_TRIG and/or SET_FAL_TRIG | -h |
Clear interrupt status | INTSTAT | FFFFh |
Enable interrupts for desired banks [0:8] | GPIO_BINTEN[8-0] | -h |