Panasonic F77G Cell Phone User Manual


 
Chapter 2 CPU Basics
II - 36
ROM Correction
The first correct program instruction code
0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
000A
000B
000C
000D
000E
000F
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
03
19
09
01
B4
06
FD
08
01
BC
06
0A
00
85
93
C2
91
F0
FF
0A
14
85
93
02
90
00
Program management version.
Set value to the ROM correction address 0 setting register
(RC0AP)
Set value to the ROM correction address 1 setting register
(RC1AP)
The head address of the development first correct program
For half-byte instruction adjustment
(no need to the real ROM)
Address
Data
External EEPROM
06B4
06B5
06B6
06B7
06B8
06B9
06BA
06BB
06BC
06BD
06BE
06BF
06C0
06C1
06C2
0A
00
85
93
C2
91
F0
FF
0A
14
85
93
02
90
00
Address
Data
Internal RAM
develop
The second correct program instruction code
The head address of the development second correct program
10916
10919
1091B
1091C
1091E
D900A0
A005
58
8940
B4
Address
Data
The first program to be corrected (internal ROM)
cbne 0, d1, 1091E
mov 50, d0
mov d0, (a0)
bra 10920
sub d0, d0
The head address of the correction
(the set value of RC0AP)
The address for recover
006B4
006B6
006B7
A000
58
392C190
Address
Data
The first correct program (internal RAM)
mov 0, d0
mov d0, (a0)
bra 1091C
The head address of the correction program
(the set value of RC0V)
The addres for recover
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.
(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'