ST72334J/N, ST72314J/N, ST72124J
4.5 MAIN CLOCK CONTROLLER (MCC)
The MCC block supplies the clock for the ST7
CPU and its internal peripherals. It allows to man-
age the power saving modes such as the SLOW
and ACTIVE-HALT modes. The whole functionali-
ty is managed by the Main Clock Control/Status
Register (MCCSR) and the Miscellaneous Regis-
ter 1 (MISCR1).
The MCC block consists of:
– a programmable CPU clock prescaler
– a time base counter with interrupt capability
– a clock-out signal to supply external devices
The prescaler allows to select the main clock fre-
quency and is controlled with three bits of the
MISCR1: CP1, CP0 and SMS.
The counter allows to generate an interrupt based
on a accurate real time clock. Four different time
bases depending directly on fOSC are available.
The whole functionality is controlled by four bits of
the MCCSR register: TB1, TB0, OIE and OIF.
The clock-out capability allows to configure a ded-
icated I/O port pin as an fOSC/2 clock out to drive
external devices. It is controlled by the MCO bit in
the MISCR1 register.
When selected, the clock out pin suspends the
clock during ACTIVE-HALT mode.
Figure 25. Main Clock Controller (MCC) Block Diagram
OSC2
OSC1
O SCILLATO R
fOSC
DIV 2
PROGRAMMABLE
DIVIDER
MCC
DIV 2, 4, 8, 16
MCO
MCCSR
0 0 0 0 TB1 TB0 OIE OIF
MCC INTERRUPT
PORT
ALTERNATE
FUNCTION
MISCR1 -
- MCO -
- CP1 CP0 SMS
CPU CLOCK
TO CPU AND
PERIPHER ALS
fCPU
fOSC/2
34/125