English
Language : 

M16C26A Datasheet, PDF (240/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
16. Programmable I/O Ports
Port Pi direction register (i=6 to 8, and 10) (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PD6 to PD8
PD10
Address
03EE16, 03EF16, 03F216
03F616
After reset
0016
0016
Bit symbol
PDi_0
PDi_1
PDi_2
PDi_3
PDi_4
Bit name
Port Pi0 direction bit
Port Pi1 direction bit
Port Pi2 direction bit
Port Pi3 direction bit
Port Pi4 direction bit
Function
RW
RW
0 : Input mode
(Functions as an input port)
RW
1 : Output mode
RW
(Functions as an output port) RW
(i = 6 to 8, and 10)
RW
PDi_5
Port Pi5 direction bit
RW
PDi_6
Port Pi6 direction bit
RW
PDi_7
Port Pi7 direction bit
RW
NOTE:
1. Ports must be enabled using the PACR register.
In 48-pin package, set PACR2, PACR1, PACR0 to "1002"
In 42-pin package, set PACR2, PACR1, PACR0 to "0012"
Port P1 direction register (1)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PD1
Address
03E316
After reset
0016
Bit symbol
Bit name
Function
RW
(b4-b0)
Nothing is assigned. In an attempt to write to this bit, write “0”.
The value, if read, turns out to be indeterminate.
PD1_5
PD1_6
PD1_7
Port P15 direction bit
Port P16 direction bit
Port P17 direction bit
0 : Input mode
RW
(Functions as an input port)
1 : Output mode
RW
(Functions as an output port)
RW
NOTE:
1. Ports must be enabled using the PACR register.
In 48-pin package, set PACR2, PACR1, PACR0 to "1002"
In 42-pin package, set PACR2, PACR1, PACR0 to "0012"
Port P9 direction register (1,2)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PD9
Address
03F316
After reset
XXXX0000 2
Bit symbol
Bit name
Function
RW
PD9_0
PD9_1
PD9_2
PD9_3
Port P90 direction bit
Port P91 direction bit
Port P92 direction bit
Port P93 direction bit
RW
0 : Input mode
(Functions as an input port)
RW
1 : Output mode
RW
(Functions as an output port) RW
(B7-b4)
Nothing is assigned. In an attempt to write to this bit, write “0”.
The value, if read, turns out to be indeterminate.
NOTE:
1. Make sure the PD9 register is written to by the next instruction after setting the PRC2 bit in the PRCR
register to "1" (write enabled).
2. Ports must be enabled using the PACR register.
Figure 16.1.1. PD1, PD6, PD7, PD8, PD9, and PD10 Registers
Rev. 2.00 Feb.15, 2007 page 223 of 329
REJ09B0202-0200