Renesas M16C/29 Series Hardware Manual page 336

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group
Port Pi direction register (i=0 to 3, 6 to 8, and 10) (Note)
b7
b6
b5
b4
b3
b2
Note: Ports must be enabled using the PACR
In 80 pin version set PACR2, PACR1, PACR0 to "011
In 64 pin version set PACR2, PACR1, PACR0 to "010
Port P9 direction register (Note 1,2)
b7
b6
b5
b4
b3
b2
Note 1: Make sure the PD9 register is written to by the next instruction after setting the PRCR
register's PRC2 bit to "1"(write enabled).
Note 2: Ports must be enabled using the PACR
In 80 pin version set PACR2, PACR1, PACR0 to "011
In 64 pin version set PACR2, PACR1, PACR0 to "010
Figure 19.1.1. PD0, PD1, PD2, PD3, PD6, PD7, PD8, PD9, and PD10 Registers
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
Symbol
PD0 to PD3
b1
b0
PD6 to PD8
PD10
Bit symbol
PDi_0
Port Pi
PDi_1
Port Pi
PDi_2
Port Pi
PDi_3
Port Pi
PDi_4
Port Pi
PDi_5
Port Pi
PDi_6
Port Pi
PDi_7
Port Pi
b1
b0
Symbol
PD9
Bit symbol
PD9_0
Port P9
PD9_1
Port P9
PD9_2
Port P9
PD9_3
Port P9
Nothing is assigned. In an attempt to write to this bit, write "0".
(b4)
The value, if read, turns out to be indeterminate.
PD9_5
Port P9
PD9_6
Port P9
PD9_7
Port P9
page 316 of 402
Address
03E2
, 03E3
, 03E6
16
16
16
03EE
, 03EF
, 03F2
16
16
16
03F6
16
Bit name
direction bit
0
0 : Input mode
direction bit
1
(Functions as an input port)
direction bit
2
1 : Output mode
(Functions as an output port)
direction bit
3
(i = 0 to 3, 6 to 8, and 10)
direction bit
4
direction bit
5
direction bit
6
direction bit
7
"
2
"
2
Address
03F3
16
Bit name
direction bit
0
0 : Input mode
direction bit
1
(Functions as an input port)
direction bit
2
1 : Output mode
(Functions as an output port)
direction bit
3
direction bit
5
0 : Input mode
(Functions as an input port)
direction bit
1 : Output mode
6
(Functions as an output port)
direction bit
7
"
2
"
2
19. Programmable I/O Ports
After reset
, 03E7
00
16
16
00
16
00
16
Function
After reset
00000000
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
2
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents