AN2475 Freescale Semiconductor / Motorola, AN2475 Datasheet - Page 23

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
TimVal: equ
;
;
;
;
;
;
;
;
;
RegHLim: equ
RegLLim: equ
RegVal: equ
Permin: equ
PWMLim: rmb
PWMLow: rmb
Conclusion
MOTOROLA
%00000100
%10000101
%01111011
%10000000
%00010001
1
1
||||||||
|||||||+-PS0
||||||+--PS1
|||||+---PS2
||||+----0
|||+-----TRST
||+------TSTOP
|+-------TOIE
+--------TOF
In this application a PWM modulator is implemented using the
MC68HC908QY4 microcontroller. Typical PWM applications include motor
speed control, battery chargers, and switching voltage regulators, all of them
easily implemented using the 68HC08-based MCU’s. This low-cost, low pin
count family of microcontrollers brings to designers flexibility in the system
development process helping to reduce overall system costs and speed up
time-to-market. In addition, a variety of features and benefits make
MC68HC908QYx microcontrollers versatile for a wide range of systems like
home applications, computer peripherals, and automotive electronics.
Generating a PWM Signal Modulated by an Analog Input
Freescale Semiconductor, Inc.
For More Information On This Product,
Using the MC68HC908QY4 Microcontroller
;Timer Register configuration value
TIM Status and Control Register
;Upper Limit Period value set
;by user
;Lower Limit Period value set
;by user
;Target Reg. Value set by user
;Minimum Period Value set by user
;PWM Duty Cycle resolution limit (or D)
;PWM Duty Cycle
- 0 Prescaler select bit
- 0 Prescaler select bit
- 1 Tim clock source int. bus / 16
- 0
- 0 TIM reset bit
- 0 TIM counter active
- 0 disable TIM overflow interrupts
- 0 TIM overflow flag bit
Go to: www.freescale.com
Conclusion
AN2475/D
23

Related parts for AN2475