mc68hc908gr8b Freescale Semiconductor, Inc, mc68hc908gr8b Datasheet - Page 39

no-image

mc68hc908gr8b

Manufacturer Part Number
mc68hc908gr8b
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
2.6.5 FLASH Program/Read Operation
Programming of the FLASH memory is done on a row basis. A row consists of 32 consecutive bytes
starting from addresses $XX00, $XX20, $XX40, $XX60, $XX80, $XXA0, $XXC0, and $XXE0.
During the programming cycle, make sure that all addresses being written to fit within one of the ranges
specified above. Attempts to program addresses in different row ranges in one programming cycle will
fail. Use this step-by-step procedure to program a row of FLASH memory
representation).
This program sequence is repeated throughout the memory until all data is programmed.
Freescale Semiconductor
10. Clear the PGM bit.
11. Wait for a time, t
12. Clear the HVEN bit.
13. After time, t
1. Set the PGM bit. This configures the memory for program operation and enables the latching of
2. Read the FLASH block protect register.
3. Write any data to any FLASH address within the row address range desired.
4. Wait for a time, t
5. Set the HVEN bit.
6. Wait for a time, t
7. Write data to the FLASH address to be programmed.
8. Wait for a time, t
9. Repeat step 7 and 8 until all the bytes within the row are programmed.
address and data for programming.
Programming and erasing of FLASH locations cannot be performed by
code being executed from FLASH memory. While these operations must be
performed in the order shown, other unrelated operations may occur
between the steps.
Programming and erasing of FLASH locations can not be performed by
code being executed from the same FLASH array.
While these operations must be performed in the order shown, other
unrelated operations may occur between the steps. Care must be taken
within the FLASH array memory space such as the COP control register
(COPCTL) at $FFFF.
It is highly recommended that interrupts be disabled during program/ erase
operations.
RCV
(typical 1 s), the memory can be accessed in read mode again.
NVS
PGS
PROG
NVH
Only bytes which are currently $FF may be programmed.
(1)
(minimum 10 s).
(minimum 5 s).
(minimum 5 s).
(minimum 30 s).
MC68HC908GR8B Data Sheet, Rev. 3.0
NOTE
NOTE
NOTE
NOTE
NOTE
(Figure 2-4
FLASH Memory (FLASH)
is a flowchart
39

Related parts for mc68hc908gr8b