
FOR
FOR
enCoRe
USB
CY7C63221/31A
Document #: 38-08028 Rev. *A
Page 14 of 49
9.0
Clocking
The chip can be clocked from either the internal on-chip clock, or from an oscillator based on an external resonator/crystal, as
shown in
Figure 9-1
. No additional capacitance is included on chip at the XTALIN/OUT pins. Operation is controlled by the Clock
Configuration Register,
Figure 9-2
.
Bit 7: Ext. Clock Resume Delay
External Clock Resume Delay bit selects the delay time when switching to the external oscillator from the internal oscillator
mode, or when waking from suspend mode with the external oscillator enabled.
1 = 4 ms delay.
0 = 128
μ
s delay.
The delay gives the oscillator time to start up. The shorter time is adequate for operation with ceramic resonators, while the
longer time is preferred for start-up with a crystal. (These times
do not include
an initial oscillator start-up time which depends
on the resonating element. This time is typically 50
–
100
μ
s for ceramic resonators and 1
–
10 ms for crystals). Note that this
bit only selects the delay time for the external clock mode. When waking from suspend mode with the internal oscillator (Bit 0
is LOW), the delay time is only 8
μ
s in addition to a delay of approximately 1
μ
s for the oscillator to start.
Bit [6:4]: Wake-up Timer Adjust Bit [2:0]
The Wake-up Timer Adjust Bits are used to adjust the Wake-up timer period.
If the Wake-up interrupt is enabled in the Global Interrupt Enable Register, the microcontroller will generate wake-up interrupts
periodically. The frequency of these periodical wake-up interrupts is adjusted by setting the Wake-up Timer Adjust Bit [2:0],
as described in Section 11.2. One common use of the wake-up interrupts is to generate periodical wake-up events during
suspend mode to check for changes, such as looking for movement in a mouse, while maintaining a low average power.
Bit 3: Low-voltage Reset Disable
When V
CC
drops below V
LVR
(see Section 23.0 for the value of V
LVR
) and the Low-voltage Reset circuit is enabled, the
microcontroller enters a partial suspend state for a period of t
START
(see Section 24.0 for the value of t
START
). Program
Figure 9-1. Clock Oscillator On-chip Circuit
Bit #
Bit Name
7
6
Wake-up Timer Adjust Bit [2:0]
5
4
3
2
1
0
Ext. Clock
Resume
Delay
Low-voltage
Reset
Disable
Precision
USB
Clocking
Enable
R/W
0
Internal
Clock
Output
Disable
R/W
0
External
Oscillator
Enable
Read/Write
Reset
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
Figure 9-2. Clock Configuration Register (Address 0xF8)
XTALOUT
XTALIN
Clk2x (12 MHz)
(to Microcontroller)
Clock
Doubler
Clk1x (6 MHz)
(to USB SIE)
Port 2.1
Ext Osc Enable
Port 2.2
Int Clk Output Disable
Internal Osc