
Rev.2.00 Oct 16, 2006 page 285 of 354
REJ09B0340-0200
M30245 Group
2. Programmable I/O Ports
(6) I/O functions of built-in peripheral devices
Table 2.17.1 shows relation between ports and I/O functions of built-in peripheral devices.
Table 2.17.1. Relation between ports and I/O functions of built-in peripheral devices
(7) Examples of working on non-used pins
Table 2.17.2 contains examples of working on non-used pins. There are shown here for mere ex-
amples. In practical use, make suitable changes and perform sufficient evaluation in compliance with
you application.
Table 2.17.2. Examples of working on unused pins in single-chip mode
Pin name
Connection
Ports P0 to P10 (excluding P8
5
)
X
OUT
(Note 1)
NMI
After setting for input mode, connect every pin to V
SS
or V
CC
via a
resistor; or after setting for output mode, leave these pins open.
(Note 1, Note 2, Note 3)
Open
Connect to V
CC
via a resistor (pull-up)
AV
SS
, V
REF
, BYTE
Connect to V
SS
When an external clock is input to the X
IN
pin.
If setting these pins in output mode and opening them, ports are in input mode until switched into
output mode by use of software after reset. Thus the voltage levels of the pins become unstable,
and there can be instances in which the power source current increases while the ports are in
input mode.
In view of an instance in which the contents of the direction registers change due to a runaway
generated by noise or other causes, setting the contents of the direction registers periodically by
use of software increases program reliability.
Output “L” if port P7
0
and P7
1
are set to output mode.
Port P7
0
and P7
1
are N channel open drain output.
Note 1:
Note 2:
Note 3:
UV
CC
, AV
CC
Connect to V
CC
USB D+, USB D-
LPF
VbusDTCT
Open
Open
Open
(a) Single-chip mode
Port
P6
P7
P8
0
, P8
1
P8
2
, P8
3
, P8
4
P8
6
, P8
7
P9
0
P9
2
P9
3
P10
Internal peripheral device I/O pins
I/O pins/Serial sound interface, I
2
C and SPI communication pins for UART0 and UART1
Timer A0 to A3 I/O pins / I/O pins or I
2
C, SPI communication pins for UART2 and UART3 /
LED drive output pins
Timer A4 I/O pins
Input pins for external interrupt
Sub-clock oscillation circuit I/O pins
Attach/Detach control pin for USB
________
SOF output pin for USB
A/D trigger input pin
A/D converter input pins / key-input interrupt function input pins
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...