Flat Panel Television User Manual
Table Of Contents
- TOC
- 01-Overview
- 02-Address Space
- 03-Addressing Modes
- 04-Control Registers
- 05-Interrupt Structure
- 06-Instruction Set
- 07-Clock and Power Circuits
- 08-RESET
- 09-IO PORTS
- 10-BASIC TIMER and TIMER 0
- 11-Timer1
- 12-CounterA
- 13-Timer2
- 14-EMBEDDED Flash Memory Interface
- 15-Low Voltagge Detector
- 16-Electrical Data
- 17-Mechanical Data
- 18-Flash MCU
- 19-Development Tool
- TOC.pdf

EMBEDDED FLASH MEMORY INTERFACE S3F80P5_UM_ REV1.00
SECTOR_ERASE:
LD R12,SecNumH
LD R14,SecNumL
MULT RR12,#80H ; Calculation the base address of a target sector
MULT RR14,#80H ; The size of one sector is 128-bytes
ADD R13,R14
; BTJRF FLAGS.7,NOCARRY
; INC R12
NOCARRY:
LD R10,R13
LD R11,R15
ERASE_START:
SB1
LD FMUSR,#0A5H ; User program mode enable
LD FMSECH,R10 ; Set sector address
LD FMSECL,R11
LD FMCON,#10100001B ; Select erase mode enable & Start sector erase
ERASE_STOP:
LD FMUSR,#00H ; User program mode disable
SB0
RET
14-10










