I am configuring PCR24 as a general purpose input however when applying a logic high to the pin, the PDI register is not recognizing the input. The configuration and data access code is as follows:
SIU.PCR[24].R = 0x0100;
input_var = SIU.GPDI[24].B.PDI;
When debugging the PDI register remains zero irrespective of the input voltage applied to the pad. Are there any other registers that must be set in order to access this pad that is GPI only?
Hi,
no other setting is needed, it should work normally.
Check if other GPI inputs works too.
BR, Petr