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 ST-Microelectronics
ST10F163 Datasheet PDF : 58 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
ST10F163
V.1 - Programming/erasing with ST Embedded
Algorithm Kernel
In order to secure flash programming and erasing
operations, and also to simplify the software
development for programming and erasing the
Flash, the ST10F163 Flash is programmed or
erased by executing a specific sequence of
instructions (called ‘Unlock Sequence’) with com-
mand and parameters loaded into GPRs. The
Unlock Sequence’ invokes embedded kernel rou-
tines that checks the validity of the parameters
provided by the user, and decodes the command
(programming or erasing) and executes it.
When performing a programming command, the
Embedded Algorithm Kernel automatically times
the program pulse widths (taking in account the
CPU period provided as a parameter by the user)
and verifies proper cell programming.
When performing an erasing command, the
Embedded Algorithm Kernel automatically
pre-programs the bank to be erased if it is not
already programmed. During erase, the Embed-
ded Algorithm Kernel automatically times the
erase pulse widths (taking in account the CPU
period provided as a parameter by the user) and
verifies proper cell erasing.
To start a program/erase operation, the user’s
application must perform an ‘Unlock Sequence’ to
trigger the flash ST Embedded Algorithms Kernel
(STEAK). Before using STEAK, proper parame-
ters must be assigned through the R0-R4 regis-
ters. The R0 register is the command register. The
other registers handle the address and data to be
programmed or sector to be erased. Table 3
defines the command sequence. A definition of
the codes used in Table 3 is given in Table 4.
Table 3 : Command -parameters definition
COMMAND
R0
R1
R2
R3
Single word programming
Double Word programming
Block programming
Sector Erasing
Read Status
55Ash
DD4sh
AA5sh
EEEEh
7777h
AddOff
AddOff
BegAddOff
5555h
nu
W
DWL
EndAddOff
Bnk
nu
nu
DWH
SourceAddr
Bnk
nu
Note The read status for registers R1 to R3 is not used except for the return values, refer to “Return values” on page 13
Table 4 : Code definition
R4
2TCL
2TCL
2TCL
2TCL
2TCL
Abbreviation
s
AddOff
W
DWL,DWH
BegAddOff
EndAddOff
SourceAdd
Bnk
2TCL
Definition
Segment of the target flash memory cell
Segment Offset of the target flash memory cell which must be even an value (word-aligned address).
Data (word) to be written in flash.
Data (double word, DHL = low word, DWH = high word to be written in Flash,
Segment Offset of the FIRST target flash memory word to be written in a multiple programming com-
mand. This value must be even (word-aligned address)
Segment Offset of the LAST Target Flash Memory word to be written in a Multiple programming
command.
Must be even value (word-aligned address). The value D = (EndAddOff - BegAddOff) must be: 0 <=
D < 16384 (ie. up to one page (16 KBytes) can be written in the flash with one multi-word program-
ming command).
Start address for the source data (block) to be programmed. This address uses implicitly the data
paging mechanism of the CPU. SourceAdd value must respect the rules:
- SourceAdd + (EndAddOff - BegAddOff) < 16384.
- Page 0 and 1 can NOT be used for source data if SYSCON bit ROMS1 = ‘1’
Note: source data can be located in flash (In pages 0, 1, 6, 7, 8, 9, 10 or 11 if bit ROMS1 = ‘0’, or in
pages 4, 5, 6, 7, 8, 9, 10 or 11 if bit ROMS1 = ‘1’.
Number of the Bank to be erased. Note that for security, R2 and R3 must hold the same value.
CPU clock period in nseconds (e.g. R4 = 40d means CPU frequency is 25MHz).
11/58

Share Link: 

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