AN2687 Freescale Semiconductor / Motorola, AN2687 Datasheet - Page 42

no-image

AN2687

Manufacturer Part Number
AN2687
Description
BLDC Fan Control using the MC68HC908QT2
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2687/D
Delay_Yms_X
Delay_Yms_A
* --------------------------------------------------------------------------- *
* Subroutine <Xms Delay>
* ICG Clock = 12.8MHz, Bus Clock = 12.8MHz/4 = 3.2MHz, 1 Cycle = 0.3125us
* (((2560/2)+2+3))*1+2+3))*0.3125us = 0.4ms
* In
* Out
* Call
* --------------------------------------------------------------------------- *
Delay_Xms:
Delay_Xms_X
Delay_Xms_A
* --------------------------------------------------------------------------- *
* Subroutine <100ms Delay>
* ICG Clock = 12.8MHz, Bus Clock = 12.8MHz/4 = 3.2MHz, 1 Cycle = 0.3125us
* ((2560+2+3)*128+2+3)*0.3125us = 102.6ms
* In
* Out
* Call
* --------------------------------------------------------------------------- *
Delay_100ms:
Delay_100ms_X
42
LDA #$80
sta $FFFF
nop
nop
nop
dbnza Delay_Yms_A
dbnzx Delay_Yms_X
rts
LDX #$01
LDA #$80
sta $FFFF
nop
nop
nop
dbnza Delay_Xms_A
dbnzx Delay_Xms_X
rts
LDX #$7C
LDA #$FF
:
:
:
:
:
:
<nil>
<nil>
<nil>
<nil>
<nil>
<nil>
; [3]
; [3]
Freescale Semiconductor, Inc.
BLDC Fan Control using the MC68HC908QT2
For More Information On This Product,
; [2]
; [4] clear COP
; [1]
; [1]
; [1]
; [3] ;10*256=256
; [3]
; [2]
; [2]
; [4] clear COP
; [1]
; [1]
; [1]
; [3] ;10*256=256
; [3]
; [2]
; 20ms:
; 100ms: X=#$7C or (#128)
; 200ms: X=#$FA or (#250)
; [2]
Go to: www.freescale.com
X=#$19 or (#25)
*
*
*
*
*
*
*
*
*
*
*
*
MOTOROLA

Related parts for AN2687