User Manual
384
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
GPIO Ports and Peripheral I/O
15.2.2
Port 2
shows the structure of an input-only port pin. Each P2 pin can only function in input mode. Register
P2_DIR is provided to enable or disable the input driver. When the input driver is enabled, the actual voltage
level present at the port pin is translated into a logic 0 or 1 via a Schmitt-Trigger device and can be read via the
register P2_DATA. Each pin can also be programmed to activate an internal weak pull-up or pull-down device.
Register P2_PUDSEL selects whether a pull-up or the pull-down device is activated while register P2_PUDEN
enables or disables the pull device. The analog input (AnalogIn) bypasses the digital circuitry and Schmitt-
Trigger device for direct feed-through to the ADC input channel.
Figure 78 General Structure of Input Port
15.3
General Port Register Description
Each port consists of 8-bit control and data registers. The registers are defined in
Data
Data Register
Internal
Bus
AltDataIn
PUDEN
Pull-up/Pull-down
Enable Register
PUDSEL
Pull-up/Pull-down
Select Register
Pull-up/Pull-down
Control Logic
Pad
In
Pull
Device
Input
Driver
Schmitt
Trigger
AnalogIn
Port_InputDiagram.vsd