khangzing
Full Member level 2
- Joined
- Feb 22, 2013
- Messages
- 123
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Activity points
- 2,148
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...