Datasheet
Option byte STM8S105x4/6
48/121 DocID14771 Rev 15
OPT4
EXTCLK: External clock selection
0: External crystal connected to OSCIN/OSCOUT
1: External clock signal on OSCIN
CKAWUSEL: Auto wake-up unit/clock
0: LSI clock source selected for AWU
1: HSE clock with prescaler selected as clock source for AWU
PRSC[1:0] AWU clock prescaler
0x: 16 MHz to 128 kHz prescaler
10: 8 MHz to 128 kHz prescaler
11: 4 MHz to 128 kHz prescaler
OPT5
HSECNT[7:0]: HSE crystal oscillator stabilization time
0x00: 2048 HSE cycles
0xB4: 128 HSE cycles
0xD2: 8 HSE cycles
0xE1: 0.5 HSE cycles
OPT6 Reserved
OPT7 Reserved
OPTBL
BL[7:0]: Bootloader option byte
For STM8S products, this option is checked by the boot ROM code after
reset. Depending on the content of addresses 0x487E, 0x487F, and 0x8000
(reset vector), the CPU jumps to the bootloader or to the reset vector. Refer
to the UM0560 (STM8L/S bootloader manual) for more details.
For STM8L products, the bootloader option bytes are on addresses 0xXXXX
and 0xXXXX+1 (2 byte). These option bytes control whether the bootloader is
active or not. For more details, refer to the UM0560 (STM8L/S bootloader
manual) for more details.
Table 12. Option byte description (continued)
Option byte no. Description