
C165UTAH
System Reset
Data Sheet
443
2001-02-23
allows the complete configuration of the controller including its on-chip peripheral units
before releasing the reset signal for the external peripherals of the system.
Watchdog Timer Operation after Reset
The watchdog timer starts running after the internal reset has completed. It will be
clocked with the internal system clock divided by 2 (18 MHz @
f
CPU
=36 MHz), and its
default reload value is 00
H
, so a watchdog timer overflow will occur 131072 CPU clock
cycles (3.64 ms @
f
CPU
=36 MHz) after completion of the internal reset, unless it is
disabled, serviced or reprogrammed meanwhile. When the system reset was caused by
a watchdog timer overflow, the WDTR (Watchdog Timer Reset Indication) flag in register
WDTCON will be set to '1'. This indicates the cause of the internal reset to the software
initialization routine. WDTR is reset to '0' by an external hardware reset or by servicing
the watchdog timer. After the internal reset has completed, the operation of the watchdog
timer can be disabled by the DISWDT (Disable Watchdog Timer) instruction. This
instruction has been implemented as a protected instruction. For further security, its
execution is only enabled in the time period after a reset until either the SRVWDT
(Service Watchdog Timer) or the EINIT instruction has been executed. Thereafter the
DISWDT instruction will have no effect.
Note:
For a complete description of register WDTCON, refer to
Chapter 17.1
, page 431.
Reset Values for the C165UTAH Registers
During the reset sequence the registers of the C165UTAH are preset with a default
value. Most SFRs, including system registers and peripheral control and data registers,
are cleared to zero, so all peripherals and the interrupt system are off or idle after reset.
A few exceptions to this rule provide a first pre-initialization, which is either fixed or
controlled by input pins.
DPP1:
0001
H
(points to data page 1)
DPP2:
0002
H
(points to data page 2)
DPP3:
0003
H
(points to data page 3)
CP:
FC00
H
STKUN:
FC00
H
STKOV:
FA00
H
SP:
FC00
H
WDTCON:
00XX
H
, (value depends on the reset configuration)
S0RBUF:
XX
H
(undefined)
SSCRB:
XXXX
H
(undefined)
SYSCON:
0XX0
H
(set according to reset configuration)
BUSCON0:
0XX0
H
(set according to reset configuration)
RP0H:
XX
H
(reset levels of P0H)
ONES:
FFFF
H
(fixed value)