mikro c 2
ใบรายงานผลการปฏิบัติงาน
Code
Code
void main()
{
TRISB.F0 = 0; //Makes PORTB0 or RB0 Output Pin
while(1) //Infinite Loop
{
PORTB.F0 = 1; //LED ON
Delay_ms(1000); //1 Second Delay
PORTB.F0 = 0; //LED OFF
Delay_ms(1000); //1 Second Delay
}
}
ภาพจำลองการทำงานด้วยโปรแกรม Proteus
vอ้างอิง
https://electrosome.com/led-blinking-pic/
ความคิดเห็น
แสดงความคิดเห็น