tamer1221
Newbie level 5
pic 40khz
void main()
{
PORTC = 0;
TRISC = 0;
PR2 = 0b00011000 ;
T2CON = 0b00000100 ;
CCPR1L = 0b00001100 ;
CCP1CON = 0b00011100 ;
}
the problem is Pwm port is 5v all the time, is there another way to obtain 40khz without pwm
void main()
{
PORTC = 0;
TRISC = 0;
PR2 = 0b00011000 ;
T2CON = 0b00000100 ;
CCPR1L = 0b00001100 ;
CCP1CON = 0b00011100 ;
}
the problem is Pwm port is 5v all the time, is there another way to obtain 40khz without pwm