Simple Timer/Counter application for cock fighting
標簽: application fighting Counter Simple
上傳時間: 2013-11-29
上傳用戶:lizhen9880
英文描述: DECADE COUNTER; DIVIDE-BY-TWELVE COUNTER; 4-BIT BINARY COUNTER 中文描述: 十年計數器;分頻12項反,4位二進制計數器
上傳時間: 2013-05-16
上傳用戶:zhouchang199
HIGH SPEED 8051 μC CORE - Pipe-lined Instruction Architecture; Executes 70% of Instructions in 1 or 2 System Clocks - Up to 25MIPS Throughput with 25MHz System Clock - 22 Vectored Interrupt Sources MEMORY - 4352 Bytes Internal Data RAM (256 + 4k) - 64k Bytes In-System Programmable FLASH Program Memory - External Parallel Data Memory Interface – up to 5Mbytes/sec DIGITAL PERIPHERALS - 64 Port I/O; All are 5V tolerant - Hardware SMBusTM (I2CTM Compatible), SPITM, and Two UART Serial Ports Available Concurrently - Programmable 16-bit Counter/Timer Array with 5 Capture/Compare Modules - 5 General Purpose 16-bit Counter/Timers - Dedicated Watch-Dog Timer; Bi-directional Reset CLOCK SOURCES - Internal Programmable Oscillator: 2-to-16MHz - External Oscillator: Crystal, RC, C, or Clock - Real-Time Clock Mode using Timer 3 or PCA SUPPLY VOLTAGE ........................ 2.7V to 3.6V - Typical Operating Current: 10mA @ 25MHz - Multiple Power Saving Sleep and Shutdown Modes 100-Pin TQFP (64-Pin Version Available) Temperature Range: –40°C to +85°C
標簽: C8051F020
上傳時間: 2013-10-12
上傳用戶:lalalal
介紹基于ISA總線與KH-9300的數據采集板卡的設置,詳細說明8254定時計數器及8259中斷控制器的結構特點、工作方式、控制字等,探討中斷類型、中斷處理程序、中斷矢量表及其填寫。重點講述使用TorboC編寫中斷服務程序的方法,應注意的主要問題及程序測試的結果。 Abstract: The settings of KH-9300 data acquisition board based on the ISA bus is introduced,the structural characteristics,working methods,control characters of the timing counter 8254 and interruptioncontroller 8259 are explained in detail.The interruption type,interrupt handling programs,interruption vector table and its filling also are discussed.Further,great emphasis is put on the method of interrupt service program compiled by Torbo C,the main issues that should be noted,and the results of program testing.
上傳時間: 2013-11-14
上傳用戶:qq527891923
以89S52單片機和EP1C6Q240C8型FPGA為控制核心的多功能計數器,是由峰值檢波、A/D轉換、程控放大、比較整形、移相網絡部分組成,可實現測量正弦信號的頻率、周期和相位差的功能。多功能計數器采用等精度的測量方法,可實現頻率為1Hz~10MHz、幅度為0.01~5Vrms的正弦信號的精確測頻,以及頻率為10Hz~100kHz、幅度為0.5~5Vrms的正弦信號精確測相。液晶顯示器能夠實時顯示當前信號的頻率、周期和相位差。該多功能計數器精度高,界面友好,實用性強。 Abstract: A multi-function counter,which uses89S52MCU and EP1C6Q240C8FPGA as a control core,consists of peak detector,A/D conversion,program-controlled amplification,compared shaping and phase-shifting network part.The counter measures the frequency,period and phase of sinusoidal signal.With the equal precision method,the multi-function counter achieves the precise frequency measurement of the sinusoidal signal which its frequency is from1Hz to10MHz,its amplitude is from0.01Vrms to5Vrms,as well as the accurate phase measurement of the sinusoidal signal which its frequency is from10Hz to100kHz,its amplitude is from0.5Vrms to5Vrms.The LCD monitor real-time displays the frequency,period and phase difference of current signal.The multi-function counter features high precision,friendly interface,and strong practical.
上傳時間: 2013-11-15
上傳用戶:gy592333
對于瀝青混凝土攤鋪機自動找平控制系統來說,數字式控制系統的研制是目前的一個方向。介紹了一種基于CAN總線的數字式自動找平控制系統。該系統以CAN總線作為通信方式,PWM控制信號通過C8051F040單片機內部PCA可編程計數器陣列產生,并具有結構簡單、信號穩定、實時性強、易擴展的特點。通過硬件實現和系統運行達到了比較理想的控制效果,驗證了系統的可行性。 Abstract: A digital auto-leveling control system based on CAN Bus is introduced.It uses CAN Bus as the method of communication and creates PWM signals by programmable counter array in C8051F040 microcontroller. The system is simple, stable, real-time and expansive.
上傳時間: 2013-10-09
上傳用戶:ligi201200
要搞清楚單片機與PLC的異同,首先得明確什幺是單片機,什幺是PLC。對此,我們簡要回顧一下計算機的發展歷程也許有幫助,按計算機專家的原始定義,計算機系統由五大部分--即控制單元(CU)、算術運算單元(ALU)、存儲器(Memory)、輸入設備(Input)、輸出設備(Output)組成。早期計算機(晶體管的或集成電路的,不包括電子管的)的CU或ALU由一塊甚至多塊電路板組成,CU和ALU是分離的,隨著集成度的提高,CU和ALU合在一塊就組成了中央處理單元(CPU),接著將CPU集成到單塊集成電路中就產生MPU或MCU,出現了如Intel4004、8008、8080,8085、8086、8088、Z80等MPU。此后,MPU的發展產生了兩條分支,一支往高性能、高速度、大容量方向發展,典型芯片如:Intel80186、286、386、486、586、P2、P3、P4等,速度從4.7MHz到現在的3.2GHz。另一支則往多功能方向發展,將存儲器(ROM、PROM、EPROM、EEPROM、FLASHROM、SRAM等)、輸入/出接口(Timer/Counter、PWM、ADC/DAC、UART、IIC、SPI、RTC、PCA、FPGA等)全部集成在一塊集成電路中而成為SOC。依愚之見,這就是當今廣泛應用的單片計算機,簡稱單片機。這一分支可謂品種繁多,位寬從8位到32位,引腳數從6個到幾百個,工作頻率從幾十KHz到幾百MHz,體系結構既有CISC也有RISC,數不勝數。常用的有MCS-51系列、MCS-96系列、PIC系列、AVR系列、ARM7/9系列、TMS320系列、MSP430系列、MOTOROLA眾多的單片機等等。
上傳時間: 2013-10-16
上傳用戶:jjj0202
NEC 16位MCU參考手冊 The 78K0R/IC3 is a 16-bit single-chip microcontroller that uses a 78K0R CPU core and incorporates peripheral functions, such as ROM/RAM, a multi-function timer, a multi-function serial interface, an A/D converter, a programmable gain amplifier (PGA), a comparator, a real-time counter, and a watchdog timer.
上傳時間: 2013-11-02
上傳用戶:努力努力再努力
本實驗要求設計一個簡易的頻率計,實現對標準的方波信號進行頻率測量,并把測量的結果送到8 位的數碼管顯示,所要求測量范圍是1Hz~99999999Hz。整個設計的基本原理就是對1 秒鐘之內輸入的方波進行計數,把所得數據保存在計數器里,經過譯碼器處理之后,然后送往數碼管顯示。這里采用的方案是在采樣時鐘的上升沿開始計數,然后在下一個上升沿把計數器里的數據送往數碼管,并且把計數器清零,讓其重新計數。整個方案的實現主要分為四個模塊:時鐘分頻(clk_div)模塊、計數器模塊(counter)、譯碼器模塊(seg8)、掃描輸出(saomiao)模塊。
上傳時間: 2013-11-08
上傳用戶:kaixinxin196
AT89C2051驅動步進電機的電路和源碼:AT89C2051驅動步進電機的電路和源碼 程序:stepper.c stepper.hex/* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.hregister unsigned char j,flag1,temp; register unsigned int cw_n,ccw_n;unsigned char step[8]={0x80,0xc0,0x40,0x60,0x20,0x30,0x10,0x90} #define n 400/* flag1 mask byte 0x01 run cw() 0x02 run ccw() */main(){ flag1=0; serinit(9600); disable(); /* no need timer interrupt */ cw_n = n; /* initial step number for cw */ flag1 |=0x01; /* initial enable cw() */while(1){ { tick_wait(); /* wait for 10ms elapsed */energize(); /* round-robin execution the following tasks every 10ms */ cw(); ccw(); } }}cw(){ if((flag1&0x01)!=0) { cw_n--; /* decrement cw step number */ if (cw_n !=0) j++; /* if not zero increment index j */ else {flag1&=~0x01; /* disable cw() execution */ ccw_n = n; /* reload step number to ccw counter */ flag1 |=0x02; /* enable cww() execution */ } }
上傳時間: 2013-11-21
上傳用戶:boyaboy