EM78P5840N/41N/42N
8-Bit Microcontrollers
7.6.2
I/O Description
Port 6
Pin
Register
P65
P64
P63
P62
P61
P60
R65,
Page 0
R64,
Page 0
R63,
Page 0
R62,
Page 0
R61,
Page 0
R60,
Page 0
I/O
I/O
I/O
I/O
I/O
I/O
I/O
IOC65,
Page 0
IOC64,
Page 0
IOC63,
Page 0
IOC62,
Page 0
IOC61,
Page 0
IOC60,
Page 0
I/O Control
Pin-shared with
AD6
AD5
AD3
AD3
Xin
Xout
Port 60 ~ Port 61: Used in IRC and ERIC mode
In these two modes, Port 60 and Port 61 are defined as general
purpose IO.
In Crystal mode, Port 60 and Port 61 are defined as crystal input
(Xin and Xout) pins and R60, R61 bits are undefined.
Port 62 ~ Port 65: Port 6 (2~5) I/O pins
The IOC register can be used to define each pin as input or output.
IOC60 ~ IOC61: Unused registers in Crystal mode
In IRC or ERIC mode, these bits are I/O direction control register.
Port 7
Pin
P76
P75
P74
P73
P71
P70
R76, Page R75, Page R74, Page
R73,
Page0
R71, Page R70, Page
Register
0
0
0
0
0
I/O
I/O
I/O
I/O
I/O
Input only
I/O
IOC76,
Page 0
IOC75,
Page 0
IOC74,
Page 0
IOC73,
Page 0
IOC70,
Page 0
I/O control
×
IOC76,
Page 1
IOC75,
Page 1
IOC74,
Page 1
IOC73,
Page 1
IOC70,
Page 1
Pull high
×
PLLC/ERIC
/INT0
Pin-shared with
-
-
-
INT3
Reset/INT0
Port 70: Multifunction pin
In Crystal mode, by setting P70S in code option, Port 70 will be set as general
purpose I/O or PLLC.
NOTE
Do not enable the PLL function if Port 70 is defined as I/O.
34 •
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)