wakaka
Full Member level 4
- Joined
- Dec 7, 2005
- Messages
- 237
- Helped
- 10
- Reputation
- 20
- Reaction score
- 6
- Trophy points
- 1,298
- Activity points
- 2,931
PIC simulation
I dunno how to simulate my PWM code in Ide simulator v5.22....this is my simple code :
#include <16F877a.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay (clock=20000000)
void main() {
setup_ccp1(CCP_PWM);
setup_timer_2(T2_DIV_BY_1, 127, 1);
while(1)
set_pwm1_duty(520);
}
I've set the oscilloscope input to CCP1, but still dun get any output, can anyone of u help? or suggest other simulators.....with user guide : )
I dunno how to simulate my PWM code in Ide simulator v5.22....this is my simple code :
#include <16F877a.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay (clock=20000000)
void main() {
setup_ccp1(CCP_PWM);
setup_timer_2(T2_DIV_BY_1, 127, 1);
while(1)
set_pwm1_duty(520);
}
I've set the oscilloscope input to CCP1, but still dun get any output, can anyone of u help? or suggest other simulators.....with user guide : )