mc68hc908lv8 Freescale Semiconductor, Inc, mc68hc908lv8 Datasheet - Page 201

no-image

mc68hc908lv8

Manufacturer Part Number
mc68hc908lv8
Description
M68hc08 Microcontrollers 8-bit Microcontroller With Integrated Lcd Driver
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908lv8CPBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
rProgram can be used to program a range less than 32 bytes.
and $AA at location $E004 and $E005, respectively. In this example, a RAM block start address is $115.
rProgram:
RAMblock:
CPUSPD:
DATASIZE:
ADDR:
DATA:
rProgram can also program a range beyond a page.
to FLASH. In this example, the RAM block start address is $0100. The data is programmed to locations
$C0F0–$C135.
rProgram:
RAMblock:
CPUSPD:
DATASIZE:
ADDR:
DATA:
Data_load:
Freescale Semiconductor
equ
equ
equ
equ
equ
equ
ldhx
sthx
lda
sta
lda
sta
ldhx
sthx
ldhx
jsr
equ
equ
equ
equ
equ
equ
ldhx
lda
coma
sta
aix
cphx
bne
Example 16-7. Programming a Range Smaller than a Row
Example 16-8. Programming a Range Bigger than a Page
$FF8B
$0115
RAMblock
RAMblock+1
RAMblock+2
RAMblock+4
#$55AA
DATA
#$18
CPUSPD
#2
DATASIZE
#$E005
ADDR
#RAMblock
rProgram
$FF8B
$0100
RAMblock
RAMblock+1
RAMblock+2
RAMblock+4
#$0000
#$AA
DATA,x
#1
#$46
Data_load
MC68HC908LV8 Data Sheet, Rev. 2
;rProgram jump address
;In this example, RAM block start address $0115
;CPUSPD location
;DATASIZE location
;ADDR location (2 bytes)
;DATA array start address
;Load data to DATA array
;fop = 6.0MHz in this example
;Load 2 bytes to DATASIZE
;Load last address to ADDR
;Load RAM block start address to H:X
;Call rProgram routine
;rProgram jump address
;In this example, RAM block start address $0100
;CPUSPD location
;DATASIZE location
;ADDR location (2 bytes)
;DATA array start address
;Index offset into DATA array
;Initial data value (inverted)
;Alternate between $55 and $AA. Fill DATA array,
;70 bytes data, values to program into FLASH
;(ie. 55, AA, 55, AA....)
Example 16-8
Example 16-7
shows how to program 70-byte data
shows how to program $55
Routines Supported in ROM
201

Related parts for mc68hc908lv8