English
Language : 

DS80C400 Datasheet, PDF (89/97 Pages) Dallas Semiconductor – DS80C400 Network Microcontroller
DS80C400 Network Microcontroller
Table 27 demonstrates that, for a 40MHz crystal frequency, the watchdog timer is capable of producing timeout
periods from 3.28ms (217 x 1/40MHz) to greater than one and a half seconds (1.68 = 226 x 1/40MHz) with the
default setting of CD1:0 (= 10). This wide variation in timeout periods allows very flexible system implementation.
In a typical initialization, the user selects one of the possible counter values to determine the timeout. Once the
counter chain has completed a full count, hardware sets the interrupt flag (WDIF = WDCON.3). Regardless of
whether the software makes use of this flag, there are then 512 system clocks left until the reset flag (WTRF =
WDCON.2) is set. Software can enable (1) or disable (0) the reset using the enable watchdog timer reset (EWT =
WDCON.1) bit.
Table 27. Watchdog Timeout Values
4X/2X CD1:0
1
00
0
00
x
01
x
10
x
11
WD1:0 = 00
215
216
217
217
225
WATCHDOG INTERRUPT TIMEOUT
WD1:0 = 01
218
219
220
220
228
WD1:0 = 10
221
222
223
223
231
WD1:0 = 11
224
225
226
226
234
IrDA Clock
The DS80C400 has the ability to generate an output clock (CLKO) as a secondary function on port pin P3.5.
Setting both the IrDA clock-output enable bit (IRDACK:COR.7) and external clock-output enable bit
(XCLKOE:COR.1) to a logic 1 produces an output clock of 16 times the programmed baud rate for serial port 0.
This 16X output clock used in conjunction with serial port 0 I/O (TXD0, RXD0) conveniently allows for direct
connection to common IrDA encoder/decoder devices. If the XCLKOE bit alone is set to logic 1, the CLKO pin
outputs the system clock frequency divided by 2, 4, 6, or 8 as defined by clock-output divide bits (COD1:0). Setting
the IRDACK bit alone to logic 1 has no effect.
Interrupts
The microcontroller provides 16 interrupt sources with three priority levels. All interrupts, with the exception of the
power-fail interrupt, are controlled by a series combination of individual enable bits and a global interrupt enable EA
(IE.7). Setting EA to a 1 allows individual interrupts to be enabled. Clearing EA disables all interrupts regardless of
their individual enable settings.
The three available priority levels are low, high, and highest. The highest priority level is reserved for the power-fail
interrupt only. All other interrupts have individual priority bits that when set to a 1 establish the particular interrupt
as high priority. In addition to the user-selectable priorities, each interrupt also has an inherent natural priority, used
to determine the priority of simultaneously occurring interrupts. The available interrupt sources, their flags, enables,
natural priority, and available priority selection bits are identified in Table 28. Note that external interrupts 2–5 and
the 1-Wire bus master share a common interrupt vector (43h). Also note that external interrupt 5 and the 1-Wire
bus master interrupt are multiplexed to form a single interrupt request. When the 1-Wire bus master interrupt is
enabled (EOWMI = 1), it takes priority over external interrupt 5. In order for external interrupt 5 request to be used,
the 1-Wire bus master interrupt must be disabled (EOWMI = 0).
89 of 97