freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機(jī)的轉(zhuǎn)速測(cè)量系統(tǒng)-在線瀏覽

2024-08-07 21:53本頁(yè)面
  

【正文】 、起振的快速性和溫度的穩(wěn)定性。在焊接刷電路板時(shí),晶體振蕩器和電容應(yīng)盡可能安裝得與單片機(jī)芯片靠近,以減少寄生電容,更好地保證震蕩器穩(wěn)定和可靠地工作。 最小系統(tǒng)的仿真 最小系統(tǒng)的仿真附最小系統(tǒng)仿真程序如下:include sbit LED=P1^0。 for(i=255。i) for(j=255。j)。 // LED滅// Delay ()。 //LED亮// Delay ()。每段上加上合適的電壓,該段就點(diǎn)亮。再把多個(gè)這樣的8字裝在一起就成了多位的數(shù)碼管了。 內(nèi)部結(jié)構(gòu): 共陽(yáng)型LCD共陰型()就是七個(gè)發(fā)光管的負(fù)極都連在一起 ,作為一條引線。 數(shù)碼管要正常顯示,就要用驅(qū)動(dòng)電路來(lái)驅(qū)動(dòng)數(shù)碼管的各個(gè)段碼,從而顯示出我們要的數(shù)字,因此根據(jù)數(shù)碼管的驅(qū)動(dòng)方式的不同,可以分為靜態(tài)式和動(dòng)態(tài)式兩類。靜態(tài)驅(qū)動(dòng)是指每個(gè)數(shù)碼管的每一個(gè)段碼都由一個(gè)單片機(jī)的I/O端口進(jìn)行驅(qū)動(dòng),或者使用如BCD碼二十進(jìn)制譯碼器譯碼進(jìn)行驅(qū)動(dòng)。動(dòng)態(tài)顯示驅(qū)動(dòng):數(shù)碼管動(dòng)態(tài)顯示接口是單片機(jī)中應(yīng)用最為廣泛的一種顯示方式之一,動(dòng)態(tài)驅(qū)動(dòng)是將所有數(shù)碼管的8個(gè)顯示筆劃a,b,c,d,e,f,g,dp的同名端連在一起,另外為每個(gè)數(shù)碼管的公共極COM增加位選通控制電路,位選通由各自獨(dú)立的I/O線控制,當(dāng)單片機(jī)輸出字形碼時(shí),所有數(shù)碼管都接收到相同的字形碼,但究竟是那個(gè)數(shù)碼管會(huì)顯示出字形,取決于單片機(jī)對(duì)位選通COM端電路的控制,所以我們只要將需要顯示的數(shù)碼管的選通控制打開(kāi),該位就顯示出字形,沒(méi)有選通的數(shù)碼管就不會(huì)亮。在輪流顯示過(guò)程中,每位數(shù)碼管的點(diǎn)亮?xí)r間為1~2ms,由于人的視覺(jué)暫留現(xiàn)象及發(fā)光二極管的余輝效應(yīng),盡管實(shí)際上各位數(shù)碼管并非同時(shí)點(diǎn)亮,但只要掃描的速度足夠快,給人的印象就是一組穩(wěn)定的顯示數(shù)據(jù),不會(huì)有閃爍感,動(dòng)態(tài)顯示的效果和靜態(tài)顯示是一樣的,能夠節(jié)省大量的I/O端口,而且功耗更低。 //顯示1234//uchar jj。 delay(uint m){ uint i,j。i0。j0。}xian_shi() { uchar qian,bei,shi,ge。 bei=mm%1000/100。 ge=mm%10。 P0=table[qian]。 P2=0。 P0=table[bei]。 P2=0。 P0=table[shi]。 P2=0。 P0=table[ge]。 P2=0。首先要分析系統(tǒng)對(duì)軟件的要求,然后進(jìn)行軟件的總體的設(shè)計(jì),包括程序的總體設(shè)計(jì)和對(duì)程序的模塊化設(shè)計(jì)。 根據(jù)設(shè)計(jì)的要求,單片機(jī)的任務(wù)是:內(nèi)部進(jìn)行計(jì)數(shù),在計(jì)算出速度后顯示。從程序流程圖、編寫(xiě)程序、編譯,到最后的調(diào)試,是很復(fù)雜的。 主程序初始化(1).定時(shí)器的初始化 AT89C51有兩個(gè)定時(shí)器/計(jì)數(shù)器T0和T1,每個(gè)定時(shí)器/計(jì)數(shù)器均可設(shè)置成為16位,也可以設(shè)置成為13位進(jìn)行定時(shí)或計(jì)數(shù)。 定時(shí)功能是通過(guò)計(jì)數(shù)器的計(jì)數(shù)來(lái)實(shí)現(xiàn)的,每個(gè)機(jī)器周期產(chǎn)生1個(gè)計(jì)數(shù)脈沖,即每個(gè)機(jī)器周期計(jì)數(shù)器加1,因此定時(shí)時(shí)間等于計(jì)數(shù)個(gè)數(shù)乘以機(jī)器周期。當(dāng)定時(shí)器采用不同的工作方式和設(shè)置不同的初值時(shí),產(chǎn)生溢出中斷的定時(shí)值和計(jì)數(shù)值將不同,從而可以適應(yīng)不同的定時(shí)或計(jì)數(shù)控制。工作方式寄存器TMOD的設(shè)定:GATEC/TM1M0GATEC/TM1M0TMOD各位的含義如下:◆GATE:門控位,用于控制定時(shí)/計(jì)數(shù)器的啟動(dòng)是否受外部中斷請(qǐng)求信號(hào)的影響。MM0為工作方式選擇位 ,用于對(duì)T0的四種工作方式,T1的三種工作方式進(jìn)行選擇,選擇情況如下表51:M1M0=00為方式0。中斷允許寄存器IE的字節(jié)地址為A8H,可以進(jìn)行位尋址. 表52 中斷位尋址表IED7D6D5D4D3D2D1D0(A8H)EAET2ESET1EX1ET0EX0◆EA:中斷允許總控位。 ◆ET2:定時(shí)器/計(jì)數(shù)器T2的溢出中斷允許位 ◆ES:串行口中斷允許位。 ◆EX1:外部中斷 INT1的中斷允許位。 ◆EX0:外部中斷 INT0的中斷允許位。本文介紹的轉(zhuǎn)速方法使用于高、低轉(zhuǎn)速的測(cè)量,測(cè)量精確度與轉(zhuǎn)速無(wú)關(guān),因而具有較寬的應(yīng)用范圍和廣闊的應(yīng)用的前景。在設(shè)計(jì)的信號(hào)處理電路中經(jīng)過(guò)濾波,能夠進(jìn)一步減少誤差,是測(cè)速精度得到提高。首先,我要感謝的是我的導(dǎo)師楊帆老師。可以說(shuō),沒(méi)有楊帆的悉心指導(dǎo)和幫助,我是不可能順利完成我的畢業(yè)設(shè)計(jì)的。再次,我要感謝的是我的同學(xué)趙星輝和舍友們?cè)谖耶厴I(yè)設(shè)計(jì)期間,他們給了我不少的關(guān)心和幫助。總之,感謝每一位關(guān)心過(guò)我,愛(ài)護(hù)過(guò)我的人。 參考文獻(xiàn) ,2003 馬全權(quán),李慶輝, 孫桂榮,班 瑩,劉 . 實(shí)驗(yàn)室科學(xué),2005 王秀杰,2003 :北京航空航天大學(xué)出版社,1990 蔣智勇. :遼寧科學(xué)技術(shù)出版設(shè),1992:北京航空航天大學(xué)出版社,1990:機(jī)械工業(yè)出版社,1995:哈爾濱工業(yè)大學(xué)出版社,19901蔣智勇. :遼寧科學(xué)技術(shù)出版設(shè),19921Tierney, J., Rader, ., and Gold, B. A Digital Frequency Synthesizer, IEEE Transactions on Audio and Electroacoustics AU19:1, March 1971 1Goldberg, BarGiora, Digital Techniques in Frequency Synthesis, New York: McGrawHill, 19961 QU Jinyu. Measure of Engine Speed Based on C8051F Chip, Tractor amp。 CHEN Minli。 d Based on MicroControllers, Chemical Engineering amp。uchar code table[]={0xc0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,}。 for(i=m。i) for(j=60。j)。 uint jj。 jj*=20。 qian=jj/1000。 shi=jj%100/10。 P2=0x10。 delay(1)。 P2=0x20。 delay(1)。 P2=0x40。 delay(1)。 P2=0x80。 delay(1)。 }timer_init() //定時(shí)器計(jì)數(shù)器初始化函數(shù){ EA=1。 ET1=1。 TH0=(6553550000)/256。 TH1=0。 TR0=1。 }main(){ timer_init()。 //開(kāi)始數(shù)碼管不顯示 while(1) { xian_shi()。 //數(shù)碼管刷新時(shí)間單位毫秒 } }void timer0() interrupt 1{ TR0=0。 TH0=(6553550000)/256。 mm=0。 mm=(mm8)|TL1。 TH1=0。 TR0=1。}void timer1() interrupt 3 //顯示0000說(shuō)明出錯(cuò){ TR1=0。 mm=0。 // TL1=0。 }Electric boiler temperature systemA microcontroller (or MCU) is a puteronachip. It is a type of microprocessor emphasizing selfsufficiency and costeffectiveness, in contrast to a generalpurpose microprocessor (the kind used in a PC). The majority of puter systems in use today are embedded in other machinery, such as telephones, clocks, appliances, vehicles, and infrastructure. An embedded system usually has minimal requirements for memory and program length and may require simple but unusual input/output systems. For example, most embedded systems lack keyboards, screens, disks, printers, or other recognizable I/O devices of a personal puter. They may control electric motors, relays or voltages, and read switches, variable resistors or other electronic devices. Often, the only I/O device readable by a human is a single lightemitting diode, and severe cost or power constraints can even eliminate that. In contrast to generalpurpose CPUs, microcontrollers do not have an address bus or a data bus, because they integrate all the RAM and nonvolatile memory on the same chip as the CPU. Because they need fewer pins, the chip can be placed in a much smaller, cheaper package. Integrating the memory and other peripherals on a single chip and testing them as a unit increases the cost of that chip, but often results in decreased net cost of the embedded system as a whole. (Even if the cost of a CPU that has integrated peripherals is slightly more than the cost of a CPU + external peripherals, having fewer chips typically allows a smaller and cheaper circuit board, and reduces the labor required to assemble and test the circuit board). This trend leads to design. A microcontroller is a single integrated circuit, monly with the following features: central processing unit ranging from small and simple 4bit processors to sophisticated 32 or 64bit processors input/output interfaces such as serial ports (UARTs) other serial munications interfaces like I178。C) is a functional puter systemonachip. It contains a processor core, memory, and programmable input/output peripherals.Microcontrollers include an integrated CPU, memory (a small amount of RAM, program memory, or both) and peripherals capable of input and output. It emphasizes high integration, in contrast to a microprocessor which only contains a CPU (th
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1