View Single Post
Old 09-08-2012, 11:07 PM   #17
tuonghiendk7.1
Đệ tử 1 túi
 
Tham gia ngày: Aug 2011
Bài gửi: 13
:
Send a message via Yahoo to tuonghiendk7.1
Mình sửa lại chút nhé

[QUOTE=congtri91;37514]em lập trình tắt bật led bằng ccsc nhưng khi mô phỏng nó lại ko chạy, cho e hỏi code sai chỗ nào ạ

#include <16F877A.h>
#device *=16 ADC=8
#FUSES NOWDT, HS, NOPUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT
#use delay(clock=20000000)

main()
{
set_tris_b(0x00);
output_low (portc);
while(true)
{
output_low (portb);
delay_ms(200);
output_high (portb);
delay_ms(200);
}
}
tuonghiendk7.1 vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn