Simple Timer/Counter application for cock fighting
標(biāo)簽: application fighting Counter Simple
上傳時(shí)間: 2013-11-29
上傳用戶:lizhen9880
英文描述: DECADE Counter; DIVIDE-BY-TWELVE Counter; 4-BIT BINARY Counter 中文描述: 十年計(jì)數(shù)器;分頻12項(xiàng)反,4位二進(jìn)制計(jì)數(shù)器
上傳時(shí)間: 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
標(biāo)簽: C8051F020
上傳時(shí)間: 2013-10-12
上傳用戶:lalalal
介紹基于ISA總線與KH-9300的數(shù)據(jù)采集板卡的設(shè)置,詳細(xì)說(shuō)明8254定時(shí)計(jì)數(shù)器及8259中斷控制器的結(jié)構(gòu)特點(diǎn)、工作方式、控制字等,探討中斷類型、中斷處理程序、中斷矢量表及其填寫(xiě)。重點(diǎn)講述使用TorboC編寫(xiě)中斷服務(wù)程序的方法,應(yīng)注意的主要問(wèn)題及程序測(cè)試的結(jié)果。 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.
上傳時(shí)間: 2013-11-14
上傳用戶:qq527891923
以89S52單片機(jī)和EP1C6Q240C8型FPGA為控制核心的多功能計(jì)數(shù)器,是由峰值檢波、A/D轉(zhuǎn)換、程控放大、比較整形、移相網(wǎng)絡(luò)部分組成,可實(shí)現(xiàn)測(cè)量正弦信號(hào)的頻率、周期和相位差的功能。多功能計(jì)數(shù)器采用等精度的測(cè)量方法,可實(shí)現(xiàn)頻率為1Hz~10MHz、幅度為0.01~5Vrms的正弦信號(hào)的精確測(cè)頻,以及頻率為10Hz~100kHz、幅度為0.5~5Vrms的正弦信號(hào)精確測(cè)相。液晶顯示器能夠?qū)崟r(shí)顯示當(dāng)前信號(hào)的頻率、周期和相位差。該多功能計(jì)數(shù)器精度高,界面友好,實(shí)用性強(qiáng)。 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.
標(biāo)簽: FPGA 單片機(jī) 多功能 計(jì)數(shù)器
上傳時(shí)間: 2013-11-15
上傳用戶:gy592333
對(duì)于瀝青混凝土攤鋪機(jī)自動(dòng)找平控制系統(tǒng)來(lái)說(shuō),數(shù)字式控制系統(tǒng)的研制是目前的一個(gè)方向。介紹了一種基于CAN總線的數(shù)字式自動(dòng)找平控制系統(tǒng)。該系統(tǒng)以CAN總線作為通信方式,PWM控制信號(hào)通過(guò)C8051F040單片機(jī)內(nèi)部PCA可編程計(jì)數(shù)器陣列產(chǎn)生,并具有結(jié)構(gòu)簡(jiǎn)單、信號(hào)穩(wěn)定、實(shí)時(shí)性強(qiáng)、易擴(kuò)展的特點(diǎn)。通過(guò)硬件實(shí)現(xiàn)和系統(tǒng)運(yùn)行達(dá)到了比較理想的控制效果,驗(yàn)證了系統(tǒng)的可行性。 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.
標(biāo)簽: CAN 總線 數(shù)字式 控制系統(tǒng)設(shè)計(jì)
上傳時(shí)間: 2013-10-09
上傳用戶:ligi201200
要搞清楚單片機(jī)與PLC的異同,首先得明確什幺是單片機(jī),什幺是PLC。對(duì)此,我們簡(jiǎn)要回顧一下計(jì)算機(jī)的發(fā)展歷程也許有幫助,按計(jì)算機(jī)專家的原始定義,計(jì)算機(jī)系統(tǒng)由五大部分--即控制單元(CU)、算術(shù)運(yùn)算單元(ALU)、存儲(chǔ)器(Memory)、輸入設(shè)備(Input)、輸出設(shè)備(Output)組成。早期計(jì)算機(jī)(晶體管的或集成電路的,不包括電子管的)的CU或ALU由一塊甚至多塊電路板組成,CU和ALU是分離的,隨著集成度的提高,CU和ALU合在一塊就組成了中央處理單元(CPU),接著將CPU集成到單塊集成電路中就產(chǎn)生MPU或MCU,出現(xiàn)了如Intel4004、8008、8080,8085、8086、8088、Z80等MPU。此后,MPU的發(fā)展產(chǎn)生了兩條分支,一支往高性能、高速度、大容量方向發(fā)展,典型芯片如:Intel80186、286、386、486、586、P2、P3、P4等,速度從4.7MHz到現(xiàn)在的3.2GHz。另一支則往多功能方向發(fā)展,將存儲(chǔ)器(ROM、PROM、EPROM、EEPROM、FLASHROM、SRAM等)、輸入/出接口(Timer/Counter、PWM、ADC/DAC、UART、IIC、SPI、RTC、PCA、FPGA等)全部集成在一塊集成電路中而成為SOC。依愚之見(jiàn),這就是當(dāng)今廣泛應(yīng)用的單片計(jì)算機(jī),簡(jiǎn)稱單片機(jī)。這一分支可謂品種繁多,位寬從8位到32位,引腳數(shù)從6個(gè)到幾百個(gè),工作頻率從幾十KHz到幾百M(fèi)Hz,體系結(jié)構(gòu)既有CISC也有RISC,數(shù)不勝數(shù)。常用的有MCS-51系列、MCS-96系列、PIC系列、AVR系列、ARM7/9系列、TMS320系列、MSP430系列、MOTOROLA眾多的單片機(jī)等等。
上傳時(shí)間: 2013-10-16
上傳用戶:jjj0202
NEC 16位MCU參考手冊(cè) 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.
上傳時(shí)間: 2013-11-02
上傳用戶:努力努力再努力
本實(shí)驗(yàn)要求設(shè)計(jì)一個(gè)簡(jiǎn)易的頻率計(jì),實(shí)現(xiàn)對(duì)標(biāo)準(zhǔn)的方波信號(hào)進(jìn)行頻率測(cè)量,并把測(cè)量的結(jié)果送到8 位的數(shù)碼管顯示,所要求測(cè)量范圍是1Hz~99999999Hz。整個(gè)設(shè)計(jì)的基本原理就是對(duì)1 秒鐘之內(nèi)輸入的方波進(jìn)行計(jì)數(shù),把所得數(shù)據(jù)保存在計(jì)數(shù)器里,經(jīng)過(guò)譯碼器處理之后,然后送往數(shù)碼管顯示。這里采用的方案是在采樣時(shí)鐘的上升沿開(kāi)始計(jì)數(shù),然后在下一個(gè)上升沿把計(jì)數(shù)器里的數(shù)據(jù)送往數(shù)碼管,并且把計(jì)數(shù)器清零,讓其重新計(jì)數(shù)。整個(gè)方案的實(shí)現(xiàn)主要分為四個(gè)模塊:時(shí)鐘分頻(clk_div)模塊、計(jì)數(shù)器模塊(Counter)、譯碼器模塊(seg8)、掃描輸出(saomiao)模塊。
標(biāo)簽: EasyFPGA 030 頻率計(jì)設(shè)
上傳時(shí)間: 2013-11-08
上傳用戶:kaixinxin196
AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼:AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼 程序: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 */ } }
上傳時(shí)間: 2013-11-21
上傳用戶:boyaboy
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1