📄 motor_ce.s
字号:
.module motor_ce.c
.area text(rom, con, rel)
.dbfile C:\DOCUME~1\www\桌面\motor_ce\motor_ce.c
.dbfunc e Devices_Init _Devices_Init fV
.even
_Devices_Init::
.dbline -1
.dbline 14
; /*****************************************************
; Project : 电机测速
; Chip type: ATmega16L
; Clock frequency: 8.000000 MHz
; Date: 2006-6-20
; Author: CYKINGS OF WMFTYS
; Comments: 通过ICP管脚测出电机转速,每测试100个上传
; *****************************************************/
; #include "includes.h"
; /****************************************************/
; //设备初始化,串口:38400,1,8,1
; // 定时器1:ICP 中断使能,CLK:1us
; void Devices_Init(void)
; {
.dbline 15
; CLI();
cli
.dbline 16
; Usart_Init();
xcall _Usart_Init
.dbline 17
; Timer1_Init();
xcall _Timer1_Init
.dbline -2
L1:
.dbline 0 ; func end
ret
.dbend
.dbfunc e main _main fV
.even
_main::
.dbline -1
.dbline 22
;
; }
; /**************************************************/
; void main(void)
; {
.dbline 23
; OSCCAL=0xb2;
ldi R24,178
out 0x31,R24
.dbline 24
; Devices_Init();
xcall _Devices_Init
.dbline 25
; Usart_Str_Tx("Welcome to Motor Volume Test");
ldi R16,<L3
ldi R17,>L3
xcall _Usart_Str_Tx
.dbline 27
;
; SEI();
sei
L4:
.dbline 29
.dbline 30
L5:
.dbline 28
xjmp L4
X0:
.dbline -2
L2:
.dbline 0 ; func end
ret
.dbend
.area data(ram, con, rel)
.dbfile C:\DOCUME~1\www\桌面\motor_ce\motor_ce.c
L3:
.blkb 29
.area idata
.byte 'W,'e,'l,'c,'o,'m,'e,32,'t,'o,32,'M,'o,'t,'o,'r
.byte 32,'V,'o,'l,'u,'m,'e,32,'T,'e,'s,'t,0
.area data(ram, con, rel)
.dbfile C:\DOCUME~1\www\桌面\motor_ce\motor_ce.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -