Programming manual
L6472
50/70
DocID022729 Rev 5
The OSC_SEL and EXT_CLK bits set the system clock source:
The SW_MODE bit sets the external switch to act as HardStop interrupt or not:
The OC_SD bit sets if an overcurrent event causes or not the bridges to turn off; the OCD
flag in the STATUS register is forced low anyway:
Table 25. Oscillator management
EXT_CLK OSC_SEL[2 … 0]
Clock source
OSCIN
OSCOUT
0 0
0
0
Internal oscillator: 16 MHz
Unused
Unused
0 0
0
1
0 0
1
0
0 0
1
1
1
0
0
0
Internal oscillator: 16 MHz
Unused
Supplies a 2-MHz clock
1
0
0
1
Internal oscillator: 16 MHz
Unused
Supplies a 4-MHz clock
1
0
1
0
Unused
Supplies an 8-MHz clock
1
0
1
1
Unused
Supplies a 16-MHz clock
0 1
0
0
External crystal or resonator:
8 MHz
Crystal/resonator
driving
Crystal/resonator driving
0 1
0
1
External crystal or resonator:
16 MHz
Crystal/resonator
driving
Crystal/resonator driving
0 1
1
0
External crystal or resonator:
24 MHz
Crystal/resonator
driving
Crystal/resonator driving
0 1
1
1
External crystal or resonator:
32 MHz
Crystal/resonator
driving
Crystal/resonator driving
1 1
0
0
Ext clock source: 8 MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted OSCIN
signal
1 1
0
1
Ext clock source: 16 MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted OSCIN
signal
1 1
1
0
Ext clock source: 24 MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted OSCIN
signal
1 1
1
1
Ext clock source: 32 MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted OSCIN
signal
Table 26. External switch hard stop interrupt mode
SW_MODE Switch
mode
0 HardStop
interrupt
1 User
disposal