stm8af6199 STMicroelectronics, stm8af6199 Datasheet - Page 15
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
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
1.STM8AF6199.pdf
(100 pages)
- Current page: 15 of 100
- Download datasheet (2Mb)
STM8AF61xx, STM8AF51xx
5.4.3
5.4.4
Read-out protection (ROP)
STM8A devices provide a read-out protection of the code and data memory by
programming the lock byte at address 4800h with the value AAh.
Read-out protection prevents reading and writing the program and data memory via the
debug module and SWIM interface. This protection is active in all device operation modes.
Any attempt to remove the protection by overwriting the lock byte triggers a global erase of
the program and data memory.
The ROP circuit may provide a temporary access for debugging or failure analysis. This is a
specific product option and must be specified while ordering STM8A products.
Temporary read access is protected by a user defined, 8-byte keyword that is different from
00h or FFh. The keys are stored in the option byte area.
Temporary read-out can be permanently disabled by means of the option byte TMU_DIS.
For enabling temporary read access the eight access keys have to be written in the TMU
registers. A wrong code does not change the protection status. More than eight
unsuccessful access trials trigger an erase of the program and data memory.
Entering the right key sequence enables a temporary read access to the code and data
memory after a delay of several milliseconds.
The procedure for temporary read access is as follows:
●
●
●
●
●
The read access is temporary. A device reset restores the initial protection.
Speed
●
●
Activate SWIM mode under device reset - the CPU is stalled, code and data memory
are not visible by the debug module.
Enable the internal 128 KHz LSI oscillator
Write the 8eight key bytes into the TMU registers
Set the bit(0) of the TMU status register to 1. A dedicated state machine on an isolated
bus, compares the TMU register content with the key stored in the TMU option bytes.
During this periode read and write operations have no effect. A reset re-activates the
initial protection status. The comparison can be monitored by means of the
register.
In case of a successful key comparison, the SWIM interface enables read access to the
code and data memory and program execution. A comparison error does not change
the protection status but increments the counter MAXATT. If the counter content
exceedes eight unsuccessful trials, a global erase of the data and code memory is
triggered.
Operation at up to 16 MHz CPU clock frequency without wait states. At a higher clock
frequency, a single wait state has to be inserted.
Programming time modes (same for word or block)
–
–
Fast programming: Without erase
Standard programming: Erase and program
Product overview
TU_CTL_ST
15/100
Related parts for stm8af6199
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![STM8-TOUCH-LIB](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
STM8 touch sensing library
Manufacturer:
STMicroelectronics
Datasheet:
![STM8/128-SK/RAIS](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
KIT STARTER FOR STM8S207/8 SER
Manufacturer:
STMicroelectronics
Datasheet:
![STM8/128-EV/TS](/photos/9/18/91878/stm8_128-ev_ts_tmb.jpg)
Part Number:
Description:
EVAL KIT TOUCH SENSING STM8S
Manufacturer:
STMicroelectronics
Datasheet:
![STM8/128-EVAL](/photos/9/22/92265/stm8_128-eval_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR STM8S
Manufacturer:
STMicroelectronics
Datasheet:
![STM8/128-D/RAIS](/photos/28/35/283548/stm8_128-d_rais_tmb.jpg)
Part Number:
Description:
BOARD DAUGHTER FOR STM8S207/8
Manufacturer:
STMicroelectronics
Datasheet:
![STM8/128-MCKIT](/photos/9/6/90664/stm8_128-mckit_tmb.jpg)
Part Number:
Description:
EVAL KIT MOTOR CONTROL STM8S
Manufacturer:
STMicroelectronics
Datasheet:
![STM8-SK](/images/no-image3.png)
Part Number:
Description:
Raisonances complete, low-cost starter kits for STM8 and ST7
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![STICE-SYS001](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
EMULATOR FOR STM8
Manufacturer:
STMicroelectronics
Datasheet:
![STMPRIMER-BASE](/photos/15/94/159408/stprimer_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools EvoPrimer Base MCU Target BRD w/Ext BRD
Manufacturer:
STMicroelectronics
Datasheet:
![STMPRIMER-PROTO](/photos/15/94/159408/stprimer_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools EvoPrimer Base Proto 5 Extention Boards
Manufacturer:
STMicroelectronics
Datasheet:
![HCF4040BF](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
STMicroelectronics [RIPPLE-CARRY BINARY COUNTER/DIVIDERS]
Manufacturer:
STMicroelectronics
Datasheet:
![HCF4054BF](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
STMicroelectronics [LIQUID-CRYSTAL DISPLAY DRIVERS]
Manufacturer:
STMicroelectronics
Datasheet:
![STEVAL-MKI062V2](/photos/28/39/283999/steval-mki062v2_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR MEMS SENSORS
Manufacturer:
STMicroelectronics
Datasheet: