Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: What port configuration settings used to read a digital input in enCoRe V?
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 as high Z: