MC68HC711xxxx Motorola, MC68HC711xxxx Datasheet - Page 53

no-image

MC68HC711xxxx

Manufacturer Part Number
MC68HC711xxxx
Description
Microcontrollers
Manufacturer
Motorola
Datasheet
2.4.1 Programming an Individual EPROM Address
M68HC11E Family — Rev. 5
MOTOROLA
NOTE:
Using the on-chip EPROM/OTPROM programming feature requires an external
12-volt nominal power supply (V
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:
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:
Any operating mode can be used.
This example applies to all devices with EPROM/OTPROM except for the
MC68HC711E20.
This example applies only to MC68HC711E20.
1. Programming an individual EPROM address
2. Programming the EPROM with downloaded data
EPROG
EPROG
The ROMON bit set in the CONFIG register
The 12-volt nominal programming voltage present on the XIRQ/V
The IRQ pin must be pulled high.
LDAB
STAB
STAA
LDAB
STAB
JSR
CLR
LDAB
STAB
STAA
LDAB
STAB
JSR
CLR
Operating Modes and On-Chip Memory
#$20
$103B
$0,X
#$21
$103B
DLYEP
$103B
#$20
$1036
$0,X
#$21
$1036
DLYEP
$1036
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
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
PPE
). Normal programming is accomplished using
Operating Modes and On-Chip Memory
EPROM/OTPROM
PPE
Data Sheet
pin
53

Related parts for MC68HC711xxxx