i need to generate a 38khz pwm clock signal using ccp module for pic16f873A.i am using microbasic compiler for pic but i can not succeeded to do it .i want that continuously 38khz signal generated by RC2 pin by hardware timer of pic and i dnt care that in programming
i try it with this code
TRISC.2 = 0 ' CCP1 (PortC.2 = Output)
Pwm_Init(38000) ' Set the PWM frequency to 38000 hz
Pwm_Change_Duty(63) ' 25% duty cycle
Pwm_Start ' Start outputing the pulse stream
but its not working
anyone can help me
i try it with this code
TRISC.2 = 0 ' CCP1 (PortC.2 = Output)
Pwm_Init(38000) ' Set the PWM frequency to 38000 hz
Pwm_Change_Duty(63) ' 25% duty cycle
Pwm_Start ' Start outputing the pulse stream
but its not working
anyone can help me