DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST10F163 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST10F163
ST-Microelectronics
STMicroelectronics 
ST10F163 Datasheet PDF : 58 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
ST10F163
The Flash Unlock Sequence consists of two con-
secutive writes: the direct addressing mode and
the indirect addressing mode. The FCR must rep-
resent an even address in the active address
space of the flash memory. Rwn can be any
unused word GPR (R6 to R15), loaded with a
value that results in the same even address as for
FCR
EXTS #1, #2
; assumes flash is
mapped in seg 1
MOV FCR, R7 ; first part
MOV [R7], R7 ; second part
For easier coding, the standard data paging
addressing scheme is overridden for the two MOV
instruction of the Flash Trigger Sequence (EXTS
instruction). This also locked both standard and
PEC interrupts and class A hardware traps. Must
be replace by ATOMIC instruction if standard DPP
addressing scheme must be preserved.
When the embedded programming/erasing algo-
rithm returns to trigger point, information can be
collected through register R0 so the user can take
specific actions. Table 5 lists all of the error codes
that can be returned in R0.
Table 5 : Error code definition
ERROR CODE
MEANING
00h
Operation was successful
01h
ROMEN bit inside SYSCON is not set
02h
Vpp voltage not present
03h
Programming operation failed
04h
Address value (R1) incorrect: not in Flash address area or odd
05h
CPU period out of range (must be between 10 ns to 1000 ns)
06h
Not enough free space on system stack for proper operation
07h
Incorrect bank number (R2,R3) specified
08h
Erase operation failed
09h
Bad source address for multi-word programming command
0Ah
Bad number of words to be copied in multi-word programming command: one
destination will be out of flash, or one source operand will be out of the source page
FF h
Unknown or bad command
Note The Flash Embedded Presto Algorithms require at least 45 words on the Internal System Stack for proper operation. The program
verifies itself that there is enough free space on the System Stack before performing a programming or erasing operation (by
comparing SP value with STKOV+90d).
12/58

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]