Electronic Components Datasheet Search
  English  ▼

X  

AN2701 Datasheet(PDF) 8 Page - Freescale Semiconductor, Inc

Part # AN2701
Description  PWM Generation with the HC08 Timer
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN2701 Datasheet(HTML) 8 Page - Freescale Semiconductor, Inc

Back Button AN2701 Datasheet HTML 4Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 5Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 6Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 7Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 8Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 9Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 10Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 11Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 12Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 14 page
background image
Channel 1: PWM signal generated
Channel 2: Events
PWM Generation with the HC08 Timer, Rev. 0
8
Freescale Semiconductor
PWM Generation
Figure 4. Set on Output Compare
The major advantage of this method is that it works separately from the CPU activity and the rest of the
software.
However, it also means the timer used for the PWM generation has its modulo counter (i.e. signal period)
fixed for all its other channels. Therefore, generation of multiple signals with different periods will be
impossible on the same module; only different duty cycles will be possible.
Flexible PWM Rolling Generation
Principle
The solution described above is easy to set up and use, but could lack flexibility.
Using the following method will increase the possibility that the timer can generate any PWM signal on
any channel. However, it will also increase the complexity and size of the code.
The principle used here is to not rely on the modulo counter to determine the period, as only one is
available for all channels of the same timer.
References to the master timer modulo register, TxMODH:TxMODL, are avoided by simply adding
consecutive mark (logic 1) and space (logic 0) values to the timer compare register on successive ISR
function calls, as shown in the following equations. Timer roll-over is seamless when using unsigned
integer addition. Using the previous compare value as a reference for generating the next compare value
allows precise output timing, even though the ISR latency may vary.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com