PIC Vietnam

Go Back   PIC Vietnam > Microchip PIC > Các ngôn ngữ lập trình khác (CCS C, HT PIC,...)

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Tìm Kiếm Bài Trong Ngày Ðánh Dấu Ðã Ðọc Vi điều khiển

 
 
Ðiều Chỉnh Xếp Bài
Prev Previous Post   Next Post Next
Old 27-11-2011, 06:46 PM   #18
bbld
Nhập môn đệ tử
 
Tham gia ngày: Jun 2010
Bài gửi: 5
:
Chào mọi người,mọi người cho mình hỏi mình dùng lệnh write_eeprom(add,data) và read_eeprom(add) trong ccs thì lại báo lỗi là function used but not defined...read_eeprom SCR3681
mình không biết bị lỗi gì mong mọi người chỉ giúp
[CODE]void Read_e2prom(void){
fprintf(HOSTPC,">** Read eeprom program**\n\r");
A=read_eeprom(A_eeprom);//trình dịch báo lỗi hàm chưa được định nghĩa
B=read_eeprom(B_eeprom);
C=read_eeprom(C_eeprom);
D=read_eeprom(D_eeprom);
E=read_eeprom(E_eeprom);
F=read_eeprom(F_eeprom);
G=read_eeprom(G_eeprom);
H=read_eeprom(H_eeprom);
fprintf(HOSTPC,">A=%d\n\r",A); delay_ms(10);
fprintf(HOSTPC,">B=%d\n\r",B); delay_ms(10);
fprintf(HOSTPC,">C=%d\n\r",C); delay_ms(10);
fprintf(HOSTPC,">D=%d\n\r",D); delay_ms(10);
fprintf(HOSTPC,">E=%d\n\r",E); delay_ms(10);
fprintf(HOSTPC,">F=%d\n\r",F); delay_ms(10);
fprintf(HOSTPC,">G=%d\n\r",G); delay_ms(10);
fprintf(HOSTPC,">H=%d\n\r",H); delay_ms(10);
}
[CODE]
Cám ơn mọi người
bbld vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn
 

Ðiều Chỉnh
Xếp Bài

Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến


Múi giờ GMT. Hiện tại là 12:51 PM.


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam