beautypg.com

Registers – Rainbow Electronics AT89C5131 User Manual

Page 22

background image

22

AT89C5131

4136A–USB–03/03

Registers

Table 26. CKCON0 (S:8Fh)
Clock Control Register 0

Reset Value = 0000 0000b

7

6

5

4

3

2

1

0

-

WDX2

PCAX2

SIX2

T2X2

T1X2

T0X2

X2

Bit Number

Bit

Mnemonic Description

7

-

Reserved
The value read from this bit is always 0. Do not set this bit.

6

WDX2

Watchdog Clock
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

5

PCAX2

Programmable Counter Array Clock
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

4

SIX2

Enhanced UART Clock (Mode 0 and 2)
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

3

T2X2

Timer2 Clock
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

2

T1X2

Timer1 Clock
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

1

T0X2

Timer0 Clock
This control bit is validated when the CPU clock X2 is set. When X2 is low,
this bit has no effect.
Clear to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

0

X2

System Clock Control bit
Clear to select 12 clock periods per machine cycle (STD mode, F

CPU

= F

PER =

F

OSC

/

2).

Set to select 6 clock periods per machine cycle (X2 mode, F

CPU =

F

PER =

F

OSC

).