代码搜索结果
找到约 10,000 项符合
Timer 的代码
timer.c
//timer.c
#include "timer.h"
//oscillator frequency
//IMPORTANT - if you use oscillator with different frequency,
//please change this value, bec鄒se timer not work correctly
#define OSCILLATOR_
timer.h
//timer.h
#include
#define VIC_TIMER0_bit (1
timer.h
#define TMR_TOIE 0x40 /* 6808 timer overflow interrupt enable */
#define TMR_TSTOP 0x20 /* 6808 timer stop */
#define TMR_TRST 0x10 /* 6808 timer reset */
#define TMR_PRESCALER 0x00 /* TIM cloc
timer.c
#include
#include "timer.h"
#include "includes.h"
/*****************************************************************************************************
timer.lst
8051 Assembler Version 1.00 04/15/107 21:49:41 Page 1
G:\sheji2\1\timer.asm
1 0000
2 0000 ;the definition of the port
3 0000
timer.hex
:020000000130CD
:02000B00015999
:10003000516551C775948A513F512C51D0759487A1
:10004000513F51D9759484513F30B00530B206010B
:1000500032314C013231080132758AF0758CD8D2B8
:10006000B130B113B8630D7800BA3B
timer.asm
;the definition of the port
SCLK BIT P1.0 ;DS1302的SCLK串行时钟与51的P1.0连接
IO BIT P1.1 ;IO数据输入输出与P1.1连接
RST BIT P1.2 ;RST复位与P1.2连接
RS