【正文】
景,同時(shí)也給電源提出了更高的要求。 獨(dú)立鍵控掃描的軟件設(shè)計(jì) ..........................................................23167。 主程序模塊設(shè)計(jì)— 初始化 ..........................................................22167。 獨(dú)立鍵控的設(shè)計(jì) ........................................................................21167。 DMT32240T035_01WN 的結(jié)構(gòu)與引腳 .................................17167。 LCD 顯示模塊電路設(shè)計(jì) ...............................................................15167。 反饋電路 ............................................................................14167。 恒流源模塊電路設(shè)計(jì) ........................................................13167。 電源及恒流源的電路設(shè)計(jì) ..........................................................11167。 STC12C5616AD 單片機(jī)介紹 ...................................................9167。 數(shù)控恒流電流源的硬件方案設(shè)計(jì).............................................5第 2章 數(shù)控恒流電流源的硬件電路設(shè)計(jì) .......................9167。 性能指標(biāo) ................................................................................4167。 LCD display output current and voltage. Keyboard adjust the size of the output current, and adjust the step 10mA.KEY WORDS: MCU、Power 、ConstantCurrent Source、 Liquid Crystal Display、 Keyboard目 錄前 言 .....................................................1第 1章 數(shù)控恒流電流源的設(shè)計(jì)要求與方案 .....................3167。s multilevel amplification, the output voltage controlled by the MCU that is the constant current source module input signal, can achieve stable constant current output. This design need to achieve constant current output, its output range: 01A, accuracy 177。鍵盤(pán)能夠調(diào)整輸出電流的大小,調(diào)整步長(zhǎng) 10mA。 通過(guò)本次設(shè)計(jì),需要實(shí)現(xiàn)恒定的電流輸出,它的輸出范圍:01A,精度177。電源主要實(shí)現(xiàn)的是將交流 220v 轉(zhuǎn)化為驅(qū)動(dòng)恒流源模塊穩(wěn)定的直流電壓,同時(shí)為各個(gè)電路提供電源保障;恒流源的功能:由單片機(jī)輸出電壓控制,作為恒流源模塊輸入信號(hào),達(dá)林頓管對(duì)其多級(jí)放大,以實(shí)現(xiàn)穩(wěn)定恒流輸出??刂颇K以 STC12C5616AD 單片機(jī)為核心,8 個(gè)獨(dú)立鍵控以中斷工作方式;LCD 液晶顯示器,實(shí)現(xiàn)實(shí)時(shí)顯示。電源技術(shù)已逐步發(fā)展成為一門(mén)多學(xué)科互相滲透的綜合性技術(shù)學(xué)科,它對(duì)現(xiàn)代通訊、電子儀器、計(jì)算機(jī)、工業(yè)自動(dòng)化、電力工程、國(guó)防及某些高新技術(shù)提供高質(zhì)量、高效率、高可靠性的電源起著關(guān)鍵作用。 基于 STC12C5616AD單片機(jī)的數(shù)控恒流電流源的設(shè)計(jì)摘 要目前,隨著電池的廣泛應(yīng)用、微電子及單片機(jī)技術(shù)的快速發(fā)展,充電器的需求及應(yīng)用也越來(lái)越廣泛,恒流充電逐漸成為充電器的重要技術(shù)。另一方面,隨著對(duì)高精確電源需求與電子技術(shù)的發(fā)展,基于單片機(jī)的恒流源控制的應(yīng)用范圍也越來(lái)越廣,它已經(jīng)不局限于為各種儀器、儀表提供恒流源。本設(shè)計(jì)采用模塊化模式,分為 2 個(gè)大的模塊:控制模塊和電源模塊。電源模塊含有 2 個(gè)部分:電源和恒流源。負(fù)載上的電壓,電流經(jīng)過(guò) ADC 采集輸入單片機(jī)處理。%;液晶 LCD 顯示輸出電流和電壓。關(guān)鍵詞:?jiǎn)纹瑱C(jī)、電源、恒流源、LCD、鍵盤(pán) Microcontroller Based STC12C5616AD Constant Current Source Design of NCABSTRACTCurrently,With the extensive application of the battery, and the rapid development of microelectronics and microputer technology, The demand and applications of rechargeable battery charger are more and more wide. Constantcurrent charging has gradually bee an important technology. On the other hand, as the requirements for high precision power and the development of electronic technology, Based on SCM constantcurrent source control application scope is more and more wide, it is no longer confined to a variety of instruments, meters to provide constant current source. Power technology has gradually developed into a multidisciplinary integrated technology of each subject. To provide high quality, high efficiency, high reliability power In modern munication, electronic instrument, puter, industrial automation, power engineering, national defense and some new technology area ,it plays a vital role.The design is modular pattern, which was divided into two major modules: control module, and power modules. STC12C5616AD microcontroller as the control module is the core. And 8 independent keying is interrupted work, LCD, realtime display. Power supply module contains two parts: power supply and constant current source. That 220v AC power supply is mainly transformed into a stable DC voltage for use in the system is implemented by power module. Constant Current function: after Darlington39。 %。 基于 STC12C5616AD 單片機(jī)的數(shù)控恒流電流源設(shè)計(jì)的主 要 性能 指 標(biāo) 及 其 工 作 原 理 ................................................................4167。 數(shù)控恒流電流源工作原理 ....................................................4167。 單片機(jī)外圍模塊電路設(shè)計(jì) ..........................................................9167。 單片機(jī) STC12C5616AD 的外圍電路設(shè)計(jì) ............................10167。 電源供給模塊設(shè)計(jì) ............................................................11167。 單片機(jī) STC12C5616AD 對(duì)恒流源模塊的控制 ..................14167。 電源恒流源整體模塊綜述 ................................................15167。 LCD 顯示器 .........................................................................15167。 LCD 顯示器與單片機(jī)的接口電路 .....................................19167。 獨(dú)立鍵控的電路設(shè)計(jì) ........................................................21第 3章 軟件設(shè)計(jì) ...........................................22167。 LCD 液晶顯示軟件設(shè)計(jì) ...............................................................22167。 串口通信軟件設(shè)計(jì) ...................................................................25結(jié) 論 ....................................................27參考文獻(xiàn) ..................................................28致 謝 ....................................................30附 錄 ....................................................31前 言現(xiàn)代社會(huì)中,電源技術(shù)尤其是數(shù)控電源技術(shù)是一門(mén)實(shí)踐性很強(qiáng)的工程技術(shù),涉及了電氣、電子、系統(tǒng)集成、控制理論、材料等諸多學(xué)科領(lǐng)域。普通電源由于精確度低等缺點(diǎn)已不能滿足現(xiàn)實(shí)的需要。目前電源技術(shù)已逐步發(fā)展成為一門(mén)多學(xué)科互相滲透的綜合性技術(shù)學(xué)科,它對(duì)現(xiàn)代通訊、電子儀器、計(jì)算機(jī)、工業(yè)自動(dòng)化、電力工程、國(guó)防及某些高新技術(shù)提供高質(zhì)量、高效率、高可靠性的電源起著關(guān)鍵作用。此單片機(jī)具有的性能穩(wěn)定,功能完備,成本低等特點(diǎn)。4 路 PWM,8 路高速 10 位 A/D 轉(zhuǎn)換。它是利用單片機(jī)的在控制方面的突出優(yōu)點(diǎn),并綜合運(yùn)用現(xiàn)代檢測(cè)技術(shù)、微控制技術(shù)、數(shù)據(jù)處理和通信技術(shù)以及 LCD 顯示技術(shù)而設(shè)計(jì)的。 本文第一章介紹了基于 STC12C5616AD 單片機(jī)的數(shù)控恒流電流源的主要性能指標(biāo)及其工作原理,主要介紹了數(shù)控恒流電流源的硬件設(shè)計(jì)總體方案;第二章主要介紹了數(shù)控恒流電流源的硬件電路設(shè)計(jì),重點(diǎn)介紹了單片機(jī)控制模塊、電源,恒流源電路模塊、LCD 顯示模塊、8 位獨(dú)立鍵控等;第三章主要介紹了基于STC12C5616AD 單片機(jī)的數(shù)控恒流電流源的軟件設(shè)計(jì),軟件設(shè)計(jì)部分采用模塊化設(shè)計(jì),重點(diǎn)介紹了系統(tǒng)初始化,對(duì)鍵盤(pán)輸入的掃描以及 LCD 液晶顯示軟件設(shè)計(jì);第四章主要對(duì)整個(gè)硬件設(shè)計(jì)進(jìn)行了部分軟件調(diào)試,并做了結(jié)果分析。第 1章 數(shù)控恒流電流源的設(shè)計(jì)要求與方案隨著人們生產(chǎn),生活水平的不斷提高,單片機(jī)在日常電子產(chǎn)品中的應(yīng)用越來(lái)越廣泛,充電器作為相應(yīng)的充電設(shè)備,其需求及應(yīng)用也在不斷增加,微電子及單片機(jī)技術(shù)的快速發(fā)展,計(jì)算機(jī)和通訊技術(shù)的發(fā)展,給電力電子技術(shù)提供了廣闊的發(fā)展前景,同時(shí)也給電源提出了更高的要求。傳統(tǒng)的恒流電流源存在速度慢、高功耗、易受干擾和可靠性低等缺點(diǎn),STC12C5616AD 單片機(jī)作為一般系統(tǒng)控制核心。通過(guò)“數(shù)控恒流電流源的設(shè)計(jì)”的設(shè)計(jì)過(guò)程,結(jié)合所學(xué)的課程,掌握目前數(shù)控恒流源的一般設(shè)計(jì)要求、工程設(shè)計(jì)方法、開(kāi)發(fā)及設(shè)計(jì)工具的使用方法,通過(guò)這一設(shè)計(jì)實(shí)踐過(guò)程,鍛煉動(dòng)手能力和分析、解決問(wèn)題的能力;積累經(jīng)驗(yàn),培養(yǎng)按部就班、一絲不茍的工作和對(duì)所學(xué)知識(shí)的綜合應(yīng)用能力。本文中的基于 STC12C5616AD 單片機(jī)的數(shù)控恒流電流源就是針對(duì)這一需求而設(shè)計(jì)的。在此設(shè)計(jì)過(guò)程中,我們綜合分析了不同用戶在不同場(chǎng)合的不同需求,并且借鑒了國(guó)內(nèi)外同類(lèi)設(shè)計(jì)的經(jīng)驗(yàn),經(jīng)研究之后,采用了具有指令代碼完全兼容傳統(tǒng) 8051 的 STC12C