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

📄 timer0.h

📁 AVR Mega88 + nRF24L01 wireless 2.4GHz >> Driver nRF24L01 >> AVRSTUDIO project
💻 H
字号:
#ifndef _TIMER0_H_#define _TIMER0_H_

static unsigned int milseconds;      
//static unsigned int int_count;  

#define INTS_PER_milSECOND  22  

//   16000000/1024 = 15625
//   Fosc / second  =  1/15625 = 64us
//   caculate 1ms reload (1/1000)/64us = 0.001/(85*10-6) = 15.6 ~ 16
//   TCNT0 = 16 for timer0 count 1ms                          

extern volatile unsigned int CountMilliseconds;
extern void Timer0_Init(void);

#endif

⌨️ 快捷键说明

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