m37905 Renesas Electronics Corporation., m37905 Datasheet - Page 112

no-image

m37905

Manufacturer Part Number
m37905
Description
Mitsubishi 16-bit Single-chip Microcomputer 7700 Family / 7900 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m37905F8CSP
Manufacturer:
MIT
Quantity:
20 000
Fig. 7.2.6 Relationship between port P6 direction register and timer Ai’s I/O pins
7.2.6 Port P2, port P4 and port P6 direction registers
The I/O pins of timers A0 to A3 are multiplexed with port P6 pins, and the I/O pins of timers A4 and A9
are multiplexed with port P2 pins, and the I/O pins of timers A5 to A8 are multiplexed with port P4 pins.
When using these pins as timer Ai (i = 0 to 9)’s input pins, clear the corresponding bits of the port P6, port
P2, and port P4 direction registers to “0” in order to set these port pins for the input mode. When used
as timer Ai’s output pins, these pins are forcibly set to the output pins of timer Ai regardless of the direction
registers’ contents. Figure 7.2.6 shows the relationship between the port P6 direction register and the timer
Ai’s I/O pins, Figure 7.2.7 shows the relationship between port P2 and port P4 direction registers and timer
Ai’s I/O pins.
Note that each bit of the port P4 direction register becomes “0” by an input of a falling edge to pin
P4OUT
A8 to the port output pins, the following procedure is required.
When the input level at pin P4OUT
Similarly, each bit of the port P6 direction register becomes “0” by an input of a falling edge to pin
P6OUT
A3 to the port output pins, the following procedure is required.
When the input level at pin P6OUT
Set “1” to the port P4 direction register’s bit corresponding to the above P4 register’s bit; therefore, this
Set “1” to the port P6 direction register’s bit corresponding to the above P6 register’s bit; therefore, this
Notes 1: Each of bits 0 to 7 becomes “0” by an input of the falling edge to pin P6OUT
Return the input level at pin P4OUT
Write data to the port P4 register’s bit corresponding to the port P4 pin, where data is to be output.
bit enters the output mode.
Return the input level at pin P6OUT
Write data to the port P6 register’s bit corresponding to the port P6 pin, where data is to be output.
bit enters the output mode.
Port P6 direction register (Address 10
Bit
0
1
2
3
4
5
6
7
CUT
CUT
2: The pins in ( ) are I/O pins of other internal peripheral devices, which are multiplexed.
INT
. (Refer to section “5.2.3 Pin P4OUT
. (Refer to section “5.2.4 Pin P6OUT
Pin TA0
Pin TA0
Pin TA1
Pin TA1
Pin TA2
Pin TA2
Pin TA3
Pin TA3
4
.”)
Corresponding pin
OUT
IN
OUT
IN
OUT
IN
OUT
IN
(Pin V/RTP0
(Pin W/RTP0
(Pin U/RTP1
(Pin RTP1
(Pin W/RTP0
(Pin U/RTP0
(Pin V/RTP1
(Pin RTP1
3
)
2
1
1
)
3
)
)
)
0
2
0
)
)
)
CUT
CUT
16
7905 Group User’s Manual Rev.1.0
)
= “L,” no bit of the port P4 direction register can be set to “1.”
= “L,” no bit of the port P6 direction register can be set to “1.”
0 : Input mode
1 : Output mode
When using this pin as timer Ai’s input pin, be sure
to clear the corresponding bit to “0.”
CUT
CUT
to “H.”
to “H.”
CUT
CUT
/INT
/INT
0
4
.”) When switching the output pins of timers A5 to
.”) When switching the output pins of timers A0 to
Functions
CUT
/INT
4
. (Refer to section “5.2.4 Pin P6OUT
b7 b6 b5 b4 b3 b2 b1 b0
7.2 Block description
At reset R/W
0
0
0
0
0
0
0
0
TIMER A
RW
RW
RW
RW
RW
RW
RW
RW
CUT
/
7-9

Related parts for m37905