English
Language : 

W742S81A Datasheet, PDF (26/47 Pages) Winbond – 4 BIT MICROCONTROLLER
W742S81A
RB and RD can be specified as input or output mode independently by the PM1, PM2 and PM5 registers.
The MOVA R, RA or MOVA R, RB or MOVA R, RD instructions operate the input functions and the
MOV RA, R or MOV RB, R or MOV RD, R operate the output functions. For more details, refer to the
instruction table and
Figure 6-10 and Figure 6-11.
DATA
BUS
Input/Output Pin of the RA(RB)
PM0.0(PM0.1)
Output
Buffer
Enable
PM1.n (PM2.n)
MOV RA,R(MOV RB,R)
instruction
I/O PIN
RA.n(RB.n)
Enable MOVA R,RA(MOVA R,RB) instruction
Figure 6-10 Architecture of RA (RB) Input/Output Pins
Input/Output Pin of the RD
DATA
BUS
Output
Buffer
Enable
PM5.n
MOV RD,R instruction
Enable MOVA R,RD instruction
Figure 6-11 Architecture of RD Input/Output pins
I/O PIN
RD.n
6.17.1 Port Mode 0 Register (PM0)
The port mode 0 register is organized as 4-bit binary register (PM0.0 to PM0.3). PM0 can be used to
- 26 -