s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 258

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Development Support
Interrupts are masked (I bit is set) during a programming operation. When returning from this routine, I bit
is restored to the entry condition. If the COP is enabled (COPD = 0), the COP is serviced in this routine.
The first COP is serviced at 42 bus cycles after this routine is called in the user software. When the COP
is disabled (COPD = 1), this row programming method is the fastest way to program the FLASH.
Entry Condition
H:X — Contains the beginning address in a range.
LADDR — Contains the last address in a range.
CPUSPD — Contains the nearest integer value of f
DATA array — Contains the data values to be programmed into FLASH.
Exit Condition
H:X — Contains the address of the next byte after the range just programmed.
Example 19-5
fProgram: equ
CPUSPD:
LADDR:
DATA:
Data_load:
258
equ
equ
equ
ldhx #$0000
lda
coma
sta
aix
cphx #$20
bne
mov
ldhx #$C01F
sthx LADDR
ldhx #$C000
jsr
shows how to program one full 32-byte row:
$1009
$0049
$004A
$004C
#$AA
DATA,x
#1
Data_load
#$0A,CPUSPD
fProgram
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
Example 19-5. Programming a Row
;EY16A/8A fProgram jump address
;Define CPUSPD addrss
;Define LADDR address (2 bytes)
;Define DATA start address
;Index offset into DATA array
;Initial data value (inverted)
;Alternate between $55 and $AA
;Fill DATA array, 32 bytes data,
; values to program into FLASH
; (ie. 55, AA, 55, AA....)
;fop = 2.4576MHz in this example
;Load last address of the row
; to LADDR
;Load beginning address of the
; row to H:X
;Call fProgram routine
op
(in MHz) times 4.
Freescale Semiconductor

Related parts for s908ey16g2vfar