AN2475 Freescale Semiconductor / Motorola, AN2475 Datasheet - Page 12

no-image

AN2475

Manufacturer Part Number
AN2475
Description
Generating a PWM Signal Modulated by an Analog Input Using the MC68HC908QY4 Microcontroller
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2475/D
RegRes:
Error:
;*******************************************************************************************
;* Interruptions
;*******************************************************************************************
Dummy:
;*******************************************************************************************
;* Start of Vectors Definitions
;*******************************************************************************************
12
stx
lda
Lsra
lsra
lsra
lsra
sta
lda
bra
bclr
bset
bra
rti
org
fdb
org
fdb
org
fdb
org
fdb
org
fdb
org
fdb
org
fdb
org
fdb
TCH0L
TMODL
PWMLim
#$FF
WaitReg
PTB0,PTB
PTB1,PTB
Error
$FFDE
$FFE0
$FFF2
$FFF4
$FFF6
$FFFA
$FFFC
$FFFE
Dummy
Dummy
Dummy
Dummy
Dummy
Dummy
Dummy
Init
Generating a PWM Signal Modulated by an Analog Input
Freescale Semiconductor, Inc.
For More Information On This Product,
Using the MC68HC908QY4 Microcontroller
Go to: www.freescale.com
;Shift 4 times tmodl register value to the right
;in order to adjusted PWM resolution limit (or D)
;to ~6%
;Set ptb1 and clear ptb0
;if MCU is not regulating
;ADC conversion complete vector
;Keyboard vector
;TIM overflow vector
;TIM Channel 1 vector
;TIM Channel 0 vector
;IRQ vector
;SWI vector
;Reset vector
MOTOROLA

Related parts for AN2475