一.高精度延時, 是 CPU 測速的基礎(chǔ) Windows 內(nèi)部有一個精度非常高的定時器, 精度在微秒級, 但不同的系統(tǒng)這個定時器的頻率不同, 這個頻率與硬件和操作系統(tǒng)都可能有關(guān)。 利用 API 函數(shù) QueryPerformanceFrequency 可以得到這個定時器的頻率。 利用 API 函數(shù) QueryPerformanceCounter 可以得到定時器的當(dāng)前值。 根據(jù)要延時的時間和定時器的頻率, 可以算出要延時的時間定時器經(jīng)過的周期數(shù)。 在循環(huán)里用 QueryPerformanceCounter 不停的讀出定時器值, 一直到經(jīng)過了指定周期數(shù)再結(jié)束循環(huán), 就達到了高精度延時的目的。 高精度延時的程序, 參數(shù): 微秒 二.測速程序 利用 rdtsc 匯編指令可以得到 CPU 內(nèi)部定時器的值, 每經(jīng)過一個 CPU 周期, 這個定時器就加一。 如果在一段時間內(nèi)數(shù)得 CPU 的周期數(shù), CPU工作頻率 = 周期數(shù) / 時間 為了不讓其他進程和線程打擾, 必需要設(shè)置最高的優(yōu)先級 以下函數(shù)設(shè)置當(dāng)前進程和線程到最高的優(yōu)先級。 SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL) CPU 測速程序的源代碼, 這個程序通過 CPU 在 1/16 秒的時間內(nèi)經(jīng)過的周期數(shù)計算出工作頻率, 單位 Mhz:
上傳時間: 2015-04-29
上傳用戶:iswlkje
TIMER.ASM ********* [ milindhp@tifrvax.tifr.res.in ] Set Processor configuration word as = 0000 0000 1010 b. a] -MCLR tied to VDD (internally). b] Code protection off. c] WDT disabled. d] Internal RC oscillator [4 Mhz].
標(biāo)簽: configuration Processor milindhp tifrvax
上傳時間: 2015-05-24
上傳用戶:wqxstar
Features • Compatible with MCS-51® Products • 8K Bytes of In-System Programmable (ISP) Flash Memory – Endurance: 1000 Write/Erase Cycles • 4.0V to 5.5V Operating Range • Fully Static Operation: 0 Hz to 33 Mhz • Three-level Program Memory Lock • 256 x 8-bit Internal RAM • 32 Programmable I/O Lines • Three 16-bit Timer/Counters • Eight Interrupt Sources • Full Duplex UART Serial Channel • Low-power Idle and Power-down Modes • Interrupt Recovery from Power-down Mode • Watchdog Timer • Dual Data Pointer • Power-off Flag
標(biāo)簽: 8226 Programmable Compatible In-System
上傳時間: 2015-06-27
上傳用戶:dianxin61
術(shù)是繼直接頻率合成和間接頻率合成之后,隨有4~20倍可編程時鐘乘法電路,系統(tǒng)最高時鐘可達300 Mhz,輸出頻率可達120 Mhz,頻率轉(zhuǎn)化速度小于1μs。內(nèi)部有12位D/A轉(zhuǎn)化器、48位可編程頻率寄存器和
標(biāo)簽: 頻率合成
上傳時間: 2015-08-04
上傳用戶:hoperingcong
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** / /* LCM 240128 顯示程序 */ /* MCU 型號: Winbond W78E58-24 */ /* 時鐘頻率: 22.1184 Mhz */ /* 接口方式: 直接接口(掛總線) */ /* 開發(fā)環(huán)境: Keil C51 V6.14 */ /* 開發(fā)日期: 2001.06.12- */ /* 程序編寫: Youth */
標(biāo)簽: 240128 Winbon LCM MCU
上傳時間: 2015-09-02
上傳用戶:1079836864
無線通信系統(tǒng) 1、系統(tǒng)由一個主站,多個從站組成。主站以輪詢方式收集從站的數(shù)據(jù),每次傳輸一組仿真數(shù)據(jù)。 2、從站有兩組數(shù)字信號。從站傳輸哪一組數(shù)據(jù)由主站決定。 3、設(shè)計制作無線半雙工收發(fā)單元,其工作頻率(400-500)Mhz中自行選擇,各收發(fā)單元工作頻率的相對準(zhǔn)確性(以主站工作頻率為基準(zhǔn))優(yōu)于10-4。所有收發(fā)單元的發(fā)射功率不大于1w。 4、主從站收發(fā)天線長度 1m,垂直放置。 5、主站能實時顯示發(fā)送數(shù)據(jù)的從站好及其數(shù)據(jù)。從站能實時顯示本站發(fā)送給主站的數(shù)據(jù);從站采用電池供電。
標(biāo)簽: 無線通信系統(tǒng) 主站
上傳時間: 2014-01-19
上傳用戶:l254587896
This leon3 design is tailored to the Altera NiosII Startix2 Development board, with 16-bit DDR SDRAM and 2 Mbyte of SSRAM. As of this time, the DDR interface only works up to 120 Mhz. At 130, DDR data can be read but not written. NOTE: the test bench cannot be simulated with DDR enabled because the Altera pads do not have the correct delay models. * How to program the flash prom with a FPGA programming file 1. Create a hex file of the programming file with Quartus. 2. Convert it to srecord and adjust the load address: objcopy --adjust-vma=0x800000 output_file.hexout -O srec fpga.srec 3. Program the flash memory using grmon: flash erase 0x800000 0xb00000 flash load fpga.srec
標(biāo)簽: Development Startix2 tailored Altera
上傳時間: 2014-01-19
上傳用戶:chongcongying
Ideal for large low power (nanoWatt) and connectivity applications that benefit from the availability of four serial ports: double synchronous serial ports (I² C™ and SPI™ ) and double asynchronous (LIN capable) serial ports. Large amounts of RAM memory for buffering and FLASH program memory make it ideal for instrumentation panels, TCP/IP enabled embedded applications as well as metering and industrial control and monitoring applications. While operating up to 40 Mhz, it is also backward software and hardware compatible with the PIC18F8720.
標(biāo)簽: connectivity applications availabilit nanoWatt
上傳時間: 2016-02-04
上傳用戶:CHINA526
RFID標(biāo)準(zhǔn):iso18000-6(英文版)。 Information technology — Radio-frequency identification for item management — Part 6: Parameters for air interface communications at 860 Mhz to 960 Mhz
標(biāo)簽: Radio-frequency identification Information technology
上傳時間: 2014-01-17
上傳用戶:cainaifa
Information technology — Radio frequency identification for item management — Part 3: Parameters for air interface communications at 13,56 Mhz
標(biāo)簽: identification Information technology Parameters
上傳時間: 2014-01-21
上傳用戶:llandlu
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1