stm8af6148 STMicroelectronics, stm8af6148 Datasheet - Page 43

no-image

stm8af6148

Manufacturer Part Number
stm8af6148
Description
Automotive 8-bit Mcu, With Up To 32 Kbytes Flash, Eeprom, 10-bit Adc, Timers, Lin, Spi, I 2c, 3 V To 5.5 V
Manufacturer
STMicroelectronics
Datasheet
STM8AF61xx STM8AH61xx
10
Option bytes contain configurations for device hardware features as well as the memory protection of the
device. They are stored in a dedicated block of the memory. Except for the ROP (read-out protection)
byte, each option byte has to be stored twice, in a regular form (OPTx) and a complemented one
(NOPTx) for redundancy.
Option bytes can be modified in ICP mode (via SWIM) by accessing the EEPROM address shown in
Table 11: Option bytes
Option bytes can also be modified ‘on the fly’ by the application in IAP mode, except the ROP and UBC
options that can only be toggled in ICP mode (via SWIM).
Refer to the STM8 Flash programming manual (PM0047) and STM8 SWIM communication protocol and
debug modulel user manual (UM0470) for information on SWIM programming procedures.
Table 11.
4800h
4801h
4802h
4803h Alternate
4804h
4805h
4806h
4807h
4808h
4809h HSE
480Ah
480Bh
480Ch
480Dh
480Eh
480Fh
Addr.
Read-out
protection
(ROP)
boot code
(UBC)
function
remappin
g (AFR)
Watchdog
option
Clock
option
clock
startup
TMU
Flash wait
states
User
Option
name
Option bytes
Option bytes
OPT0
OPT1
NOPT1
OPT2
NOPT2
OPT3
NOPT3
OPT4
NOPT4
OPT5
NOPT5
OPT6
NOPT6
OPT7
NOPT7
byte no.
Option
below.
NAFR
AFR7
7
7
Reserved
Reserved
NAFR
AFR6
6
6
Reserved
Reserved
NAFR5
AFR5
5
Reserved
N16MHZ
NAFR4
16MHZ
Reserved
Reserved
AFR4
TIM0
TIM0
NHSECNT[7:0]
HSECNT[7:0]
4
Option bits
NUBC[7:0]
NTMU[0:3]
ROP[7:0]
TMU[0:3]
UBC[7:0]
NAFR3
NEXT
AFR3
NLSI
_EN
_EN
EXT
CLK
CLK
LSI
3
CKAWU
NCKAW
NIWDG
NAFR2
IWDG
USEL
AFR2
_HW
_HW
SEL
2
WWDG
NAFR1 NAFR0
NWWD
G_HW
AFR1
_HW
PRS
NPR
SC1
C1
1
WWDG
NWWG
NWAIT
_HALT
_HALT
STATE
STATE
AFR0
WAIT
PRS
NPR
SC0
C0
Option bytes
0
Factory
default
setting
FFh
FFh
FFh
FFh
FFh
FFh
FFh
00h
00h
00h
00h
00h
00h
00h
00h
43/90

Related parts for stm8af6148