vinu Guest
|
ECCP |
Posted: Thu Sep 14, 2006 5:45 am |
|
|
Dear Sir,
Anyone give an example for using ordinary PWM (single output from p1A ) when the microcontroller( PIC16f690) is equiped with ECCP.
following code does not work.
//////////////////////////////////////////////////
long value;
value=500;
set_tris_c(0x00);
setup_timer_2(T2_DIV_BY_16,253,1);
setup_ccp1(CCP_PWM);
set_pwm1_duty(value);
while(1); |
|