wakaka
Full Member level 4
![Full Member level 4](/styles/images/ranks/flevel1.gif)
PIC IDE simulator
Can this simulator simulated PWM? i just cant make it with 877A.
#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);
}
}
Can this simulator simulated PWM? i just cant make it with 877A.
#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);
}
}