English
Language : 

MC68HC705P6A Datasheet, PDF (94/130 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Mask Option Register (MOR)
11.4 MOR Programming
The contents of the MOR should be programmed in bootloader mode
using the hardware shown in Figure 10-2. In order to allow
programming, all the implemented bits in the MOR are essentially read-
write bits in bootloader mode as shown in Figure 11-1.
The programming of the MOR is the same as user EPROM.
1. Set the ELAT bit in the EPROG register.
2. Write the desired data to the desired MOR address.
3. Set the EPGM bit in the EPROG.
4. Wait for the programming time (tEPGM).
5. Clear the ELAT and EPGM bits in the EPROG.
6. Remove the programming voltage from the IRQ/VPP pin.
A sample routine to program a byte of EPROM is shown in Table 11-2.
Once the MOR bits have been programmed, the options are not loaded
into the MOR registers until the part is reset.
Table 11-2. MOR Programming Routine
001C
00FF
0023
1EFF
1F00
0000
EPROG EQU $1C
DATA2 EQU $FF
DATA1 EQU #23
MOR2 EQU $1EFF
MOR1 EQU $1F00
EPGM EQU $00
PROGRAMMING REG
SAMPLE MOR VALUES
MOPR ADDRESSES
EPGM BIT IN EPROG REG
00E0
ORG $E0
00E0
00E2
00E4
00E6
00E9
00EB
00ED
00EF
A6 04
B7 1C
A6 FF
C7 1E FF
12 1C
AD 03
3F 1C
81
LDA #$04
STA EPROG
LDA #DATA2
STA MOR2
BSET EPGM,EPROG
BSR DELAY
CLR EPROG
RTS
SET ELAT BIT
IN EPGM REG AT $1C
DATA BYTE
WRITE IT TO MOR LOC
TURN ON PGM VOLTAGE
WAIT 4 ms MINIMUM
CLR EPGM REGISTER
Advance Information
94
Mask Option Register (MOR)
MC68HC705P6A — Rev. 2.0
MOTOROLA