Samsung C8274X Computer Hardware User Manual


 
S3F8275X EMBEDDED FLASH MEMORY INTERFACE
16-9
PROGRAMMING
A flash memory is programmed in one byte unit after sector erase. And for programming safety's sake, must set
FMSECH and FMSECL to flash memory sector value.
The write operation of programming starts by 'LDC' instruction.
You can write until 128byte, because this flash sector's limits is 128byte.
So if you written 128byte, must reset FMSECH and FMSECL.
The Program Procedure in User program Mode
1. Must erase sector before programming.
2. Set Flash Memory User Programming Enable Register (FMUSR) to “10100101B”.
3. Set Flash Memory Sector Register (FMSECH, FMSECL) to sector value of write address.
4. Load a flash memory upper address into upper register of pair working register.
5. Load a flash memory lower address into lower register of pair working register.
6. Load a transmission data into a working register.
7. Check user’s ID code (written by user)
8. Set Flash Memory Control Register (FMCON) to “01010001B”.
9. Load transmission data to flash memory location area on ‘LDC’ instruction by indirectly addressing mode
10. Set Flash Memory User Programming Enable Register (FMUSR) to “00000000B”.