ST10F273Z4 STMicroelectronics, ST10F273Z4 Datasheet - Page 40

no-image

ST10F273Z4

Manufacturer Part Number
ST10F273Z4
Description
16-BIT MICROCONTROLLER WITH MAC UNIT, UP TO 832 KBYTES FLASH MEMORY AND UP TO 68 KBYTES RAM
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST10F273Z4

Single Voltage Supply
5 V ±10%

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST10F273Z4Q3
Manufacturer:
INTEL
Quantity:
4 495
Part Number:
ST10F273Z4Q3
Manufacturer:
STMicroelectronics
Quantity:
10 000
Internal Flash memory
5.6
Note:
40/188
Write operation examples
In the following, examples for each kind of Flash write operation are presented.
Moreover, direct addressing is not allowed for write accesses to IFlash control registers.
This means that both address and data for a writing operation must be loaded in one of
ST10 GPR register (R0...R15).
Write operation on IBus registers is 16 bit wide.
Example of indirect addressing mode:
Word program
Example: 32-bit Word Program of data 0xAAAAAAAA at address 0x025554
Double word program
Example: Double Word Program (64-bit) of data 0x55AA55AA at address 0x035558 and
data 0xAA55AA55 at address 0x03555C.
Double Word Program is always performed on the Double Word aligned on a even Word: bit
ADD2 of FARL is ignored.
Sector erase
Example: Sector Erase of sectors B0F1 and B0F0 of Bank 0.
Suspend and resume
Word Program, Double Word Program, and Sector Erase operations can be suspended in
the following way:
MOV RWm, #ADDRESS;
MOV RWn, #DATA;
MOV [RWm], RWn;
FCR0H|= 0x2080;
FARL = 0x5554;
FARH = 0x0002;
FDR0L = 0xAAAA;
FDR0H = 0xAAAA;
FCR0H|= 0x8000;
FCR0H
FARL
FARH
FDR0L
FDR0H
FDR1L
FDR1H
FCR0H
FCR0H
FCR1L
FCR0H
FCR0H
|= 0x8000;
|= 0x0880;
|= 0x0003;
|= 0x8000;
|= 0x4000;
|= 0x1080;
= 0x5558;
= 0x0003;
= 0x55AA;
= 0x55AA;
= 0xAA55;
= 0xAA55;
/*Load Add in RWm*/
/*Load Data in RWn*/
/*Indirect addressing*/
/*Set WPG in FCR0H, SMOD must be set*/
/*Load Add in FARL*/
/*Load Add in FARH*/
/*Load Data in FDR0L*/
/*Load Data in FDR0H*/
/*Operation start*/
/*Set DWPG, SMOD must be set/
/*Load Add in FARL*/
/*Load Add in FARH*/
/*Load Data in FDR0L*/
/*Load Data in FDR0H*/
/*Load Data in FDR1L*/
/*Load Data in FDR1H*/
/*Operation start*/
/*Set SER in FCR0H, SMOD must be set*/
/*Set B0F1, B0F0*/
/*Operation start*/
/*Set SUSP in FCR0H*/
ST10F273Z4

Related parts for ST10F273Z4