Datasheet
Table Of Contents
- FEATURES
- DETAILED DESCRIPTION
- ORDERING INFORMATION
- Figure 1. Block Diagram
- PIN DESCRIPTION
- 80C32 COMPATIBILITY
- Figure 2. Comparative Timing of the DS80C320/DS80C323 and 80C32
- HIGH-SPEED OPERATION
- INSTRUCTION SET SUMMARY
- Table 1. Instruction Set Summary
- SPEED ADVANTAGE SUMMARY
- MEMORY ACCESS
- Figure 3. Typical Memory Connection
- STRETCH MEMORY CYCLE
- Table 2. Data Memory Cycle Stretch Values
- DUAL DATA POINTER
- 64-Byte Block Move without Dual Data Pointer
- 64-Byte Block Move with Dual Data Pointer
- PERIPHERAL OVERVIEW
- SERIAL PORTS
- TIMER-RATE CONTROL
- POWER-FAIL RESET
- POWER-FAIL INTERRUPT
- WATCHDOG TIMER
- Table 3. Watchdog Timeout Values
- INTERRUPTS
- Table 4. Interrupt Priority
- POWER MANAGEMENT
- IDLE MODE ENHANCEMENTS
- STOP MODE ENHANCEMENTS
- Figure 4. Ring Oscillator Startup
- TIMED ACCESS PROTECTION
- SPECIAL-FUNCTION REGISTERS
- Table 5. Special-Function Register Locations
- ELECTRICAL SPECIFICATIONS
- ABSOLUTE MAXIMUM RATINGS
- DC ELECTRICAL CHARACTERISTICS—DS80C320
- NOTES FOR DS80C320 DC ELECTRICAL CHARACTERISTICS
- TYPICAL ICC vs. FREQUENCY
- AC CHARACTERISTICS—DS80C320
- NOTES FOR DS80C320 AC ELECTRICAL CHARACTERISTICS
- MOVX CHARACTERISTICS—DS80C320
- DC ELECTRICAL CHARACTERISTICS—DS80C323
- NOTES FOR DS80C323 DC ELECTRICAL CHARACTERISTICS
- NOTES FOR DS80C323 DC ELECTRICAL CHARACTERISTICS (continued)
- AC ELECTRICAL CHARACTERISTICS—DS80C323
- NOTES FOR DS80C323 AC ELECTRICAL CHARACTERISTICS
- MOVX CHARACTERISTICS—DS80C323
- EXTERNAL CLOCK CHARACTERISTICS
- SERIAL PORT MODE 0 TIMING CHARACTERISTICS
- EXPLANATION OF AC SYMBOLS
- POWER-CYCLE TIMING CHARACTERISTICS
- NOTES FOR POWER CYCLE TIMING CHARACTERISTICS
- PROGRAM MEMORY READ CYCLE
- DATA MEMORY READ CYCLE
- DATA MEMORY WRITE CYCLE
- DATA MEMORY WRITE WITH STRETCH = 1
- DATA MEMORY WRITE WITH STRETCH = 2
- EXTERNAL CLOCK DRIVE
- SERIAL PORT MODE 0 TIMING
- POWER-CYCLE TIMING
- DATA SHEET REVISION SUMMARY

DS80C320/DS80C323 High-Speed/Low-Power Microcontrollers
15 of 38
POWER-FAIL RESET
The DS80C320/DS80C323 incorporate a precision bandgap voltage reference to determine when V
CC
is
out of tolerance. While powering up, internal circuits will hold the device in a reset state until V
CC
rises
above the V
RST
reset threshold. Once V
CC
is above this level, the oscillator will begin running. An internal
reset circuit will then count 65,536 clocks to allow time for power and the oscillator to stabilize. The
microcontroller will then exit the reset condition. No external components are needed to generate a power
on reset. During power-down or during a severe power glitch, as V
CC
falls below V
RST
, the
microcontroller will also generate its own reset. It will hold the reset condition as long as power remains
below the threshold. This reset will occur automatically, needing no action from the user or from the
software. See the Electrical Specifications section for the exact value of V
RST
.
POWER-FAIL INTERRUPT
The same reference that generates a precision reset threshold can also generate an optional early warning
Power-fail Interrupt (PFI). When enabled by the application software, this interrupt always has the
highest priority. On detecting that the V
CC
has dropped below V
PFW
and that the PFI is enabled, the
processor will vector to ROM address 0033h. The PFI enable is located in the Watchdog Control SFR
(WDCON to D8h). Setting WDCON.5 to logic 1 will enable the PFI. The application software can also
read a flag at WDCON.4. This bit is set when a PFI condition has occurred. The flag is independent of the
interrupt enable and software must manually clear it.
WATCHDOG TIMER
For applications that cannot afford to run out of control, the DS80C320/DS80C323 incorporate a
programmable watchdog timer circuit. The watchdog timer circuit resets the microcontroller if software
fails to reset the watchdog before the selected time interval has elapsed. The user selects one of four
timeout values. After enabling the watchdog, software must reset the timer prior to expiration of the
interval, or the CPU will be reset. Both the Watchdog Enable and the Watchdog Reset bits are protected
by a “Timed Access” circuit. This prevents accidentally clearing the watchdog. Timeout values are
precise since they are related to the crystal frequency as shown in Table 3. For reference, the time periods
at 25MHz are also shown.
The watchdog timer also provides a useful option for systems that may not require a reset. If enabled,
then 512 clocks before giving a reset, the watchdog will give an interrupt. The interrupt can also serve as
a convenient time-base generator, or be used to wake-up the processor from Idle mode. The watchdog
function is controlled in the Clock Control (CKCON to 8Eh), Watchdog Control (WDCON to D8h), and
Extended Interrupt Enable (EIE to E8h) SFRs. CKCON.7 and CKCON.6 are called WD1 and WD0,
respectively, and are used to select the watchdog timeout period as shown in Table 3.
Table 3. Watchdog Timeout Values
WD1 WD0
INTERRUPT
TIMEOUT
TIME (at
25MHz)
RESET
TIMEOUT
TIME
(at 25MHz)
0 0 2
17
clocks 5.243ms 2
17
+ 512 clocks 5.263ms j
0 1 2
20
clocks 41.94ms 2
20
+ 512 clocks 41.96ms
1 0 2
23
clocks 335.54ms 2
23
+ 512 clocks 335.56ms
1 1 2
26
clocks 2684.35ms 2
26
+ 512 clocks 2684.38ms
As Table 3 shows, the watchdog timer uses the crystal frequency as a time base. A user selects one of
four counter values to determine the timeout. These clock counter lengths are 2
17
= 131,072 clocks;
2
20
= 1,048,576; 2
23
= 8,388,608 clocks; or 2
26
= 67,108,864 clocks. The times shown in Table 4 are with