|
4513_03 Datasheet, PDF (106/210 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.1 I/O pins
(4) Port P3
Port P3 is a 4-bit I/O port for the 4514 Group, and a 2-bit I/O port for the 4513 Group.
s Input/output of port P3
q Data input to port P3
Set the output latch of specified port P3i (i=0 to 3) to â1â with the OP3A instruction. If the output
latch is set to â0,â âLâ level is input.
The state of port P3 is transferred to register A when the IAP3 instruction is executed.
However, A2 and A3 are undefined in the 4513 Group.
q Data output from port P3
The contents of register A is output to port P3 with the OP3A instruction.
The output structure is an N-channel open-drain.
(5) Port P4 (The 4513 Group does not have this port.)
Port P4 is a 4-bit I/O port.
s Input/output of port P4
Ports P40âP43 are also used as AIN4âAIN7. Therefore, when P40/AIN4âP43/AIN7 are used as port
P4, set corresponding bits of A-D control register Q2 to â0â.
q Data input to port P4
Set the output latch of specified port P4i (i=0 to 3) to â1â with the OP4A instruction. If the output
latch is set to â0,â âLâ level is input.
The state of port P4 is transferred to register A when the IAP4 instruction is executed.
q Data output from port P4
The contents of register A is output to port P4 with the OP4A instruction.
The output structure is an N-channel open-drain.
(6) Port P5 (The 4513 Group does not have this port.)
Port P5 is a 4-bit I/O port.
s Input/output of port P5
Port P5 has direction register FR0 to input/output by the bit.
q Data input to port P5
Set the bit of register FR0i(i=0 to 3) corresponding to specified port P5i (i=0 to 3) to â0.â When
the register FR0 is set to â1,â the value of output latch is input.
The state of port P5 is transferred to register A when the IAP5 instruction is executed.
q Data output from port P5
Set the bit of register FR0i(i=0 to 3) corresponding to specified port P5i (i=0 to 3) to â1.â When
the register FR0 is set to â0,â specified port P5i is in the high-impedance state.
The contents of register A is output to port P5 with the OP5A instruction.
The output structure is CMOS.
4513/4514 Group Userâs Manual
2-3
|
▷ |