at83c5122 ATMEL Corporation, at83c5122 Datasheet - Page 45

no-image

at83c5122

Manufacturer Part Number
at83c5122
Description
At83c5123 C51 Microcontroller With Usb And Smart Card Reader Interfaces
Manufacturer
ATMEL Corporation
Datasheet
X1 and X2 Modes
4202E–SCR–06/06
The CPU and peripherals clocks frequencies are defined in the table below.
Use of on-chip oscillator
When the CPU and Peripherals clocks are fed by the on-chip oscillator, the CPU and
Peripherals can be configured independently in X1 or X2 mode depending on the fre-
quencies wanted by the user. There is however one exception : the periperals can be
configured in X2 mode while the CPU remains in X1 mode. This exception is handled by
the hardware and the user does not need to take care of.
The X1 or X2 modes can be individually selected for the CPU and each peripheral by
means of CKCON0 and CKCON1 registers. At reset, the CPU and Peripherals are set
all by default to X1 mode. In this mode, changing any peripheral to X2 mode has no
effect. When X2 bit is set in CKCON0 register, CPU and All peripherals are automati-
cally switched to X2 mode. It is then possible for the user to individually switch any
peripheral back to X1 mode.
In X1 mode (X2 bit cleared in CKCON0 regsiter), the PR1 prescaler is active while it is
bypassed in X2 mode (X2 bit set in CKCON0 register).
The X1 mode is true only when the prescaler PR1 is set to 1/2 (default condition at
reset).
Table 1. X1 and X2 Mode Selection
CKS
0
0
1
1
X1 mode
X1 mode
X2 mode
X2 mode
CPU
Peripherals
X2
0
1
0
1
X1 mode
X2 mode
X1 mode
X2 mode
Once the CPU is switched to X2
Default configuration when CPU
mode, the user is free to switch
(default configuration at reset)
Not Allowed by the hardware
any of the peripherals to X1
is switched to X2 mode
F
F
F
F
Not allowed
CK_IDLE
CK_XTAL1
CK_XTAL1
CK_PLL
Allowed
Allowed
Allowed
Status
mode
/(2*(16-CKRL))
/(2*(16-CKRL))
AT8xC5122/23
F
F
F
CK_IDLE
CK_IDLE
CK_IDLE
Frequenci
= 2*F
= F
= F
CK_PERIPH
CK_PERIPH
CK_PERIPH
45

Related parts for at83c5122