Clock, 1 description – Rainbow Electronics T89C51CC01 User Manual

Page 17

Advertising
background image

17

T89C51CC01

Rev. D – 17-Dec-01

6. Clock

The T89C51CC01 core needs only 6 clock periods per machine cycle. This feature,
called”X2”, provides the following advantages:

Divides frequency crystals by 2 (cheaper crystals) while keeping the same CPU
power.

Saves power consumption while keeping the same CPU power (oscillator power
saving).

Saves power consumption by dividing dynamic operating frequency by 2 in
operating and idle modes.

Increases CPU power by 2 while keeping the same crystal frequency.

In order to keep the original C51 compatibility, a divider-by-2 is inserted between the
XTAL1 signal and the main clock input of the core (phase generator). This divider may
be disabled by the software.

An extra feature is available to start after Reset in the X2 mode. This feature can be
enabled by a bit X2B in the Hardware Security Byte. This bit is described in the section
"In-System Programming".

6.1 Description

The X2 bit in the CKCON register (see Table 12) allows switching from 12 clock cycles
per instruction to 6 clock cycles and vice versa. At reset, the standard speed is activated
(STD mode).

Setting this bit activates the X2 feature (X2 mode) for the CPU Clock only (see Figure
5.).

The Timers 0, 1 and 2, Uart, PCA, watchdog or CAN switch in X2 mode only if the corre-
sponding bit is cleared in the CKCON register.

The clock for the whole circuit and peripheral is first divided by two before being used by
the CPU core and peripherals. This allows any cyclic ratio to be accepted on the XTAL1
input. In X2 mode, as this divider is bypassed, the signals on XTAL1 must have a cyclic
ratio between 40 to 60%. Figure 5. shows the clock generation block diagram. The X2
bit is validated on the XTAL1

÷

2 rising edge to avoid glitches when switching from the X2

to the STD mode. Figure 6 shows the mode switching waveforms.

Advertising