Freescale Semiconductor DRM079 manual #30, Mtimmod

Page 32

Implementation

lda

#255

 

Quiet:

BUZZER, PTAD

; Clear buzzer

bclr

mov

#30, MTIMMOD

 

mov

#(mMTIMSC_TRSTmMTIMSC_TOIE), MTIMSC; Reset and Start Timer

wait

#(mMTIMSC_TSTPmMTIMSC_TRST), MTIMSC; mask interrupt and clear flag

mov

sta

MAP_ADDR_6(SRS)

; Bump COP

dbnza

Quiet

 

bra

SoundBuzzer

 

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

;Lookup Table ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

org TableStart

dc.b

57,

57,

57,

57,

57,

60,

63,

67,

71,

76,

82,

82,

88,

88,

96,

96

dc.b

105,105,115,115,115,128,128,128,128,144,144,144,144,165,165,165

dc.b

165,193,193,193,193,193,232,232,232,232,232,232,232,232,232,232

dc.b

232,232,232,232,232,232,232,232,232,232,232,232,232,232,232,232

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

;Reset Vector ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

org $3ffc Security:

dc.b $FF

jmp main

Variable Speed DC Fan Control using the MC9RS08KA2, Rev. 0

32

Freescale Semiconductor

Image 32
Contents Variable Speed DC Fan Control using the MC9RS08KA2 Page Variable Speed DC Fan Control using the MC9RS08KA2 Revision HistoryFreescale Semiconductor Table of Contents Freescale Semiconductor Chapter Introduction IntroductionFreescale’s New Generation Ultra Low Cost MCU DC Fan Reference Design TargetsBi-Phase Bldc Motor Bi-Phase Bldc Motor DiagramFreescale Semiconductor Rotor Position Control Chapter Motor ControlCommutation Commutation Waveforms Speed ControlFault Detection Motor StartupFreescale Semiconductor Hardware Resources Block DiagramChapter Implementation Control Loop Firmware Control Loop Temperature Sensor Measurement = V DD⎜ RC⎟Acmpsc #63, MtimmodACMPSCACF, Acmpsc Temperature Conversion Temperature Conversion Table Freescale Semiconductor VR1 Freescale Semiconductor Appendix B Program Listing Rtidisable MtimtclkfallingMtimtclkrising Acmpoutputboth#HIGH613NVICSTRM, Pagesel MAPADDR6NVFTRIM, IcsscMAPADDR6NVICSTRM, Icstrm $3FFA #ICSDIV2, ICSC2Kbies Kbipe#MTIMBUSCLKMTIMDIV256, Mtimclk #255, Mtimmod MAPADDR6SRS Rts Drive coilKBISCKBACK, Kbisc MTIMSCTOF, MtimscKbisc BUZZER, Ptad#6, Mtimmod #24, Mtimmod#30, Mtimmod Page How to Reach Us