41
Pin Functions
Chapter 2
Preliminary User’s Manual U17566EE1V2UM00
2.2.2
Pin function configuration
The registers for pin function configuration define the general function of a pin:
• input mode or output mode
• port mode or alternative mode
• selection of one of the alternative output functions ALT1-OUT/ALT2-OUT
• pin usage for LCD Controller/Driver output LCD_OUT
• normal mode or on-chip debug mode (N-Wire interface)
An overview of the register settings is given in the table below.
Table 2-3
Pin function configuration (overview)
Function
Registers
I/O
OCDM
PLCDC
PMC
PFC
PM
Port mode (output)
0
0
0
X
0
O
Port mode (input)
X
1
I
Alternative output 1 mode
1
0
0
O
Alternative output 2 mode
1
0
O
Alternative input mode
X
1
I
LCD signal output
(segment or common signal)
1
X
X
X
O
On-chip debug mode
a
a)
In on-chip debug mode, the corresponding pins are automatically set as input or output pins to
provide the N-Wire interface. In this mode the configuration of these pins can not be changed
by the pin configuration registers.
1
X
X
X
X
I/O
electronic components distributor