【正文】
52 單片機(jī) 簡(jiǎn)介 STC89C52 單片機(jī) 是一種低功耗、高性能 CMOS8 位微控制器,具有 8K 在系統(tǒng)可編程 Flash 存儲(chǔ)器。 L298 電機(jī)驅(qū)動(dòng)芯片 L298 可直接的對(duì)電機(jī)進(jìn)行控制,無(wú)需隔離電路。 9 引腳是用來(lái)接 到 7V 的電壓的,它是用來(lái)驅(qū)動(dòng) L298 芯片的。 輸入 5 和 7 控制輸出 2 和 3, 輸入的 10,12 控制輸出的 13,14。 本裝置用到的霍爾傳感器的介紹: 霍爾傳感器是一種磁傳感器。 我們用到的是開(kāi)關(guān)型霍爾傳感器 , 由穩(wěn)壓器、霍爾元件 、差分放大器,斯密特觸發(fā)器和輸出級(jí)組成,它輸出數(shù)字量。 防過(guò)卷電路如下 河南理工大學(xué)本科課程設(shè)計(jì)報(bào)告 8 圖 5 防卷電路圖 如圖所示,對(duì)應(yīng)的端口 分別接對(duì)應(yīng)的地與 +5V。 河南理工大學(xué)本科課程設(shè)計(jì)報(bào)告 9 第三章 軟件設(shè)計(jì) 流程圖 總程序 總程序見(jiàn)附 1 延遲 是否有按鍵按下 鍵盤掃描 開(kāi)始 N Y N C 按下 檢測(cè)哪個(gè)鍵按下 Y A 按下 反轉(zhuǎn) B 按下 正轉(zhuǎn) 停止 河南理工大學(xué)本科課程設(shè)計(jì)報(bào)告 10 第 四 章 proteus 仿真 仿真圖 仿真圖說(shuō)明 該系統(tǒng)主要有按鍵控制模塊, 發(fā)光二極管 指示模塊, CPU 控制模塊, L298 驅(qū)動(dòng)電機(jī)模 塊。 工作時(shí),當(dāng)按下按鍵 1,經(jīng)過(guò) , 分別輸出高低電平,然后由驅(qū)動(dòng)輸出 OUT1,OUT2 管腳的高低電平,電機(jī)正轉(zhuǎn), 綠燈亮 ;當(dāng)按下按鍵 2,電機(jī)反轉(zhuǎn),黃燈亮 。懷著比較期待以及興奮的心情,在寒假里,我們組內(nèi)兩人都開(kāi)始著手準(zhǔn)備,搜集相關(guān)資料,主要是根據(jù)要實(shí)現(xiàn)的功能確立怎么實(shí)現(xiàn)相應(yīng)功能的方案,在此基礎(chǔ)上,通過(guò)看前輩們的設(shè)計(jì),查閱相關(guān)芯片的功能原理 ,引腳以及接線,搞清每一塊的具體如何接線,如何實(shí)現(xiàn)。另外,寫程序相對(duì)于上學(xué)期我們做過(guò)的四個(gè)實(shí)驗(yàn)的復(fù)雜程度,這個(gè)算是相當(dāng)簡(jiǎn)單。 通過(guò)這個(gè)實(shí)驗(yàn),讓我認(rèn)識(shí)到單片機(jī)功能的強(qiáng)大,基于單片機(jī),我們可以通過(guò)接各種各樣的外設(shè),實(shí)現(xiàn)各種不同功能,有待我們?nèi)ヌ剿鳌?51 單片機(jī) C 語(yǔ)言教程 L298 中文資料, 20220910/20220112 [5] 百度文庫(kù) sbit IN1=P2^0。 //指示燈端口定義 sbit Y=P2^4。 sbit K3=P0^7。 sbit I=P1^3。 for(x=i。y)。 while(1) { 河南理工大學(xué)本科課程設(shè)計(jì)報(bào)告 14 if(I==0) //按鍵控制程序 { if(K1==0)//正轉(zhuǎn) { delay(5)。 ENA=1。 ENA=1。 if(K2==0||K3==0||H==1||I==1) break。R=1。 delay(10)。 delay(20)。R=0。 } } if(I==1) //無(wú)線遙控控制程序 { while(W1==1) //正轉(zhuǎn) { G=0。IN1=1。IN1=0。 } while(W2==1) //反轉(zhuǎn) { G=1。IN1=0。IN1=0。 } if(W3==1) //停止 { G=1。IN1=0。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。s 150th anniversary celebrations and will attend City39。s governing body, has also ordered an immediate investigation into the referee39?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝 的很多個(gè)不同的日子過(guò)成了同一天的樣子;或許是追溯過(guò)去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來(lái),思緒一直很凌亂,在腦海中不斷糾纏。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39。t remember his appearance. 童年時(shí),覺(jué)得壓歲錢和新衣服是過(guò)年必備,但是隨著年齡的推進(jìn),會(huì)越來(lái)越發(fā)現(xiàn),那些東西根本就可有可無(wú);初中 時(shí),以為要有一場(chǎng)暗戀才意