105
3.14 Clock Doubler Function
3.14 Clock Doubler Function

As the internal operating frequency goes higher, the external bus timing normally

becomes more complicated. To prevent this, the ratio of the external bus frequency to

the internal operating frequency can be adjusted to 1 to 2 (1 : 2).

This model does not support this function.

Enabling the Clock Doubler Function
The clock doubler function is enabled by setting th e GCR DBLO N bit to 1 . Wh en DB LON is set
to 1, the system waits for all C-BUS accesses to be finishe d and then s witch es th e exte rnal bu s
clock. Thus, there is a small time lag before the switchi ng is completed, but the timing for
switching can be determined by the GCR DBLAK valu e.
When the clock doubler function is enabled, the CPU cloc k gear be comes 1 /1 regardl ess of the
GCR setting.
This device permits a frequency up to double the oscillati on to be set as the external bus
operating frequency. Therefore, code as follows to enable the c lock doubler function:
[Example]
Disabling the Clock Doubler Function
The clock doubler function is disabled by setting the GCR DBLON bit to 0. The CPU clo ck gear
changes from 1/1 back to the setting in the CCK bit of the GCR re gister simultaneously
DOUBLER-ON
LDI:20 #GCR,R0
BORL # 0001B,@R0 ; Switches to the divide-by-two clock (CHC
= 1)
BORH #0001B,@R0 ; Enables the clock doubler function
(DBLON = 1)
LOOP
BTSTH #0010B,@R0 ; Checks DBLAK
BEQ LOO P ; Loops until DBLAK becomes 1
BANDL # 1110B,@R0 ; Switches to the PLL clock (CHC = 0)