timer_isr.asm

来自「胎压监测系统接收端控制器motorolar开发源代码」· 汇编 代码 · 共 23 行

ASM
23
字号
* Timer_ISR.asm

**************************************************************
* Timer overflow interrupt service routine.                  *
* The timer will overflow if there is a long (1ms) delay     *
* between received bits on the SPI.  This is here because    *
* sometimes the Romeo will quit sending data in the middle   *
* of the data frame...                                       *
**************************************************************
Timer_ISR:      LDA     TSC
                MOV     #%01110000,TSC                  ;Get the timer ready, stop the counter.
                PULA                                    ;Trash the CCR value stored in the stack
                PULA                                    ;Trash the AR value stored in the stack
                PULA                                    ;Trash the XR value stored in the stack
                PULA                                    ;Trash the PCH value stored in the stack
                PULA                                    ;Trash the PCL value stored in the stack
                CLI                                     ;Clear the interrupt bit (enable int)
                BSET    2,TBCR                          ;Unmask TBM interrupts.

                JMP     GetSpiData

                ;There is no RTI instruction here; its operation is not needed.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?