FUJITSU

  1. Home >
  2. Services & Products >
  3. Microelectronics & Electronic Devices >
  4. Products >
  5. Microcontrollers >
  6. Support Information >
  7. Know-How >
  8. FR Family >
  9. 7. Possible to write in the flash by unit of Half-word.

Back to Know-How on Development for FR Family

7. Possible to write in the flash by unit of Half-word.

FLASH MCU for F2 MC-16LX family is possible to program with half-word unit by issuing command as following on RAM. Erase is sector unit.


FLASH Memory Writing Command

example: MB91260A series

Command Sequence 1st bus
Write cycle
2nd bus
Write cycle
3rd bus
Write cycle
4th bus
Write cycle
Address Data Address Data Address Data Address Data
Write Program D5557 AA CAAAB 55 D5557 A0 Write
address
Write
data

Command Program sample (Execute on RAM)

LDI:20 #D5557H,R2 ; FLASH Write Command 1st cycle
LDI:8 #AAH,R3
STB R3,@R2
LDI:20 LDI:20 ; FLASH Write Command 2nd cycle
LDI:8 #55H,R3
STB R3,@R2
LDI:20 #D5557H,R2 ; FLASH Write Command 3rd cycle
LDI:8 #A0H,R3
STB R3,@R2
LDI:20 #C0000H,R2 ; C0000h ← "55AAh" write
LDI:20 #55AAH,R3
STB R3,@R2
.
.
Sequence check
.
.