参数资料
型号: ST10F168-Q2
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 16-BIT, FLASH, 25 MHz, MICROCONTROLLER, PQFP144
封装: 28 X 28 MM, PLASTIC, QFP-144
文件页数: 6/76页
文件大小: 483K
代理商: ST10F168-Q2
ST10F168
14/76
5.1 - Programming / Erasing with ST
Embedded Algorithm Kernel
There are three stages to run STEAK :
– To load the registers R0 to R4 with the STEAK
command, the address and the data to be pro-
gramed, or sector to be erased. Table 4 gives
the STEAK parameters for each type of Flash
programming / erasing operation. Table 5 de-
fines the codes used in Table 4.
– To initiate the Unlock Sequence. The Unlock Se-
quence is composed of two consecutive writes
to an even address in the Flash active address
space - the first write has direct addressing
mode (MOV mem, Rwn) - the second write has
indirect addressing mode (MOV [Rwm], Rwn).
Rwn can be any unused Word-GPR (R6 to R15)
loaded with a value resulting in the same even
address as “mem”.
– To read the return values in R0. When the em-
bedded programming / erasing algorithm re-
turns to trigger point, return values are given in
R0. Table 6 gives the error-code definitions,
Table 7 gives the return values in each register
for each type of Flash programming / erasing
command.
Note
The Flash Embedded STEAK Algorithms
require at least 50 words on the Internal
System Stack. STEAK verifies that there is
enough free space on the System Stack,
before performing a programming or eras-
ing operation.The MDH, MDL and MDC
register content are modified.
Code examples for programming and erasing the
Flash
Memory
using
STEAK
are
given in
Section 5.2.
Table 4 : STEAK parameters
Command
R0
R1
R2
R3
R4
Single Word programming
55Ash
AddOff
W
nu
2TCL
Double Word programming
DD4sh
AddOff
DWL
DWH
2TCL
Multiple (block) programming
AA5sh
BegAddOff
EndAddOff
SourceAddr
2TCL
Sector Erasing
EEEEh
5555h
Bnk
2TCL
Read Status
7777h
nu
2TCL
Table 5 : Programming / erasing code definition
s
Segment of the Target Flash Memory cell,
AddOff
Segment Offset of the Target Flash Memory cell. Must be even value (Word-aligned address).
W
Data (Word) to be written in Flash.
DWL,DWH Data (double Word, DHL = low Word, DWH = high Word) to be written in Flash.
BegAddOff
Segment Offset of the FIRST Target Flash Memory Word to be written in a Multiple programming
command. Must be even value (Word-aligned address).
EndAddOff
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 (16K Byte) can be written in the flash with one multi-Word programming
command).
SourceAdd
Start address for the block to be programmed.
This address is using implicitly the data paging mechanism of the CPU. SourceAdd value must respect
the following rules :
- SourceAdd + (EndAddOff - BegAddOff) < 16384.
- Page 0 and 1 can NOT be used for source data if bit ROMS1 = ‘1’ (in SYSCON register).
Note that source data can be located in Flash (In pages 0, 1, 6 to 19 if bit ROMS1 = ‘0’, or in pages 4 to 19
if bit ROMS1 = ‘1’).
Bnk
Number of the Bank to be erased. For security, R2 and R3 must hold the same value.
2TCL
CPU clock period in nano-seconds (eg. R4 = 50d means CPU frequency is 20MHz).
相关PDF资料
PDF描述
ST10F168-Q3 16-BIT, FLASH, 25 MHz, MICROCONTROLLER, PQFP144
ST10F252M-4T3 16-BIT, FLASH, 40 MHz, RISC MICROCONTROLLER, PQFP100
ST10F269DIETR 16-BIT, FLASH, 32 MHz, MICROCONTROLLER, UUC
ST10F269Z2Q3 16-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP144
ST10F269Z2Q6 16-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP144
相关代理商/技术参数
参数描述
ST10F168Q3 制造商:STMicroelectronics 功能描述:MicroController, 16-Bit, 144 Pin, Plastic, QFP
ST10F168-Q3 制造商:STMicroelectronics 功能描述:MicroController, 16-Bit, 144 Pin, Plastic, QFP
ST10F168-Q6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:16-BIT MCU WITH 256K BYTE FLASH MEMORY AND 8K BYTE RAM
ST10F168SQ3 功能描述:16位微控制器 - MCU 256K Flash 8K RAM RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
ST10F168SQ6 功能描述:16位微控制器 - MCU 256K Flash 8K RAM RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT