![]() |
MPlab?
các bác cho e hỏi tý. E đang dùng MPLAB IDE v8.10. thấy nó bảo là toolsuite với DSpic33 mà sao trên diễn đàn mọi người nói dùng c30 gì đó. vậy e dùng thằng cũ này của e ok chứ? thanks!
|
cảnh báo trong MPLAB
Các bạn cho mình hỏi những cảnh báo này là do sao ?
Debug build of project `D:\pic\vidu1.disposable_mcp' started. Preprocessor symbol `__DEBUG' is defined. Sat Oct 03 14:31:38 2009 ---------------------------------------------------------------------- Clean: Deleting intermediary and output files. Clean: Deleted file "D:\pic\vidu1.mcs". Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F877A "vidu1.asm" /l"vidu1.lst" /e"vidu1.err" /d__DEBUG=1 Warning[205] D:\PIC\VIDU1.ASM 1 : Found directive in column 1. (org) Warning[205] D:\PIC\VIDU1.ASM 2 : Found directive in column 1. (processor) Warning[215] D:\PIC\VIDU1.ASM 2 : Processor superseded by command line. Verify processor symbol. Warning[205] D:\PIC\VIDU1.ASM 3 : Found directive in column 1. (include) Warning[203] D:\PIC\VIDU1.ASM 4 : Found opcode in column 1. (GOTO) Warning[205] D:\PIC\VIDU1.ASM 6 : Found directive in column 1. (banksel) Warning[203] D:\PIC\VIDU1.ASM 7 : Found opcode in column 1. (clrf) Message[302] D:\PIC\VIDU1.ASM 7 : Register in operand not in bank 0. Ensure that bank bits are correct. Warning[205] D:\PIC\VIDU1.ASM 8 : Found directive in column 1. (banksel) Warning[203] D:\PIC\VIDU1.ASM 10 : Found opcode in column 1. (call) Warning[203] D:\PIC\VIDU1.ASM 11 : Found opcode in column 1. (goto) Message[305] D:\PIC\VIDU1.ASM 14 : Using default destination of 1 (file). Warning[203] D:\PIC\VIDU1.ASM 15 : Found opcode in column 1. (goto) Warning[203] D:\PIC\VIDU1.ASM 16 : Found opcode in column 1. (decfsz) Message[305] D:\PIC\VIDU1.ASM 16 : Using default destination of 1 (file). Warning[203] D:\PIC\VIDU1.ASM 17 : Found opcode in column 1. (goto) Warning[203] D:\PIC\VIDU1.ASM 18 : Found opcode in column 1. (return) Warning[205] D:\PIC\VIDU1.ASM 19 : Found directive in column 1. (END) Loaded D:\pic\vidu1.cod. ---------------------------------------------------------------------- Debug build of project `D:\pic\vidu1.disposable_mcp' succeeded. Preprocessor symbol `__DEBUG' is defined. Sat Oct 03 14:31:39 2009 ---------------------------------------------------------------------- BUILD SUCCEEDED |
Trích:
Thân, |
org 0x000
processor P16F877A.INC include <D:\P16F877A.INC> GOTO start start org 0x0005 banksel TRISB clrf TRISB banksel PORTB loop movlw 0xf0 movwf PORTB call delay goto loop delay clrf 0x20 d2 clrf 0x21 d1 decfsz 0x21 goto d1 decfsz 0x20 goto d2 return end Các bạn cho mình hỏi " lệnh banksel TRISB và lệnh banksel PORTB là sao ? Mình không thấy nó trong 35 tập lệnh của PIC |
Trích:
Thân, |
??
Em mới học asm một thời gian ngắn, viết thử chương trình theo như các tutorial rất hay của diễn đàn mình nhưng không hiểu sao khi biên dịch bằng MPLAB thì những dòng config lại báo lỗi Illegal Opcode, mặc dù đó chỉ là những dòng config cơ bản :
Code:
_CONFIG _CP_OFF & _PWRTE_ON & _WDT_OFF & _HS_OSC các pác giúp em với. |
_CONFIG _CP_OFF & _PWRTE_ON & _WDT_OFF & _HS_OSC
Bạn nên kiểm tra lại trước CONFIG là hai dấu gạch dưới__ liền nhau và nó có màu xanh nhạt. |
Theo mình, trong __CONFIG trên, có thể bỏ _CP_OFF vì giá trị của nó là 3FFF (các bit toàn là 1) nên trong biểu thức trên (dùng toán tử &) thì nó không có ý nghĩa?
|
Múi giờ GMT. Hiện tại là 03:19 PM. |
Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam