p80c550efaa NXP Semiconductors, p80c550efaa Datasheet - Page 12

no-image

p80c550efaa

Manufacturer Part Number
p80c550efaa
Description
80c51 8-bit Microcontroller Family 4k/128 Otp/rom/romless, Channel Watchdog Timer
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P80C550EFAA
Manufacturer:
PHILIPS
Quantity:
5
Part Number:
P80C550EFAA
Manufacturer:
INTEL
Quantity:
12 388
Philips Semiconductors
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: 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.
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 overflow would be guaranteed, barring other anomalies, to occur
within t
This then also fixes t
from:
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.
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
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.
1998 May 01
MAX
PRIORITY
80C51 8-bit microcontroller family
4K/128 OTP/ROM/ROMless, 8 channel 8 bit A/D, watchdog timer
Highest
Lowest
t
t
t
(where prescaler = 0, 1, 2, 3, 4, 5, 6, or 7)
prescaler = log2 (t
W = t
MIN
MAX
D
will be chosen either from equipment or operation
= t
D
MAX
= t
= t
MIN
D
seconds from the last feed operation. Some tradeoffs may
OSC
/ t
). Then the value for the prescaler would be chosen from:
MIN
D
MIN
. (If the watchdog were inadvertently to start from FFH,
SOURCE
2
WDTOF
PRESCALER
TI & RI
ADCI
– 1
INT0
INT1
12
128
TF0
TF1
MIN
MAX
64
256
. An autoload value would then be chosen
/ (t
ADDRESS
VECTOR
OSC
0003H
000BH
0013H
001BH
0023H
002BH
0033H
W
MIN
12
is the minimum watchdog
256)) – 6
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)
MAX
FUNCTION
D
is the maximum
is the design
OSC
12
Interrupt Enable Register
Symbol Position
EA
EWD
EAD
ES
ET1
EX1
ET0
EX0
Interrupt Priority Register
Symbol Position
PWD
PAD
PS
PT1
PX1
PT0
PX0
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
Symbol
SMOD
SIDL
GF1
GF0
PD
IDL
If 1s are written to PD and IDL at the same time, PD takes
precedence.
SMOD
MSB
MSB
MSB
EA
EWD
PWD
SIDL
Position
PCON.7
PCON.6
PCON.5
PCON.4
PCON.3
PCON.2
PCON.1
PCON.0
IE.7
IE.6
IE.5
IE.4
IE.3
IE.2
IE.1
IE.0
IP.6
IP.5
IP.4
IP.3
IP.2
IP.1
IP.0
EAD
PAD
80C550/83C550/87C550
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
Watchdog timer
A/D conversion
Serial port interrupt
Timer 1 interrupt
External interrupt 1
Timer 0 interrupt
External interrupt 0
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.
ES
PS
Function
Function
Function
GF1
ET1
PT1
EX1
PX1
GF0
Product specification
ET0
PT0
PD
LSB
EX0
LSB
PX0
LSB
IDL

Related parts for p80c550efaa