stm8af6199 STMicroelectronics, stm8af6199 Datasheet - Page 49

no-image

stm8af6199

Manufacturer Part Number
stm8af6199
Description
Automotive 8-bit Mcu, With Up To 128 Kbytes Flash, Eeprom, 10-bit Adc, Timers, Lin, Can, Usart, Spi, I 2c, 3 V To 5.5 V
Manufacturer
STMicroelectronics
Datasheet
STM8AF61xx, STM8AF51xx
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. Each option byte has to be stored twice, for
redundancy, in a regular form (OPTx) and a complemented one (NOPTx), except for the ROP (read-out
protection) option byte and option bytes 8 to 16.
Option bytes can be modified in ICP mode (via SWIM) by accessing the EEPROM address shown in
Table 12: 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 12.
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
NAFR
AFR6
6
6
Reserved
Reserved
Reserved
Reserved
NAFR5
AFR5
5
Reserved
NAFR4
Reserved
Reserved
AFR4
NHSECNT[7:0]
HSECNT[7:0]
4
Option bits
NUBC[7:0]
NTMU[3:0]
ROP[7:0]
TMU[3:0]
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
49/100
FFh
FFh
FFh
FFh
FFh
FFh
FFh
00h
00h
00h
00h
00h
00h
00h
00h

Related parts for stm8af6199