Tôi gửi kèm file viết bằng MPLAP vào đây nhờ bác falleaf giải quyết giúp. Sau khi dịch file này sang đuôi hex thì nó thông báo như sau:
Clean: Deleting intermediary and output files.
Clean Warning: File "C:\PICTut\Tutorial12\f628Atempo.o" doesn't exist.
Clean Warning: File "C:\PICTut\Tutorial12\f628Atempo.ERR" doesn't exist.
Clean: Deleted file "f628Atempo.lst".
Clean: Deleted file "Tutorial12.cof".
Clean: Deleted file "Tutorial12.cod".
Clean: Deleted file "Tutorial12.hex".
Clean: Deleted file "Tutorial12.lst".
Clean: Deleted file "C:\ViXyLy\PIC\Tutorials\Tutorial12\Tutorial12.mcs ".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "f628Atempo.asm" /l"f628Atempo.lst" /e"f628Atempo.err" /o"f628Atempo.o"
Message[302] C:\VIXYLY\PIC\TUTORIALS\TUTORIAL12\F628ATEMPO.ASM 24 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\VIXYLY\PIC\TUTORIALS\TUTORIAL12\F628ATEMPO.ASM 25 : Register in operand not in bank 0. Ensure that bank bits are correct.Executing: "C:\Program Files\Microchip\MPASM Suite\MPLink.exe" "16f628a.lkr" "C:\ViXyLy\PIC\Tutorials\Tutorial12\f628Atempo .o" /o"Tutorial12.cof"
MPLINK 3.90.01, Linker
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0
MP2COD 3.90.01, COFF to COD File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0
MP2HEX 3.90.01, COFF to HEX File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors : 0
Loaded C:\ViXyLy\PIC\Tutorials\Tutorial12\Tutorial12.cof
BUILD SUCCEEDED: Mon Jan 01 00:51:31 2001
Nhưng các bác để ý thấy rằng tuy là đã Build Succeeded nhưng vẫn có 2 Message (phần gạch chân), như vậy tức là chương trình vẫn còn một vấn đề gì đó?
Tôi vẫn cứ thử dùng ICPROG nạp chương trình vào PIC6F628A, cuối cùng của việc nạp hiện ra thông báo: Verify failed at address 0000h. Sau đó tui cắm vào mạch LED của tui nhưng chẳng thấy LED nào sáng cả. Mong các bác giúp tôi giải quyết vấn đề này?
Thank các bác rất nhiều!
|