1 Star 0 Fork 0

frank.xin/edld-wave

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
timer.lst 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
C51 COMPILER V9.01 TIMER 07/13/2018 14:44:08 PAGE 1
C51 COMPILER V9.01, COMPILATION OF MODULE TIMER
OBJECT MODULE PLACED IN timer.obj
COMPILER INVOKED BY: G:\Keil\k4\C51\BIN\C51.EXE src\timer.c BROWSE DEBUG OBJECTEXTEND PRINT(.\timer.lst) OBJECT(timer.ob
-j)
line level source
1 /**********************************************************************
2 @Author: frank.xin
3 @Date : 7/11/2018
4 File name : timer.c
5 File target: STC89C52 with PCF8591 ADDA Converter
6 Approach : Initializing timer0 and start working
7 http://frank.xin
8 **********************************************************************/
9 #include "timer.h"
10 #include <reg52.h>
11
12 void Init_Timer0(void) {
13 1 TMOD = 0x01; // Set timer mod as 16-bit with non-reloading
14 1 TL0 = (65536-251)%256; // Period of first timing
15 1 TH0 = (65536-251)/256; // Period of first timing
16 1 TF0 = 0; // Clear flow remark
17 1 ET0 = 1; // Enable timer0 interrupt
18 1 EA = 1; // Enable global interrupt
19 1 TR0 = 1; // Start timing
20 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 18 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/MkSwQi/edld-wave.git
git@gitee.com:MkSwQi/edld-wave.git
MkSwQi
edld-wave
edld-wave
master

搜索帮助