PIC16C63串口通信程序
list p=16c63 ; list directive to define processor
#include ; processor specific variable definitions
__CONFIG _BODEN_OFF&_CP_OFF&_WRT_ENABLE_ON&_PWRTE_ON&_WDT_OFF&_XT_OS
C&_DEBUG_OFF&_CPD_OFF&_LVP_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
.
;***** VARIABLE DEFINITIONS
w_temp EQU 0x20 ; variable used for context saving
status_temp EQU 0x21 ; variable used for context saving
Buffer1 EQU 0x22
Buffer2 EQU 0x23
;**************************************************************……