s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 259

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
fProgram can be used to program a range less than 32 bytes.
and $AA at location $E004 and $E005, respectively.
fProgram: equ
CPUSPD:
LADDR:
DATA:
19.4.2.5 fErase
fErase can be called to erase a page (64 bytes) or a whole array of FLASH. When the address of the
FLASH block protect register is passed to fErase, the entire array is erased (MASS). Any other valid
FLASH address selects the page erase. This routine supports an internal operating frequency between
1.0 MHz and 8.0 MHz.
In this routine, both PAGE erase time (t
5.5 ms. The CPUSPD value is the nearest integer of f
the CPUSPD is 12 ($0C). If f
Interrupts are masked (I bit is set) during an erasing operation. When returning from this routine, I bit is
restored to the entry condition, and the COP is serviced in ERARNGE. The first COP is serviced on
(51+3xCPUSPD) bus cycles after this routine is called in the user software.
Entry Condition
H:X — Contains an address within a desired erase page or FLBPR for mass erase.
CPUSPD — Contains the nearest integer value of f
Exit Condition
None
Example 19-7
Freescale Semiconductor
equ
equ
equ
ldhx #$55AA
sthx DATA
mov
ldhx #$E005
sthx LADDR
ldhx #$E004
jsr
shows how to erase an entire array.
$1009
$0049
$004A
$004C
#$18,CPUSPD
fProgram
Example 19-6. Programming a Range Smaller than a Row
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
op
is 4.9152 MHz, the CPUSPD is 20 ($14).
;EY16A/8A fProgram jump address
;Define CPUSPD addrss
;Define LADDR address (2 bytes)
;Define DATA start address
;fop = 6.0MHz in this example
;Load last address to LADDR
;Load beginning address to H:X
;Call fProgram routine
Erase
) and MASS erase time (t
op
op
(in MHz) times 4.
(in MHz) times 4. For example if f
Example 19-6
MErase
) are set between 4 ms and
shows how to program $55
Routines Supported in ROM
op
is 3.1 MHz,
259

Related parts for s908ey16g2vfar