CHIPSN8F27E65
//{{SONIX_CODE_OPTION
.Code_OptionWDT_CLKFlosc/4
.Code_OptionReset_PinP04
.Code_OptionLVDLVD_Max; 3.3V Reset
.Code_OptionWatch_DogDisable;封闭看门狗
.Code_OptionLow_FcpuFlosc/1
.Code_OptionHigh_ClkIHRC_16M; Internal 16M RC Oscillator
.Code_OptionHigh_FcpuFhosc/1
.Code_OptionSecurityEnable
.Code_OptionNoise_FilterEnable
code down:http://www.51hei.com/f/shssd.rar
//}}SONIX_CODE_OPTION
LEDEQUP0.2;LED连接口
LED0EQUP0M.2;I/o口输入输出状况操控
ORG0
JMPA1
ORG15
A1:B0BSETLED0;设置P0.2为输出状况
B0BCLRLED;输出低电平点亮LED
CALLM001;延时
B0BSETLED;输出高电平平息LED
CALLM001;延时
JMPA1;循环履行程序
;******************************************
;延时子程序
;******************************************
M001:MOVA,#20
MOV51H,A
M002:MOVA,#248
MOV52H,A
M003:MOVA,#250
MOV53H,A
M004:DECMS53H
JMPM004
DECMS52H
JMPM003
DECMS51H
JMPM002
RET
;*****************************************
;程序完毕
;*****************************************
ENDP