pic查大表程序
pic查大表程序
list p=16c77 ;list directive to define processor
#include
;processor specific variable definitions
__CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _XT_OSC
cblock 0x20
w_temp ;variable used for context saving
status_temp ;variable used for context saving
index:2 ;index for larger table look-up
endc
;**********************************************************************
ORG 0x000 ; processor reset vector
clrf PCLATH ; ensure page bits are claared
goto main ; go to beginning of program
ORG 0x004 ; interrupt vector location
movwf w_temp ; s