📄 delay.asm
字号:
; *************************************************************************** ;
; Delay generator program by Ross Fosler ;
; v1.00 02/15/01 ... created ... ;
; ;
; This routine receives data according to the DALI specifications. ;
; ;
; *************************************************************************** ;
; *****************************************************************************
#include p16f628.inc ; Standard include file
#include instruct.inc ; Bring in complex instructions
; *****************************************************************************
; *****************************************************************************
DELAY_CYCLES_T1 CODE
; *****************************************************************************
DelayCyclesT1
movlf b'00000001', T1CON ; Start TIMER1
bcf PIR1, TMR1IF
Lp1 brclr PIR1, TMR1IF, Lp1 ; Wait for overflow
clrf T1CON ; Stop TIMER1
return
GLOBAL DelayCyclesT1
; *****************************************************************************
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -