Programming manual
L6482
56/73
Doc ID 023768 Rev 1
The SW_MODE bit sets the external switch to act as HardStop interrupt or not:
Table 35.
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
Internal oscillator: 16 MHz
Unused
Supplies an 8-MHz
clock
1
0
1
1
Internal oscillator: 16 MHz
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 36.
External switch HardStop interrupt mode
SW_MODE
Switch mode
0
HardStop interrupt
1
User disposal