EM78P156N

OTP ROM

R-option function is used, it is recommended that P50~P51 are used as output pins. When R-option is in enable state, P50~P51 must be programmed as input pins. Under R-option mode, the current/power consumption by Rex should be taken into the consideration to promote energy conservation.

The I/O registers and I/O control registers are both readable and writable. The I/O interface circuits for Port 5 and Port 6 are shown in the following Figures 6, 7(a), 7(b), and Figure 8.

 

P C R D

 

 

 

Q

P

D

 

 

R

 

 

_

C C LK

PC W R

 

 

 

Q

L

 

 

P O R T

Q

P

D

IO D

 

 

R

 

 

 

_

C

C L K

PD W R

 

Q

L

 

 

 

 

 

 

P D R D

0M U

1X

NOTE: Pull-down is not shown in the figure.

Fig. 6 The Circuit of I/O Port and I/O Control Register for Port 5

P C R D

 

 

 

 

 

Q

P

D

 

 

 

 

 

 

R

 

 

 

 

 

 

_

C L K

P C W R

 

 

 

 

 

Q

C

 

 

 

 

 

 

 

 

L

 

 

P 6 0

/ I N T

 

 

 

 

P

 

I O D

P O R T

 

 

 

Q

D

 

 

 

 

 

 

 

R

 

 

 

 

 

 

_

C L K

P D W R

B i t 6 o f I O C E

 

 

Q C

 

 

 

 

 

 

 

 

L

 

 

D

P

Q

0

M

 

 

 

 

R

1

 

 

 

 

C L K

_

U

 

 

 

 

 

 

 

 

 

 

C

Q

 

X

 

 

 

 

 

L

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T 1 0

 

 

 

 

 

 

 

 

P D R D

 

 

 

 

D

P

Q

 

 

 

 

 

 

R

 

 

 

 

 

 

C L K

_

 

 

 

 

 

 

 

C

Q

 

 

 

 

 

 

 

L

 

 

 

 

 

 

 

 

 

 

 

 

 

I N T

 

 

 

 

 

NOTE: Pull-high (down) and Open-drain are not shown in the figure.

Fig. 7(a) The Circuit of I/O Port and I/O Control Register for P60 (/INT)

This specification is subject to change without prior notice. 17

07.29.2004 (V1.2)