English
Language : 

W742E Datasheet, PDF (32/60 Pages) Winbond – 4 BIT MICROCONTROLLER
W742E/C811
5.17 Reset Function
The W742E/C811 is reset either by a power-on reset or by using the external RES pin. The initial
state of the W742E/C811 after the reset function is executed is described below.
Table 3 The initial state after the reset function is executed
Program Counter (PC)
TM0, TM1
MR0, MR1, PAGE registers
PSR0, PSR1, PSR2, SCR registers
IEF, HEF,HEFD, HCF, PEF, P1EF,
EVF, EVFD, SEF flags
WRP, DBKR register
Timer 0 input clock
Timer 1 input clock
MFP output
DTMF output
Input/output ports RA,RB, P0
Output port RE & RF
RA, RB & P0 ports output type
RC,RD ports pull-high resistors
Input clock of the watchdog timer
LCD display
000H
Reset
Reset
Reset
Reset
Reset
FOSC/4
FOSC
Low
Hi-Z
Input mode
High
CMOS type
Disable
FOSC/1024
OFF
5.18 Input/Output Ports RA, RB & P0
Port RA consists of pins RA.0 to RA.3. Port RB consists of pins RB.0 to RB.3. Port P0 consists of pins
P0.0 to P0.3. At initial reset, input/output ports RA, RB and P0 are all in input mode. When RA and RB
are used as output ports, CMOS or NMOS open drain output type can be selected by the PM0 register.
But when P0 is used as output port, the output type is just fixed to be CMOS output type. Each pin of
port RA, RB and P0 can be specified as input or output mode independently by the PM1, PM2 and
PM6 registers. The MOVA R, RA or MOVA R, RB or MOVA R, P0 instructions operate the input
functions and the MOV RA, R or MOV RB, R or MOV P0, R operate the output functions. For more
detail port structure, refer to the and Figure 5-10 and Figure 5-10.
- 32 -