khangzing
Full Member level 2
i know that,i was told that it need to be configure...mine is MPLAB IDE v8.90, just need to configure inside the configuration bits right?
void main()
{
init( );
while(1){
CCPR1L = 0; //Set duty cycle for approx 0%
__delay_ms(380);
CCPR1L = 65; //Set duty cycle for approx 50%
__delay_ms(120);
}
}
this should be ok right to generate square wave?tomorrow only i going to test as the lab occupied by some other peoples...
void main()
{
init( );
while(1){
CCPR1L = 0; //Set duty cycle for approx 0%
__delay_ms(380);
CCPR1L = 65; //Set duty cycle for approx 50%
__delay_ms(120);
}
}
this should be ok right to generate square wave?tomorrow only i going to test as the lab occupied by some other peoples...