Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

GPIO configuration settings for Input mode

GPIO configuration settings for Input mode

Anonymous
Not applicable
Question: What port configuration settings used to read a digital input in enCoRe V?

 

Answer:

A fully high-impedance input requires that the following configuration to be used:

Open Drain configuration (by setting appropriate values in PRTxDM0 and PRTxDM1) along with the corresponding data bit (by setting appropriate value in  PRTxDR ) = 1. This disables both the NMOS and PMOS in the GPIO cell and puts it in a true Hi-Z mode.

For example, the following setting will make the pin P2[5] as high Z:

PRT2DM1 = 0x20;

PRT2DM0 = 0x20;

and PRT2DR = 0x20;

0 Likes
363 Views
Contributors