View Single Post
Old 31-08-2010, 04:18 AM   #11
orecky
Đệ tử 1 túi
 
Tham gia ngày: Aug 2009
Bài gửi: 11
:
Trích:
Nguyên văn bởi congtri91 View Post
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>
#include <def_877a.h>
#device icd=true
#device *=16 adc=8
#fuses nowdt, hs, noput, noprotect, nodebug, nobrownout, nolvp, nocpd, nowrt
#use delay(clock=20000000)

main()
{
set_tris_b(0);
output_low (portc);
while(true)
{
output_low (portb);
delay_ms(200);
output_high (portb);
delay_ms(200);
}
cÓ vẺ thiÊuc ngoẮc Ở vÒng void main thÌ phẢi bẠn ah

thay đổi nội dung bởi: orecky, 31-08-2010 lúc 04:18 AM. Lý do: SAI CHÍNH TẢ
orecky vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn