Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2701 Datasheet(PDF) 2 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) 2 Page - Freescale Semiconductor, Inc

  AN2701 Datasheet HTML 1Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 2Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 3Page - Freescale Semiconductor, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 14 page
background image
PWM Generation with the HC08 Timer, Rev. 0
2
Freescale Semiconductor
Introduction
Principle of PWM Generation Using Timers
The generation of a PWM signal using the dedicated HC08 PWM module is based on hardware
comparisons between register values and a free-running hardware counter. The HC08 TIM offers similar
hardware comparison in the form of output compare circuitry. The contents of channel registers are
continuously compared to the master free-running timer. When a match occurs, a hardware output event
can be configured to take place, and/or an interrupt can then call a service routine. The timer module has
from two to six compare registers and can thus be configured to toggle the port pin on each of two to six
comparison values, with no core overhead.
Each PWM signal requires a dedicated timer channel with output compare capability. Any channel with
this function along with the associated interrupt vector may be used to generate a PWM signal, using the
methods described.
Functional Description
Features of the TIM can include
•
Two to six input capture/output compare channels
–
Rising-edge, falling-edge or any-edge input capture trigger
–
Set, clear or toggle output compare action
•
Buffered and unbuffered pulse width modulation (PWM) signal generation
•
Programmable TIM clock input
–
Seven frequency internal bus clock prescaler selection
–
External TIM clock input (4 MHz maximum frequency)
•
Free-running or modulo up-count operation
•
Toggle any channel pin on overflow
•
TIM counter Stop and Reset bits
Block Diagram
Figure 1 shows the structure of the TIM, taken from an MC68HC908GZ60 (two channels represented out
of the six available). The central component of the TIM is the 16-bit counter, which can operate as a free-
running counter or a modulo up-counter. The TIM counter provides the timing reference for the input
capture and output compare functions. The TIM counter modulo registers, TMODH:TMODL, control the
modulo value of the timer counter. Software can read the TIM counter value at any time without affecting
the counting sequence.
In the case of the HC908GZ60, the six timer channels are programmable independently as input capture
or output compare channels. In other devices, the number of channels may vary from two to six; however,
the rest of the module remains identical.



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