s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 256

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Development Support
H:X — Contains the address of the next byte immediately after the range read.
C bit — Indicates the Verify result (only applies to the compare option).
DATA array — Replaced with data read from FLASH when the compare option is selected.
Example 19-3
option.
Verify:
LADDR:
DATA:
Data_load:
Verify:
DATA:
256
When the C bit is set, the verify succeeded.
When the C bit is cleared, the verify failed.
equ
equ
equ
ldhx #$0000
lda
coma
sta
aix
cphx #$20
bne
ldhx #$C01F
sthx LADDR
ldhx #$C000
lda
jsr
bcc
equ
equ
bclr 0,DDRA
bclr 0,PTA
ldhx #$C025
sthx LADDR
ldhx #$C010
clra
jsr
shows how to use the compare option.
$1003
$004A
$004C
#$AA
DATA,x
#1
Data_load
#$55
Verify
Error
$1003
$004C
Verify
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
Example 19-4. Send-Out Option
Example 19-3. Compare Option
;EY16A/8A Verify jump address
;Define LADDR address (2 bytes)
;Define DATA start address
;Index offset into DATA array
;Initial data value to store in array
;Fill DATA array, 32 bytes data,
; to compare against programmed FLASH
; data (In this example comparing data
; is $55, $AA, $55, $AA....)
;Load last address of range to
; LADDR
;Load beginning address of range
; to H:X
;Write non-zero value to A to select
; the compare option
;Call Verify routine
;If bit C is cleared, compare failed
; Take a proper action
; A contains a checksum value
;EY16A/8A Verify jump address
;Define DATA start address
;Configure Port A bit 0 as an input
;Initialize data bit to zero PTA0=0
;Load last address of range to
; LADDR
;Load beginning address of range
; to H:X
;A=0 to select send-out option
;Call Verify routine
; A contains a checksum value
Example 19-4
shows how to use the send-out
Freescale Semiconductor

Related parts for s908ey16g2vfar