| Electronic Components Datasheet Search |
|
AN2701 Datasheet(PDF) 13 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
AN2701 Datasheet(HTML) 13 Page - Freescale Semiconductor, Inc |
|
13 / 14 page ![]() 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]; } } |
|
|
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 |
| 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 |