Ðề tài: Errors
View Single Post
Old 16-07-2007, 11:22 PM   #3
Dolphin
Đệ tử 2 túi
 
Tham gia ngày: Mar 2007
Bài gửi: 43
:
Mình post 2 đoạn code có lỗi đây:
+ Cái này cho lỗi thứ 2:
Code:
             PROCESSOR      PIC16f877A        
	include <p16f877A.inc>        
	
	
	__CONFIG   _CP_OFF & _CPD_OFF & _BODEN_OFF &  _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF 

;---------------------------------------------------------------------------
		count1	equ	0x20
		counta	equ	0x21
		countb	equ	0x22

;---------------------------------------------------------------------------

	ORG		0
	GOTO	start
;---------------------------------------------------------------------------
start
;-------------------------------------------------------------------------
+ Đây là lỗi thứ 1:
Code:
	PROCESSOR      PIC16f877A           ; list directive to define processor
	include <p16f877A.inc>        ; processor specific variable definitions
	
	
__CONFIG  _CP_OFF & _CPD_OFF & _BODEN_OFF &  _WDT_OFF & _PWRTE_ON & _XT_OSC &_WRT_OFF &_LVP_OFF 

;---------------------------------------------------------------------------

	ORG		0X000
	GOTO	start

;--------------------------------------------------------------------------
	count2	res	1
	count1	res	1
	counta	res	1
	countb	res	1
	
;--------------------------------------------------------------------------
start

thay đổi nội dung bởi: namqn, 17-07-2007 lúc 01:42 AM.
Dolphin vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn