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

📄 timeoutl.h

📁 CODE for embedded C ,hand coding version
💻 H
字号:
/*------------------------------------------------------------------*-
 TimeoutL.H(v1.00)
  ---------------------------------------------------------------------
  Simple software (loop ) timeout delays for the 8051 family
  *THESE VALUES ARE NOT PRECISE - YOU MUST ADAPT TO YOUR SYSTEM *
  -*------------------------------------------------------------------*/

  #ifndef _TIMEOUTL_H
  #define _TIMEOUTL_H

  //------------Public constants --------------------------------------
  //Vary this value to change the loop duration
  //THESE ARE APPROX VALUES FOR VARIOUS TIMEOUT DELAYS
  //ON 8051,12 MHZ ,12 OSC/CYCLE
  // ***MUST BE FINE TUNED FOR YOUR APPLICATION ***
  // *** Timings vary with complier optimisation settings ***
  // tWord
  #define LOOP_TIMEOUT_INIT_001ms 65435U
  #define LOOP_TIMEOUT_INIT_010ms 64535U
  #define LOOP_TIMEOUT_INIT_500ms 14535U

  //tLong
  #define LOOP_TIMEOUT_INIT_10000ms 4294795000UL

  #endif

  /*-----------------------------------------------------------------*-
  --------END OF FILE -------------------------------------------------
  -*-----------------------------------------------------------------*/

⌨️ 快捷键说明

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