【正文】
Counter can be used to display the working status of products in general is mainly used to indicate how many products have pleted the page with the work of folding. Winding machine control is the core of counter microcontroller. Microputer technology as a promising puter technology, its application is very extensive, has been deep into every aspect of our daily life. Currently, SCM is the reliable, small and cheap direction. AT89C51 microcontroller used in this design to production, it is a 40foot 8bit microcontroller with a programmable memory containing 4KB, there are four 8bit parallel input / output, multiple keys can be used to input signals and control signals digital display signals, sound signals output. There are two interrupt inputs and the two outer timer / counter, for the design and circuit design software provides a convenient match. Winding machine counter control circuit in addition to microcontroller circuit external 5V regulated power supply circuit also, photoelectric switches, 4011 and nongate, key input circuit, digital control circuit and motor circuit. Keywords: Winding machine counter。 目 錄 1 緒論 ................................................................................................................... 1 課題的目的與意義 ............................................................................................................... 1 采取的研究方法、技術(shù)路線、實驗方案及可行性分析 ................................................... 1 課題的發(fā)展現(xiàn)狀和前景展望 ............................................................................................... 1 特色或創(chuàng)新之處 ................................................................................................................... 1 2 硬件部分設(shè)計 .................................................................................................... 2 系統(tǒng)框圖 ............................................................................................................................... 2 電源電路 ............................................................................................................................... 2 整流電路 ........................................................................................................................... 2 穩(wěn)壓電路 ........................................................................................................................... 3 濾波電路 ........................................................................................................................... 3 傳感器驅(qū)動電路 ................................................................................................................... 4 光電開關(guān) ............................................................................................................................ 4 CD4011 與非門 ................................................................................................................... 5 主控制電路 ........................................................................................................................... 6 AT89C51單片機 ................................................................................................................. 7 振蕩電路 ........................................................................................................................... 9 復(fù)位電路 ............................................................................................................................ 9 編碼式鍵盤電路 ................................................................................................................. 10 數(shù)碼管顯示電路 ................................................................................................................. 11 數(shù)碼管介紹 ........................................................................................................................11 七段 LED 數(shù)碼管發(fā)光原理 ................................................................................................11 數(shù)碼顯示電路原理 ............................................................................................................11 直流電動機驅(qū)動電路 ......................................................................................................... 12 電機工作原理 .................................................................................................................. 12 3 軟件部分設(shè)計 .................................................................................................. 13 主程序框圖 ......................................................................................................................... 13 加 1 子程序框圖 ................................................................................................................. 20 加 1 子程序源碼分析 ......................................................................................................... 20 減 1 子程序框圖 ................................................................................................................. 21 減 1 子程序源碼分析 ......................................................................................................... 21 顯示子程序 ......................................................................................................