📄 timer.ls
字号:
1 ; C Compiler for ST7 (COSMIC Software)
2 ; Generator V4.4a - 17 Dec 2001
3 ; Optimizer V4.2g - 21 Dec 2001
36 ; 37 void TIMA_Config(void)
36 ; 38 {
37 .text: section .text,new
38 0000 _TIMA_Config:
41 ; 39 TACR2 = 0x08; // Ftimer = Fcpu/8
43 0000 a608 ld a,#8
44 0002 b700 ld _TACR2,a
45 ; 40 TACR1 = 0x40; // enable output compare interrupt
47 0004 a640 ld a,#64
48 0006 b700 ld _TACR1,a
49 ; 41 }
52 0008 81 ret
111 xdef _TIMA_Config
112 switch .bss
113 0000 _Timer_1ms:
114 0000 0000 ds.b 2
115 xdef _Timer_1ms
116 0002 _timer_CL_10ms:
117 0002 00 ds.b 1
118 xdef _timer_CL_10ms
119 0003 _DebounceButton:
120 0003 00 ds.b 1
121 xdef _DebounceButton
122 0004 _PI_Sampling:
123 0004 00 ds.b 1
124 xdef _PI_Sampling
125 0005 _timer_10ms:
126 0005 00 ds.b 1
127 xdef _timer_10ms
128 xref.b _TACR1
129 xref.b _TACR2
149 end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -