⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timer.h

📁 指纹识别源代码,用于智能门紧,还有配合MF800卡使用
💻 H
字号:
#ifndef _TIMER_H_
#define _TIMER_H_

//timerl:122.07us~31.128ms
//#define		T38400DELAY	3
#define 	T5MS	40
#define 	T20MS	200

//timerh:31.25ms~7.96875s

#define TREFRESHTIME1	6
#define T100MS	3
#define T200MS	7
#define T500MS	16
#define	TMSGWAITTIME	26
#define TEXITDELAYTIME 3
#define TCONTACTDELAYTIME	3
#define TAUX1DELAYTIME	3
#define TAUX2DELAYTIME	3
#define TTAMPERDELAYTIME	3
#define T1S	31
#define T5S	159
#define TRXD0WAITTIME	12
#define TBEEPTIME	2
#define TIDBACKTIME 190
#define TDURESSBACKTIME 190
#define TPASSBACKTIME	190
#define TFIMRXDTIME	100
#define TFIMCAPTURETIME	100
#define TFIMLIFTFPTIME	100
#define TWAITPCOKTIME	200
#define TWAITFINGERTIME	190




//timeruh:8s~2040s



//timerl:9.765625us~2490.234375us
//#define T50US	4
//timerh:2500us~637.5ms
//timeruh:640ms~163.2s
//#define T10S	15
//TL0 0.5425us, 0~138.35us 

//TH0: 138.89us 0~354167us (35.42ms)
//#define T20MS	8
//#define T30MS  10

//timerl	35.5556ms 0~9066.67ms(9.07s)


//timerh 9.1022s 0~2321.07s
#define DTCENTURY	0
#define DTYEAR	1
#define DTMON	2
#define DTDAY	3
#define DTHUR	4
#define DTMIN	5
#define DTSEC	6
#define DTWEEK	7

#define TWAITFPTIME	10

void init_timer();
void delay50us();
void delay500ms();

void delayTimerl(unsigned char);
void delayTimerh(unsigned char);
void delayTimeruh(unsigned char);

#ifndef _TIMER_C_
extern unsigned char data timerl,timerh;
extern unsigned char data datetime[],seconds;
extern bit secondsflag;
#endif

#endif

⌨️ 快捷键说明

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