一.高精度延時, 是 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:
上傳時間: 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].
標簽: 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
標簽: 8226 Programmable Compatible In-System
上傳時間: 2015-06-27
上傳用戶:dianxin61
術是繼直接頻率合成和間接頻率合成之后,隨有4~20倍可編程時鐘乘法電路,系統最高時鐘可達300 MHZ,輸出頻率可達120 MHZ,頻率轉化速度小于1μs。內部有12位D/A轉化器、48位可編程頻率寄存器和
標簽: 頻率合成
上傳時間: 2015-08-04
上傳用戶:hoperingcong
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** / /* LCM 240128 顯示程序 */ /* MCU 型號: Winbond W78E58-24 */ /* 時鐘頻率: 22.1184 MHZ */ /* 接口方式: 直接接口(掛總線) */ /* 開發環境: Keil C51 V6.14 */ /* 開發日期: 2001.06.12- */ /* 程序編寫: Youth */
上傳時間: 2015-09-02
上傳用戶:1079836864
無線通信系統 1、系統由一個主站,多個從站組成。主站以輪詢方式收集從站的數據,每次傳輸一組仿真數據。 2、從站有兩組數字信號。從站傳輸哪一組數據由主站決定。 3、設計制作無線半雙工收發單元,其工作頻率(400-500)MHZ中自行選擇,各收發單元工作頻率的相對準確性(以主站工作頻率為基準)優于10-4。所有收發單元的發射功率不大于1w。 4、主從站收發天線長度 1m,垂直放置。 5、主站能實時顯示發送數據的從站好及其數據。從站能實時顯示本站發送給主站的數據;從站采用電池供電。
上傳時間: 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
標簽: 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.
標簽: connectivity applications availabilit nanoWatt
上傳時間: 2016-02-04
上傳用戶:CHINA526
RFID標準:iso18000-6(英文版)。 Information technology — Radio-frequency identification for item management — Part 6: Parameters for air interface communications at 860 MHZ to 960 MHZ
標簽: 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
標簽: identification Information technology Parameters
上傳時間: 2014-01-21
上傳用戶:llandlu