Can my simulator simulate PWM ?

Status
Not open for further replies.

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 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);
}
}
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…