STM8S007C8
Option bytes
Option byte no.
OPT0
OPT1
OPT2
Table 12. Option byte description
Description
ROP[7:0] Memory readout protection (ROP)
0xAA: Enable readout protection (write access via SWIM protocol) ï€
Note: Refer to the family reference manual (RM0016) section on
Flash/EEPROM memory readout protection for details.
UBC[7:0] User boot code area
0x00: no UBC, no write-protectionï€
0x01: Pages 0 to 1 defined as UBC, memory write-protectedï€
0x02: Pages 0 to 3 defined as UBC, memory write-protectedï€
0x03: Pages 0 to 4 defined as UBC, memory write-protectedï€
...ï€
0xFE: Pages 0 to 255 defined as UBC, memory write-protectedï€
0xFF: Reservedï€
Note: Refer to the family reference manual (RM0016) section on
Flash/EEPROM write protection for more details.
AFR7Alternate function remapping option 7
0: Port D4 alternate function = TIM2_CH1ï€
1: Port D4 alternate function = BEEP
AFR6 Alternate function remapping option 6
0: Port B5 alternate function = AIN5, port B4 alternate function = AIN4ï€
1: Port B5 alternate function = I2C_SDA, port B4 alternate function =
I2C_SCL
AFR5 Alternate function remapping option 5
0: Port B3 alternate function = AIN3, port B2 alternate function = AIN2, ï€
port B1 alternate function = AIN1, port B0 alternate function = AIN0ï€
1: Port B3 alternate function = TIM1_ETR, port B2 alternate function =
TIM1_CH3N, port B1 alternate function = TIM1_CH2N, port B0 alternate
function = TIM1_CH1N
AFR4 Alternate function remapping option 4
Reserved
AFR3 Alternate function remapping option 3
0: Port D0 alternate function = TIM3_CH2ï€
1: Port D0 alternate function = TIM1_BKIN
AFR2 Alternate function remapping option 2
0: Port D0 alternate function = TIM3_CH2ï€
1: Port D0 alternate function = CLK_CCOï€
Note: AFR2 option has priority over AFR3 if both are activated
AFR1 Alternate function remapping option 1
0: Port A3 alternate function = TIM2_CH3, port D2 alternate function
TIM3_CH1ï€
1: Port A3 alternate function = TIM3_CH1, port D2 alternate function
TIM2_CH3
AFR0 Alternate function remapping option 0
0: Port D3 alternate function = TIM2_CH2ï€
1: Port D3 alternate function = ADC_ETR
DocID022171 Rev 5
39/92
41