Panasonic F77G User Manual page 88

Microcomputer mn101c series
Table of Contents

Advertisement

Chapter 2 CPU Basics
ROM Correction Setup Example
The setup procedure with ROM correction to correct 2 parts of the program is shown below.
For the step to execute the ROM correction, refer to figure 2-7-12. Initial Routine for ROM correction on
the previous page.
(STEP 1)
Develop the correct program of the external EEPROM to RAM area.
Internal RAM
Address
06B4
06B5
06B6
06B7
06B8
06B9
06BA
06BB
06BC
06BD
06BE
06BF
06C0
06C1
06C2
(STEP 2)
Set the ROM correction address setting register and the RC vector table.
[Setup for the first correction]
Set the head address of the program to be
corrected at first to the ROM correction address 0
setting register (RC0AP).
RC0APL = x'19'
RC0APM = x'09'
RC0APH = x'01'
Set the internal RAM address x'06B4' that stored the
first correct program to the RC vector table address
(RC0V(L), RC0V(H).
RC0V(L) = x'B4'
RC0V(H) = x'06'
II - 36
ROM Correction
Address
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
Data
000A
000B
0A
000C
00
000D
85
000E
93
000F
C2
0010
91
develop
0011
F0
0012
FF
0013
0A
0014
14
0015
85
0016
93
0017
02
0018
90
0019
00
External EEPROM
Data
03
Program management version.
19
09
Set value to the ROM correction address 0 setting register
01
B4
The head address of the development first correct program
06
FD
08
Set value to the ROM correction address 1 setting register
01
BC
The head address of the development second correct program
06
0A
00
85
93
The first correct program instruction code
C2
91
F0
FF
For half-byte instruction adjustment
(no need to the real ROM)
0A
14
85
The second correct program instruction code
93
02
90
00
The first program to be corrected (internal ROM)
Address
10916
10919
1091B
1091C
1091E
The first correct program (internal RAM)
Address
006B4
006B6
006B7
(RC0AP)
(RC1AP)
The head address of the correction
(the set value of RC0AP)
Data
cbne
0, d1, 1091E
D900A0
A005
mov
50, d0
58
mov
d0, (a0)
8940
bra
10920
B4
sub
d0, d0
The address for recover
The head address of the correction program
(the set value of RC0V)
Data
mov
0, d0
A000
58
mov
d0, (a0)
392C190
bra
1091C
The addres for recover

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents