Hi
I have lpc2378 board from olimex and want to contorl serv with it…
Does ayone can help me with it??
I have
//CCLK = 60 Mhz; PCLK = 1/4 -> 10ms = 150 000 count
PCLKSEL0_bit.PCLK_PWM1 = 1;
PINSEL3_bit.P1_23 = 1; // enable PWM 1.4
PWM1TCR_bit.CE = 0; // disable counting
PWM1TCR_bit.CR = 1; // reset
PWM1CTCR_bit.CM = 0; // from prescaler
PWM1PCR_bit.PWMSEL2 = 1; // dual edge controlled mode
PWM1PCR_bit.PWMENA2 = 1; // PWM 4 output enable
PWM1MCR = 2; // reset on PWMMR0
PWM1MR0 = 0x000493E0; // 300000
PWM1MR1 = 0x00001D43; //7500
PWM1MR2 = 0x00003A98; //15000
PWM1LER_bit.EM0L =1;
PWM1LER_bit.EM1L =1;
PWM1LER_bit.EM2L =1;
//PWM1EMR = 0X00000280;
PWM1TCR_bit.PWMEN = 1; // enable PWM function
PWM1TCR_bit.CR = 1; // enable reset
PWM1TCR_bit.CE = 1; // enble counting
this code, but it doesnt working…
would be greatfull for your help