/**************************************************************************** * $Id:: timer.c 5823 2010-12-07 19:01:00Z usb00423 $ * Project: NXP LPC17xx Timer for PWM example * * Description: * This file contains timer code example which include timer * initialization, timer interrupt handler, and APIs for timer access. * **************************************************************************** * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * products. This software is supplied "AS IS" without any warranties. * NXP Semiconductors assumes no responsibility or liability for the * use of the software, conveys no license or title under any patent, * copyright, or mask work right to the product. NXP Semiconductors * reserves the right to make changes in the software without * notification. NXP Semiconductors also make no representation or * warranty that such application will be suitable for the specified * use without further testing or modification. ****************************************************************************/ #include "lpc17xx.h" #include "lpc_types.h" #include "timer.h" volatile volatile volatile volatile volatile volatile volatile volatile
/* reset all interrrupts */ /* stop timer on match */ /* start timer */
/* wait until delay time has elapsed */ while (LPC_TIM0->TCR & 0x01); } else if ( timer_num { LPC_TIM1->TCR LPC_TIM1->PR LPC_TIM0->MR0 time LPC_TIM1->IR LPC_TIM1->MCR LPC_TIM1->TCR
/* reset all interrrupts */ /* stop timer on match */ /* start timer */
/* wait until delay time has elapsed */ while (LPC_TIM1->TCR & 0x01); } else if ( timer_num { LPC_TIM2->TCR LPC_TIM2->PR LPC_TIM0->MR0 time LPC_TIM2->IR LPC_TIM2->MCR LPC_TIM2->TCR
/* reset all interrrupts */ /* stop timer on match */ /* start timer */
/* wait until delay time has elapsed */ while (LPC_TIM2->TCR & 0x01); } else if ( timer_num { LPC_TIM3->TCR LPC_TIM3->PR LPC_TIM0->MR0 time LPC_TIM3->IR LPC_TIM3->MCR LPC_TIM3->TCR
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.