⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rke_tianqiu_630.asm

📁 汽车遥控制的源代码.用的单片机是PIC16F72. 大批量生产.
💻 ASM
字号:

	list      p=16F630,R=DEC      ; list directive to define processor
	#include  <p16F630.inc>        ; processor specific variable definitions
	errorlevel -302		;not in bank0


;   __CONFIG   _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _HS_OSC & _MCLRE_OFF
;   __CONFIG   _CP & _CPD & _WDT_ON & _BODEN_OFF & _PWRTE_ON & _HS_OSC & _MCLRE_OFF

;   __CONFIG   _CP & _CPD & _WDT_ON & _BODEN & _PWRTE_ON & _XT_OSC & _MCLRE_OFF
   __CONFIG   _CP & _CPD & _WDT_ON & _BODEN & _PWRTE_ON & _INTRC_OSC_NOCLKOUT & _MCLRE_OFF


; '__CONFIG' directive is used to embed configuration data within .asm file.
; The lables following the directive are located in the respective .inc file.
; See respective data sheet for additional information on configuration word.


#include "register.inc"



;**********************************************************************
	ORG     0x000             
 	clrf    PCLATH            
  	goto    main              


	ORG     0x004             
	movwf   w_temp            
	movf	STATUS,W          
	bcf     STATUS,RP0        
	movwf	status_temp       
	
	clrf	PCLATH	
	call	Interrupt_Begin
	
	movf    status_temp,w     
	movwf	STATUS           
	swapf   w_temp,f	
	swapf   w_temp,w          
	retfie                   

#include "Decript.inc"
#include "Inter.inc"

main
;**********************************************************
;Alex codes are from here.
;**********************************************************
	call	Register_Initiate
	
Main_Loop:
	call	Register_Sure
	
	call	Key_Deal

	goto	Main_Loop
	
;**********************************************************
;Sub-Function are here
;**********************************************************
#include "Ini_Sure.inc"
#include "Eeprom.inc"
#include "Key_Deal.inc"
#include "Sub_Func.inc"

	org 0x2100
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF	
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	DE	EEPROM_PROTEC,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF	
	DE	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF		
	

	END                       

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -