English
Language : 

80C550 Datasheet, PDF (12/28 Pages) NXP Semiconductors – 80C51 8-bit microcontroller family 4K/128 OTP/ROM/ROMless, 8 channel 8 bit A/D, watchdog timer
Philips Semiconductors
80C51 8-bit microcontroller family
4K/128 OTP/ROM/ROMless, 8 channel 8 bit A/D, watchdog timer
Product specification
80C550/83C550/87C550
Watchdog Function
The watchdog consists of a programmable prescaler and the main
timer. The prescaler derives its clock from the on-chip oscillator. The
prescaler consists of a divide by 12 followed by a 13 stage counter
with taps from stage 6 through stage 13. The tap selection is
programmable. The watchdog main counter is a down counter
clocked (decremented) each time the programmable prescaler
underflows. The watchdog generates an underflow signal (and is
autoloaded) when the watchdog is at count 0 and the clock to
decrement the watchdog occurs. 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: tOSC
is the oscillator period, N is the selected prescaler tap value, W is
the main counter autoload value, tMIN is the minimum watchdog
time-out value (when the autoload value is 0), tMAX is the maximum
time-out value (when the autoload value is FFH), tD is the design
time-out value.
tMIN = tOSC × 12 × 64
tMAX = tMIN × 128 × 256
tD = tMIN × 2PRESCALER × W
(where prescaler = 0, 1, 2, 3, 4, 5, 6, or 7)
Note that the design procedure is anticipated to be as follows. A
tMAX will be chosen either from equipment or operation
considerations and will most likely be the next convenient value
higher than tD. (If the watchdog were inadvertently to start from FFH,
an overflow would be guaranteed, barring other anomalies, to occur
within tMAX). Then the value for the prescaler would be chosen from:
prescaler = log2 (tMAX / (tOSC × 12 × 256)) – 6
This then also fixes tMIN. An autoload value would then be chosen
from:
W = tD / tMIN – 1
The software must be written so that a feed operation takes place
every tD seconds from the last feed operation. Some tradeoffs may
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.
Interrupts
The 8XC550 interrupt structure is a seven-source, two-priority level
interrupt system similar to that of the standard 80C51
microcontroller. The interrupt sources are listed below in the order of
their internal polling sequence. This is the order in which
simultaneous interrupts of the same priority level would be serviced.
Interrupt Priorities
PRIORITY SOURCE
Highest
INT0
TF0
INT1
TF1
TI & RI
ADCI
Lowest WDTOF
VECTOR
ADDRESS
0003H
000BH
0013H
001BH
0023H
002BH
0033H
FUNCTION
External interrupt 0
Counter/timer 0 overflow
External interrupt 1
Counter/timer 1 overflow
Serial port transmit/receive
A/D converter conversion
complete
Watchdog timer overflow
(only when not in
watchdog mode)
Interrupt Control Registers
The standard 80C51 interrupt enable and priority registers have
been modified slightly to take into account the additional interrupt
sources of the 8XC550.
Interrupt Enable Register
MSB
EA
EWD
EAD
ES
LSB
ET1
EX1
ET0
EX0
Symbol
EA
EWD
EAD
ES
ET1
EX1
ET0
EX0
Position
IE.7
IE.6
IE.5
IE.4
IE.3
IE.2
IE.1
IE.0
Function
Global interrupt enable
Watchdog timer overflow
A/D conversion complete
Serial port transmit or receive
Timer 1 overflow
External interrupt 1
Timer 0 overflow
External interrupt 0
Interrupt Priority Register
MSB
–
PWD
PAD
PS
LSB
PT1
PX1
PT0
PX0
Symbol
PWD
PAD
PS
PT1
PX1
PT0
PX0
Position
IP.6
IP.5
IP.4
IP.3
IP.2
IP.1
IP.0
Function
Watchdog timer
A/D conversion
Serial port interrupt
Timer 1 interrupt
External interrupt 1
Timer 0 interrupt
External interrupt 0
Power-Down and Idle Modes
The 8XC550 includes the standard 80C51 power-down and idle
modes of reduced power consumption. In addition, the 8XC550
includes an option to separately turn off the serial port for extra
power savings when it is not needed. Also, the individual functional
blocks such as the counter/timers are automatically disabled when
they are not running. This actually turns off the clocks to the block in
question, resulting in additional power savings. Note that when the
watchdog timer is operating, the processor is inhibited from entering
the power-down mode. This is due to the fact that the oscillator is
stopped in the power-down mode, which would effectively turn off
the watchdog timer. In keeping with the purpose of the watchdog
timer, the processor is prevented from accidentally entering
power-down due to some erroneous operation.
Power Control Register
MSB
SMOD SIDL
–
–
LSB
GF1
GF0
PD
IDL
Symbol
SMOD
SIDL
–
–
GF1
GF0
PD
IDL
Position
PCON.7
PCON.6
PCON.5
PCON.4
PCON.3
PCON.2
PCON.1
PCON.0
Function
Double baud rate bit. When set to a 1 and
Timer 1 is used to generate baud rate, and
the serial port is used in modes 1, 2, or 3.
Separately idles the serial port for additional
power savings.
Reserved
Reserved
General-purpose flag bit.
General-purpose flag bit.
Power-down bit. Starting this bit activates
power-down operation.
Idle mode bit. Setting this bit activates
idle mode operation.
If 1s are written to PD and IDL at the same time, PD takes
precedence.
1998 May 01
12