delay.asm
来自「DALI系统主控制器的软件代码」· 汇编 代码 · 共 30 行
ASM
30 行
; *************************************************************************** ;
; 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 + =
减小字号Ctrl + -
显示快捷键?