ST7FMC1K2B3 STMICROELECTRONICS [STMicroelectronics], ST7FMC1K2B3 Datasheet - Page 37

no-image

ST7FMC1K2B3

Manufacturer Part Number
ST7FMC1K2B3
Description
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
6.4 MAIN CLOCK CONTROLLER WITH REAL-TIME CLOCK AND BEEPER (MCC/RTC)
The Main Clock Controller consists of three differ-
ent functions:
Each function can be used independently and si-
multaneously.
6.4.1 Programmable CPU Clock Prescaler
The programmable CPU clock prescaler supplies
the clock for the ST7 CPU and its internal periph-
erals. It manages Slow power saving mode (See
Section 8.2 SLOW MODE
The prescaler selects the f
cy and is controlled by three bits in the MCCSR
register: CP[1:0] and SMS.
6.4.2 Clock-out Capability
The clock-out capability is an alternate function of
an I/O port pin that outputs a f
Figure 19. Main Clock Controller (MCC/RTC) Block Diagram
a programmable CPU clock prescaler
a clock-out signal to supply external devices
a real-time clock timer with interrupt capability
f
CLK
DIV 2
CPU
for more details).
f
OSC2
MCCSR
main clock frequen-
OSC2
MCCBCR
DIV 2, 4, 8, 16
DIV 2, 4, 8, 16
MCO
clock to drive
DIV128
CP0
SMS
external devices. It is controlled by the MCO bit in
the MCCSR register.
CAUTION: When selected, the clock out pin sus-
pends the clock during Active-halt mode.
6.4.3 Real-time Clock Timer (RTC)
The counter of the real-time clock timer allows an
interrupt to be generated based on an accurate
real-time clock. Four different time bases depend-
ing directly on f
functionality is controlled by four bits of the MCC-
SR register: TB[1:0], OIE and OIF.
When the RTC interrupt is enabled (OIE bit set),
the ST7 enters Active-halt mode when the HALT
instruction is executed. See
HALT AND HALT MODES
6.4.4 Beeper
The beep function is controlled by the MCCBCR
register. It can output three selectable frequencies
on the BEEP pin (I/O port alternate function).
TB1 TB0 OIE
COUNTER
RTC
BEEP SIGNAL
GENERATOR
DIV 2
BC1 BC0
OIF
OSC2
f
ADC
are available. The whole
ST7MC1xx/ST7MC2xx
for more details.
f
f
CPU
MTC
Section 8.4 ACTIVE-
MCC/RTC INTERRUPT
(AND TO MTC
PERIPHERAL)
PERIPHERALS
PERIPHERAL
TO CPU AND
CPU CLOCK
TO MOTOR
CONTROL
BEEP
MCO
37/309
1

Related parts for ST7FMC1K2B3