DS80C400 Maxim, DS80C400 Datasheet - Page 92

no-image

DS80C400

Manufacturer Part Number
DS80C400
Description
The DS80C400 network microcontroller offers the highest integration available in an 8051 device
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DS80C400
Manufacturer:
DALLAS
Quantity:
748
Part Number:
DS80C400-FNY
Manufacturer:
DALLAS
Quantity:
85
Part Number:
DS80C400-FNY
Manufacturer:
Maxim Integrated
Quantity:
10 000
Part Number:
DS80C400-FNY+
Manufacturer:
TDK-Lambda
Quantity:
34
Part Number:
DS80C400-FNY+
Manufacturer:
Maxim
Quantity:
3 861
Part Number:
DS80C400-FNY+
Manufacturer:
Maxim Integrated
Quantity:
10 000
Part Number:
DS80C400-FNY+
Manufacturer:
MAXI/DALLAS
Quantity:
20 000
Changing the System Clock/Machine Cycle Clock Frequency
The microcontroller incorporates a special locking sequence to ensure “glitch-free” switching of the internal clock
signals. All changes to the CD1, CD0 bits must pass through the 10 (divide-by-4) state. For example, to change
from 00 (frequency multiplier) to 11 (PMM), the software must change the bits in the following sequence: 00b =>
10b => 11b. Attempts to switch between invalid states fail, leaving the CD1, CD0 bits unchanged.
The following sequence must be followed when switching to the frequency multiplier as the internal time source.
This sequence can only be performed when the device is in divide-by-4 operation. The steps must be followed in
this order, although it is possible to have other instructions between them. Any deviation from this order causes the
CD1, CD0 bits to remain unchanged. Switching from frequency multiplier to nonmultiplier mode requires no steps
other than the changing of the CD1, CD0 bits.
1) Ensure that the CD1, CD0 bits are set to 10, and the RGMD (EXIF.2) bit = 0.
2) Clear the crystal multiplier enable (CTM) bit.
3) Set the 4X/2X bit to the appropriate state.
4) Set the CTM bit.
Figure 20. System Clock Control Diagram
Switchback
As an alternative to software changing the CD1 and CD0 clock control bits to exit PMM, the microcontroller
provides hardware alternatives for automatic switchback to standard speed (divide-by-4) operation. When enabled,
the switchback feature allows serial ports and interrupts to automatically switch back from divide-by-1024 (PMM) to
divide-by-4 (standard speed) operation. This feature makes it very convenient to use the PMM in real-time
applications.
The switchback feature is enabled by setting the SFR bit SWB (PMR.5) to a 1. Once it is enabled, and PMM is
selected, two possible events can cause an automatic switchback to divide-by-4 mode. First, if an external interrupt
occurs and is acknowledged, the system clock reverts from PMM to divide-by-4 mode. For example, if INT0 is
enabled and the CPU is not servicing a higher priority interrupt, then switchback occurs on INT0. However, if INT0
is not enabled or the CPU is servicing a higher priority interrupt, then activity on INT0 does not cause switchback to
occur.
A switchback can also occur when an enabled UART detects the start bit, indicating the beginning of an incoming
serial character or when the SBUF register is loaded initiating a serial transmission. Note that a serial character’s
start bit does not generate an interrupt. The interrupt occurs only on reception of a complete serial word. The
automatic switchback on detection of a start bit allows hardware to return to divide-by-4 operation (and the correct
baud rate) in time for a proper serial reception or transmission.
5) Poll the CKRDY bit (EXIF.3), waiting until it is set to 1. This takes approximately 65,536 cycles of the external
6) Set CD1, CD0 to 00. The frequency multiplier is engaged on the machine cycle following the write to these bits.
crystal or clock source.
92 of 97

Related parts for DS80C400