English
Language : 

M68HC11_03 Datasheet, PDF (53/268 Pages) Motorola, Inc – 8-channel, 8-bit analog-to-digital (A/D) converter
Freescale Semiconductor, Inc.
Operating Modes and On-Chip Memory
EPROM/OTPROM
Using the on-chip EPROM/OTPROM programming feature requires an external
12-volt nominal power supply (VPPE). Normal programming is accomplished using
the EPROM/OTPROM programming register (PPROG).
PPROG is the combined EPROM/OTPROM and EEPROM programming register
on all devices with EPROM/OTPROM except the MC68HC711E20. For the
MC68HC711E20, there is a separate register for EPROM/OTPROM programming
called the EPROG register.
As described in the following subsections, these two methods of programming and
verifying EPROM are possible:
1. Programming an individual EPROM address
2. Programming the EPROM with downloaded data
2.4.1 Programming an Individual EPROM Address
In this method, the MCU programs its own EPROM by controlling the PPROG
register (EPROG in MC68HC711E20). Use these procedures to program the
EPROM through the MCU with:
• The ROMON bit set in the CONFIG register
• The 12-volt nominal programming voltage present on the XIRQ/VPPE pin
• The IRQ pin must be pulled high.
NOTE: Any operating mode can be used.
This example applies to all devices with EPROM/OTPROM except for the
MC68HC711E20.
EPROG
LDAB
STAB
STAA
LDAB
STAB
JSR
CLR
#$20
$103B
$0,X
#$21
$103B
DLYEP
$103B
Set ELAT bit in (EPGM = 0) to enable
EPROM latches.
Store data to EPROM address
Set EPGM bit with ELAT = 1 to enable
EPROM programming voltage
Delay 2–4 ms
Turn off programming voltage and set
to READ mode
This example applies only to MC68HC711E20.
EPROG
LDAB
STAB
STAA
LDAB
STAB
JSR
CLR
#$20
$1036
$0,X
#$21
$1036
DLYEP
$1036
Set ELAT bit (EPGM = 0) to enable
EPROM latches.
Store data to EPROM address
Set EPGM bit with ELAT = 1 to enable
EPROM programming voltage
Delay 2–4 ms
Turn off programming voltage and set
to READ mode
M68HC11E Family — Rev. 5
MOTOROLA
Operating Modes and On-Chip Memory
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
53