cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

GPIO configuration settings for Input mode

Anonymous
Not applicable

GPIO configuration settings for Input mode

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
Version history
Revision #:
1 of 1
Last update:
‎Dec 19, 2008 12:00 AM
Updated by:
Anonymous
 
Contributors