Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button 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 AN2701 Datasheet HTML 13Page - Freescale Semiconductor, Inc AN2701 Datasheet HTML 14Page - Freescale Semiconductor, Inc  
Zoom Inzoom in Zoom Outzoom out
 13 / 14 page
background image
APPENDIX
PWM Generation with the HC08 Timer, Rev. 0
Freescale Semiconductor
13
* DESCRIPTION: This ISR describe how to use rolling PWM generation, not to tie
*
all channels from a Timer to the same period.
*
* AUTHOR: A.RAMPON
LOCATION: EKB
LAST EDIT DATE: 15/08/04
*
* UPDATE HISTORY
* REV
AUTHOR
DATE
DESCRIPTION OF CHANGE
* ---
------
---------
---------------------
* 1.0
A.Rampon
11/08/04
Initial Release
******************************************************************************/
#ifndef __AN2701_TIMER_ISR_C
#define __AN2701_TIMER_ISR_C
/* if this H file not included, include */
#include "hc08gz60.h"
/**********************************************************************
Function Name : _PWMTimerChan0ISR
Engineer
: A.Rampon
Date
: 01/04/04
Parameters
: NONE
Returns
: NONE
Notes
: Interrupt service routine for Rolling PWM Generation on Channel 0.
**********************************************************************/
#pragma TRAP_PROC
void _PWMTimerChan0ISR(void)
{
/* if channel is set to generate rising edge */
/* On MC908AZ60A, TBCH0 is PTF4 */
/* If after toggled output is set, */
/* a mark is beginning */
if (PTF4 == 1)
{
/* set up timer compare for mark time */
/* relative to the last transition */
TBCH0 += Mark[0];
}
else
{
/* set up timer compare for space time */
/* relative to the last transition */
TBCH0 += Space[0];
}
}



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