gặp vấn đề khi khởi tạo PWM
#include <16F877.h>
#use delay(clock=20000000)
#use fast_io(b)
#byte portc = 0x07
void main ()
{
setup_timer_2(T2_DIV_BY_1,99,1);
setup_ccp2(CCP_PWM);
while(1)
{
CCP_2 = 55;
}
}
máy hok báo lỗi đoạn code này nhưng sao em mô phỏng trên proteus thì nó hok chạy, mong các anh giúp giùm
|