AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 76

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
***************************************************************************
*****
***************************************************************************
* This routine generates unit millisecond delay depending on the value in *
* "times".
*
*
*
* Initializations required:
*
* Values returned:
*
***************************************************************************
ms_delay:
ms_loop:
ms_delay_End:
76
Delay = [{2 + (1 + 2 + 2 + 2 + 3) * 245 + 4 + 3} * times +4]
- Set a value in "times"
- None
lda
deca
and
and
and
bne
dec
bne
rts
= (2459 * times + 4) / 2.4578MHz
For example if times=1, the delay time is 1ms.
#!245
#$FF
#$FF
#$FF
ms_loop
times
ms_delay
Freescale Semiconductor, Inc.
/ Bus Frequency
For More Information On This Product,
Delay Routine
;2 cyc.
;1 cyc.
;2 cyc.
;2 cyc.
;2 cyc.
;3 cyc.
;4 cyc.
;3 cyc.
;4 cyc.
Go to: www.freescale.com
*****
*
*
*
*
*
*
*
*
MOTOROLA
AN2156

Related parts for AN2156