EasyManuals Logo

Abov MC97F60128 User Manual

Abov MC97F60128
382 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #367 background imageLoading...
Page #367 background image
367
MC97F60128
ABOV Semiconductor Co., Ltd.
15.1.11 Read Mode
The Reading program procedure in user program mode
1. Load receive data from flash memory on MOVC instruction by indirectly addressing mode.
Program Tip reading
ANL EO,#0xF8 ;Set DPTR0
ORL MEX2,#0x90 ;If used BANK1, set MCM and MCB is ‘1’,
ANL MEX3,#0x7F ;If used BANK0, set MCM and MCB is ‘0’,
MOV A,#0
MOV DPH,#0xFE
MOV DPL,#0x80 ;flash memory address
MOVC A,@A+DPTR ;read data from flash memory
15.1.12 Code Write Protection Mode
The Code Write Protection program procedure in user program mode
1. Set flash identification register (FIDR).
2. Check the UserID for to prevent the invalid work
(Note).
3. Set flash mode control register (FMCR).
NOTE) Please refer to the chapter “Protection for Invalid Erase/Write”
Program Tip Code Write Protection
MOV FIDR,#0xA5 ;Identification value
MOV A,#ID_DATA_1 ;Check the UserID(written by user)
CJNE A,UserID1,No_WriteErase;This routine for UserID must be needed.
MOV A,#ID_DATA_2
CJNE A,UserID2,No_WriteErase
MOV FMCR,#0x04 ;Start flash Code Write Protection mode
NOP ;Dummy instruction, This instruction must be needed.
NOP ;Dummy instruction, This instruction must be needed.
NOP ;Dummy instruction, This instruction must be needed.
No_WriteErase:
MOV FIDR,#00H
MOV UserID1,#00H
MOV UserID2,#00H
---

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Abov MC97F60128 and is the answer not in the manual?

Abov MC97F60128 Specifications

General IconGeneral
BrandAbov
ModelMC97F60128
CategoryMicrocontrollers
LanguageEnglish

Related product manuals