keil_examples/PWM/pwm.c
/******************************************************************************
** Function name:		PWM_Start
**
** Descriptions:		Enable PWM by setting the PCR, PTCR registers
**
** parameters:			channel number
** Returned value:		None
** 
******************************************************************************/
Function name:         PWM_Start
Descriptions:          Enable PWM by setting the PCR, PTCR registers

channel number
Returned value:                None
Function name : PWM_Start Descriptions : Enable PWM by setting the PCR PTCR registers channel number Returned value : None
void PWM_Start( uint32_t channelNum )
{
  if ( channelNum == 1 )
  {
	LPC_PWM1->PCR = PWMENA1 | PWMENA2 | PWMENA3 | PWMENA4 | PWMENA5 | PWMENA6;
	LPC_PWM1->TCR = TCR_CNT_EN | TCR_PWM_EN;	
  }
  return;
}
void PWM_Start ( uint32_t channelNum ) { if ( channelNum == 1 ) { LPC_PWM1 -> PCR = PWMENA1 | PWMENA2 | PWMENA3 | PWMENA4 | PWMENA5 | PWMENA6 ; LPC_PWM1 -> TCR = TCR_CNT_EN | TCR_PWM_EN ; } return ; }
Function name:         PWM_Start
Descriptions:          Enable PWM by setting the PCR, PTCR registers
Function name : PWM_Start Descriptions : Enable PWM by setting the PCR PTCR registers
/* All single edge, all enable */ /* counter enable, PWM enable */