83C576 Philips Semiconductors, 83C576 Datasheet - Page 18

no-image

83C576

Manufacturer Part Number
83C576
Description
80C51 8-bit microcontroller family 8K/256 OTP/ROM/ 6 channel 10-bit A/D/ 4 comparators/ failure detect circuitry/ watchdog timer
Manufacturer
Philips Semiconductors
Datasheet
Philips Semiconductors
The tap selection is programmable. The watchdog main counter is a
down counter clocked (decremented) each time the programmable
prescaler overflows. The watchdog generates an underflow signal
(and is autoloaded) when the watchdog is at count 0 and the prescaler
clock decrements the watchdog. The watchdog is 8 bits long and the
autoload value can range from 0 to FFH. (The autoload value of 0 is
permissible since the prescaler is cleared upon autoload).
This leads to the following user design equations. Definitions :t
is the oscillator period, N is the selected prescaler tap value, W is
the main counter autoload value, t
time-out value (when the autoload value is 0), t
time-out value (when the autoload value is FFH), t
time-out value.
t
t
t
(where prescaler = 0, 1, 2, 3, 4, 5, 6, or 7)
Note that the design procedure is anticipated to be as follows. A
t
considerations and will most likely be the next convenient value
higher than t
an underflow would be guaranteed, barring other anomalies, to
occur within t
The software must be written so that a feed operation takes place
every t
need to be made. It is not advisable to include feed operations in
minor loops or in subroutines unless the feed operation is a specific
subroutine.
Watchdog Control Register (WDCON)
Address C4H
The following bits of this register are read only in the ROM part
when EA is high: WDMOD, DPD, OFRE, LVRE, PRE0, PRE1, and
PRE2. That is, the register will reflect the mask programmed values.
In the ROM part with EA high, these bits are taken from mask coded
bits and are not readable by the program. WDRUN is read only in
the ROM part when EA is high and WDMOD is in the watchdog
mode. When WDMOD is in the timer mode, WDRUN functions
normally.
The parameters written into WDMOD, DPD, OFRE, LVRE, PRE0,
PRE1, and PRE2 by the program are not applied directly to the
watchdog timer subsystem. The watchdog timer subsystem is
directly controlled by a second register which stores these bits. The
transfer of these bits from the user register to the second control
register takes place when the watchdog is fed. This prevents
random code execution from directly foiling the watchdog function.
This does not affect the operation where these bits are taken from
mask coded values.
The reset values of the WDCON and WDL registers will be such that
the timer resets to the watchdog mode with a timeout period of 2
64
1998 Jun 04
MIN
MAX
D
MAX
= t
80C51 8-bit microcontroller family
8K/256 OTP/ROM, 6 channel 10-bit A/D, 4 comparators,
failure detect circuitry, watchdog timer
= t
128
MIN
= t
will be chosen either from equipment or operation
D
OSC
MIN
seconds from the last feed operation. Some tradeoffs may
2
t
OSC
PRESCALER
D
MAX
2
128
. (If the watchdog were inadvertently to start from 00H,
. The watchdog timer does not generate an interrupt.
).
64
256
(W + 1)
MIN
is the minimum watchdog
MAX
D
is the maximum
is the design
OSC
18
Additional bits in WDCON are used to disable reset generation by
the oscillator fail and low voltage detect circuits. WDCON can be
written by software only by executing a valid watchdog feed
sequence.
WDCON Register Bit Definitions
WDCON.7
WDCON.6
WDCON.5
WDCON.4
WDCON.3
WDCON.2
WDCON.1
WDCON.0
Enhanced UART
The UART operates in all of the usual modes that are described in
the first section of this book for the 80C51. In addition the UART can
perform framing error detect by looking for missing stop bits, and
automatic address recognition. The 8XC576 UART also fully
supports multiprocessor communication as does the standard
80C51 UART.
When used for framing error detect the UART looks for missing stop
bits in the communication. A missing bit will set the FE bit in the
SCON register. The FE bit shares the SCON.7 bit with SM0 and the
function of SCON.7 is determined by PCON.6 (SMOD0) (see Figure
20). If SMOD0 is set then SCON.7 functions as FE. SCON.7
functions as SM0 when SMOD0 is cleared. When used as FE
SCON.7 can only be cleared by software. Refer to Figure 19.
The serial port transmitter data can be inverted by setting the TXI
(AUXR.2) bit. For normal operation, the TXI bit should be cleared.
Automatic Address Recognition
Automatic Address Recognition is a feature which allows the UART
to recognize certain addresses in the serial bit stream by using
hardware to make the comparisons. This feature saves a great deal
of software overhead by eliminating the need for the software to
examine every serial address which passes by the serial port. This
feature is enabled by setting the SM2 bit in SCON. In the 9 bit UART
modes, mode 2 and mode 3, the Receive Interrupt flag (RI) will be
automatically set when the received byte contains either the “Given”
address or the “Broadcast” address. The 9 bit mode requires that
the 9th information bit is a 1 to indicate that the received information
is an address and not data. Automatic address recognition is shown
in Figure 21.
The 8 bit mode is called Mode 1. In this mode the RI flag will be set
if SM2 is enabled and the information received has a valid stop bit
following the 8 address bits and the information is either a Given or
Broadcast address.
Mode 0 is the Shift Register mode and SM2 is ignored.
PRE2
PRE1
PRE0
LVRE
OFRE
DPD
WDRUN
WDMOD
Prescaler Select 2, reset to 1
Prescaler Select 1, reset to 1
Prescaler Select 0, reset to 1
Low Voltage Reset Enable, reset to 1
(enabled)
Oscillator Fail Reset Enable, reset to 1
(enabled)
Disable Power Down
Watchdog Run, reset to 1 (enabled)
Watchdog Mode, reset to 1 (watchdog
mode)
83C576/87C576
Product specification

Related parts for 83C576