Programming manual
L6470
46/64
Doc ID 16737 Rev 2
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:
Table 22.
Oscillator management
EXT_CLK
OSC_SEL[2..0]
Clock source
OSCIN
OSCOUT
0
0
0
0
Internal Oscillator: 16MHz
Unused
Unused
0
0
0
1
0
0
1
0
0
0
1
1
1
0
0
0
Internal Oscillator: 16MHz
Unused
Supplies a 2MHz
clock
1
0
0
1
Internal Oscillator: 16MHz
Unused
Supplies a 4MHz
clock
1
0
1
0
Internal oscillator: 16MHz
Unused
Supplies a 8MHz
clock
1
0
1
1
Internal oscillator: 16MHz
Unused
Supplies a 16MHz
clock
0
1
0
0
External crystal or
resonator: 8MHz
Crystal/reson
ator driving
Crystal/resonator
driving
0
1
0
1
External crystal or
resonator: 16MHz
Crystal/reson
ator driving
Crystal/resonator
driving
0
1
1
0
External crystal or
resonator: 24MHz
Crystal/reson
ator driving
Crystal/resonator
driving
0
1
1
1
External crystal or
resonator: 32MHz
Crystal/reson
ator driving
Crystal/resonator
driving
1
1
0
0
Ext clock source: 8MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted
OSCIN signal
1
1
0
1
Ext clock source: 16MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted
OSCIN signal
1
1
1
0
Ext clock source: 24MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted
OSCIN signal
1
1
1
1
Ext clock source: 32MHz
(Crystal/resonator driver
disabled)
Clock source
Supplies inverted
OSCIN signal
Table 23.
External switch hard stop interrupt mode
SW_MODE
Switch mode
0
HardStop interrupt
1
User disposal