Welcome![Sign In][Sign Up]
Location:
Search - delay timer

Search list

[WEB CodeCPU 测速(MHz)和高精度延时(微秒级)

Description: 一.高精度延时, 是 CPU 测速的基础 Windows 内部有一个精度非常高的定时器, 精度在微秒级, 但不同的系统这个定时器的频率不同, 这个频率与硬件和操作系统都可能有关。 利用 API 函数 QueryPerformanceFrequency 可以得到这个定时器的频率。 利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。 根据要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。 在循环里用 QueryPerformanceCounter 不停的读出定时器值, 一直到经过了指定周期数再结束循环, 就达到了高精度延时的目的。 高精度延时的程序, 参数: 微秒 二.测速程序 利用 rdtsc 汇编指令可以得到 CPU 内部定时器的值, 每经过一个 CPU 周期, 这个定时器就加一。 如果在一段时间内数得 CPU 的周期数, CPU工作频率 = 周期数 / 时间 为了不让其他进程和线程打扰, 必需要设置最高的优先级 以下函数设置当前进程和线程到最高的优先级。 SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL) CPU 测速程序的源代码, 这个程序通过 CPU 在 1/16 秒的时间内经过的周期数计算出工作频率, 单位 MHz: -one. High-precision delay, the CPU speed is the basis of Windows within a very high accuracy of the timer, the microsecond precision, but in the system timer different frequencies, the frequency and hardware and the operating system are likely. Using API function can be QueryPerformanceFrequency the timing The frequency. Use QueryPerformanceCounter API function can be the current timer value. According to the delay time and the frequency of the timer, you could calculate the time to delay timer after a few cycles. The circle with QueryPerformanceCounter repeatedly read out the timer value, until after a specified number of cycles end the cycle again, it reached a high precision delay purposes. High-precision delay the procedure parameters : 2 microsecond. Gun utilize RDTSC instruction can
Platform: | Size: 1213 | Author: 马俊 | Hits:

[Process-Threadbootstrap

Description: 这个频率与硬件和操作系统都可能有关。利用 API 函数 QueryPerformanceFrequency 可以得到 这个定时器的频率。利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。根据 要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。在循环里用 QueryPerformanceCounter 不停的读出定时器值, 一直到经过了指定周期数再结束循环, 就达到-the frequency with hardware and the operating system are likely. Using API function can be QueryPerformanceFrequency the timing The frequency. QueryPerformanceCounter API function can be present timer value. According to the delay time and the frequency of the timer, you could calculate the time to delay timer after a few cycles. In the circle with QueryPerformanceCounter kept read timer value, until after a specified number of cycles end the cycle again, to achieve
Platform: | Size: 238447 | Author: xianhao | Hits:

[Other resource单片机课程设计1

Description: 编写一个延时1MS子程序根据题目选择是定时还是记数状态,本题选择记数状态。然后根据延时1MS计算出计时器的初值是E0H(高8位)18H(低5位)。最后编写算法,对T0初始化,利用T0的中断TF0调用中断处理程序。-prepared a delay rungs subroutine under the topic chosen is not a time to memorize numbers or state of mind of the few options that state. According to delay timer rungs calculate the initial value is E0H (high 8) 18H (Low 5). Preparation of the final algorithm, the T0 initialization, interrupt the use of T0 TF0 call interrupt handling procedures.
Platform: | Size: 3724 | Author: 李明 | Hits:

[OS programAccurateTimer

Description: 利用多媒体计时器实现的毫秒级的延迟-Use of multimedia timer to achieve the millisecond delay
Platform: | Size: 3072 | Author: sjy | Hits:

[SCM单片机课程设计1

Description: 编写一个延时1MS子程序根据题目选择是定时还是记数状态,本题选择记数状态。然后根据延时1MS计算出计时器的初值是E0H(高8位)18H(低5位)。最后编写算法,对T0初始化,利用T0的中断TF0调用中断处理程序。-prepared a delay rungs subroutine under the topic chosen is not a time to memorize numbers or state of mind of the few options that state. According to delay timer rungs calculate the initial value is E0H (high 8) 18H (Low 5). Preparation of the final algorithm, the T0 initialization, interrupt the use of T0 TF0 call interrupt handling procedures.
Platform: | Size: 3072 | Author: 李明 | Hits:

[DocumentsCPU 测速(MHz)和高精度延时(微秒级)

Description: 一.高精度延时, 是 CPU 测速的基础 Windows 内部有一个精度非常高的定时器, 精度在微秒级, 但不同的系统这个定时器的频率不同, 这个频率与硬件和操作系统都可能有关。 利用 API 函数 QueryPerformanceFrequency 可以得到这个定时器的频率。 利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。 根据要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。 在循环里用 QueryPerformanceCounter 不停的读出定时器值, 一直到经过了指定周期数再结束循环, 就达到了高精度延时的目的。 高精度延时的程序, 参数: 微秒 二.测速程序 利用 rdtsc 汇编指令可以得到 CPU 内部定时器的值, 每经过一个 CPU 周期, 这个定时器就加一。 如果在一段时间内数得 CPU 的周期数, CPU工作频率 = 周期数 / 时间 为了不让其他进程和线程打扰, 必需要设置最高的优先级 以下函数设置当前进程和线程到最高的优先级。 SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL) CPU 测速程序的源代码, 这个程序通过 CPU 在 1/16 秒的时间内经过的周期数计算出工作频率, 单位 MHz: -one. High-precision delay, the CPU speed is the basis of Windows within a very high accuracy of the timer, the microsecond precision, but in the system timer different frequencies, the frequency and hardware and the operating system are likely. Using API function can be QueryPerformanceFrequency the timing The frequency. Use QueryPerformanceCounter API function can be the current timer value. According to the delay time and the frequency of the timer, you could calculate the time to delay timer after a few cycles. The circle with QueryPerformanceCounter repeatedly read out the timer value, until after a specified number of cycles end the cycle again, it reached a high precision delay purposes. High-precision delay the procedure parameters : 2 microsecond. Gun utilize RDTSC instruction can
Platform: | Size: 1024 | Author: 马俊 | Hits:

[Process-Threadbootstrap

Description: 这个频率与硬件和操作系统都可能有关。利用 API 函数 QueryPerformanceFrequency 可以得到 这个定时器的频率。利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。根据 要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。在循环里用 QueryPerformanceCounter 不停的读出定时器值, 一直到经过了指定周期数再结束循环, 就达到-the frequency with hardware and the operating system are likely. Using API function can be QueryPerformanceFrequency the timing The frequency. QueryPerformanceCounter API function can be present timer value. According to the delay time and the frequency of the timer, you could calculate the time to delay timer after a few cycles. In the circle with QueryPerformanceCounter kept read timer value, until after a specified number of cycles end the cycle again, to achieve
Platform: | Size: 238592 | Author: xianhao | Hits:

[JSP/Javatimer

Description: 计时器服务依赖于加载 Timer 类的主机的系统日期。如果侦听器主机具有不同的系统日期,则侦听器可能会不合时宜地接收到通知。为了避免此类问题,要 ... 定期通知的默认行为是固定延迟执行,这一点已在 Timer 中指定。-Services depends on the load timer Timer class of mainframe-based systems date. If the listener has a different host system date, the listener may receive untimely notice. In order to avoid this problem, should be informed on a regular basis ... the default behavior is a fixed delay in the implementation and this has already been specified in Timer.
Platform: | Size: 1024 | Author: shijie_cui | Hits:

[CSharpTimer

Description: 可以定时关机,延时关机!界面简单,友好,很方便的一款软件!-Can be turned off from time to time, delay shutdown! Interface is simple, friendly, very convenient for a software!
Platform: | Size: 70656 | Author: 王一 | Hits:

[SCM200899566221

Description: 利用定时器准确延时,仅供参考,希望大家下载-Use of accurate delay timer for reference purposes only and hope that everyone download
Platform: | Size: 3072 | Author: zhp | Hits:

[SCMSoftTimer

Description: SoftTimer.h 利用定时器T2模拟多个软件定时器 特点: 只占用一个硬件定时器T2,就可以扩展出多达数十个以上的软件定时器 软件定时器基本定时单位是10ms,定时范围很宽:0.01~163.84s 软件定时器数量可以按需要设定,每增加一个,只多消耗2个字节的RAM空间 利用定时器T2的自动重装特性,能够实现所有软件定时器的精确定时 所有软件定时器都工作在14位倒计时方式,用TR和TF位控制,使用极为方便 第0号定时器专门用于Delay()函数,其它定时器可供用户程序自由使用 -T2 timer SoftTimer.h simulation using multiple software timer features: only takes up a hardware timer T2, can be extended out over dozens of software timer software timers basic timing unit is 10ms, a wide range of timing : 0.01 ~ 163.84s software timer may need to configure the volume, each additional only consume more than two bytes of RAM space for the use of timer T2 automatic reload features, all the software timer to achieve the precise timing of all software timers are working in 14 countdown mode, with TR and TF-bit control, the use of extremely convenient timer 0 No. devoted to Delay () function, the other timer program free to use for users
Platform: | Size: 1024 | Author: cumtsun | Hits:

[SCMtimer

Description: 用于51单片机的定时器延时子程序,对定时有要求的进!-For 51 single-chip timer delay subroutine, from time to time has requested to enter!
Platform: | Size: 1024 | Author: 王卡 | Hits:

[SCMtimer

Description: avr单片机的定时计数器的使用。包括各种延时子程序的调用。内有电路图。-avr Singlechip timing counter use. Include a variety of delay subroutine calls. There are circuit diagrams.
Platform: | Size: 31744 | Author: MQS | Hits:

[ARM-PowerPC-ColdFire-MIPSDELAY

Description: 用计时器实现的精准的延时程序的代码,希望对大家有用,基于LPC2103-With the timer delay to achieve the precise procedure code
Platform: | Size: 104448 | Author: fidaura | Hits:

[SCMStm32.Share

Description: STM32 通过串口flash更新程序, 不用固件库,包括: ADC采样, 定时器延时中断, 键盘扫描, 模拟I2C驱动 问题咨询: w123456xy@sohu.com 15189792379-STM32 through the serial flash update, without firmware libraries, including: ADC sampling, delay timer interrupt, keyboard scanning, I2C driver Advisory: w123456xy@sohu.com 15189792379
Platform: | Size: 102400 | Author: whqxy | Hits:

[Other Embeded programThe-use-of-51-single-chip-timer

Description: 51单片机定时器的使用.c 描述 相对前面的软件延时,定时器的延时更为精确。-The use of 51 single-chip timer. C relative to the previous description of the software delay, delay timer is more precise.
Platform: | Size: 16384 | Author: Eric | Hits:

[Otherdelay

Description: *循环与延时程序 *该程序的功能可使接在F206的XF,IO2引脚上的发光二极管(红、绿灯)交替闪烁, *闪烁间隔为2s(亮2s,灭2s),闪烁总时间为2min *程序中用到了用DSP实现的延时模块。该模块是采用指令延时来实现的,这在很多 *程序中都可以用到,但在严格的情况下应使用定时器产生延时以提高精度和CPU效率。-* Loop and delay procedures* function allows the connection of the program in the F206 XF, light-emitting diodes (red, green) IO2 pin flash alternately,* blink interval 2s (bright 2s, off 2s), flashes the total time To 2min* procedures used in the delay module with DSP implementation. This module is implemented using instruction latency, which can be used in many* program, but under strict conditions should be used to generate the delay timer to improve the accuracy and CPU efficiency.
Platform: | Size: 1024 | Author: Tom | Hits:

[SCMDelay-timer-of-two-experiments

Description: 51单片机内部两个定时计数器合用的延时实验源码-Two internal 51 single delay timer counter combined experimental source
Platform: | Size: 6144 | Author: 柳召宾 | Hits:

[SCMHardware-delay-timer-function

Description: 本程序使用定时器作为硬件延时函数,通过定时器匹配实现延时功能-This program uses a hardware timer delay function, delay function realized by a timer match
Platform: | Size: 2048 | Author: 邱小明 | Hits:

[SCMtimer

Description: timer with atmega32 using delay and counter
Platform: | Size: 16384 | Author: madian | Hits:
« 12 3 4 5 6 7 8 9 10 ... 14 »

CodeBus www.codebus.net