#include <16f877A.h>
#fuses hs,nowdt,put,noprotect
#use delay(crystal=20MHz,clock=20MHz)
void main()
{
setup_timer_2(T2_DIV_BY_1,55,1);
setup_ccp1(CCP_PWM);
set_pwm1_duty((int16)110);
while (TRUE)
{
}
}
Merhaba, yukarıdaki kod ile 16f877A'nın RC2 pininden 90khz'lik bir...