實時時鐘是微機保護裝置的重要部件,在討論PCF8583結構與功能的基礎上,提出采用dsPIC33F系列微處理器與串行I2C時鐘PCF8583的接口設計方案,給出了相應的接口電路與軟件流程。該設計方案結構簡單,可靠性高,開發周期短,具有一定的實用與參考價值。所設計的微機保護裝置已投入現場運行,效果良好。
Abstract:
Real-time clock chip is an important part in microcomputer protection device.Based on discussing the structure and function of PCF8583,a new interface scheme which uses dsPIC33F microprocessor and serial clock chip(I2C)PCF8583is proposed.The method of the circuit design and the main software flow are introduced in this paper.The scheme has simple structure,higher reliability and shorter exploitation cycle,so has definite practicality or reference value.The microcomputer protection device has been put into operation with better effects.
介紹了當前普通標記機控制系統現狀及其存在缺點,給出氣動標記機及相頻修正PWM模式的工作原理。采用ATmega16單片機和USB轉換RS232接口器件CH341T實現驅動控制系統與PC的實時通訊,標記控制系統可升級到USB接口。采用基于ATmega16的相頻修正PWM替換555振蕩電路產生的PWM,可直接通過軟件調整PWM信號。使用達林頓三極管TIP122替代直流繼電器驅動高頻電磁閥,使得電磁閥驅動電路簡單,成本低廉。該控制系統已成功應用于氣動標記機。
Abstract:
In this paper,the actuality and demerit of the common gas marking machine control systems are described.The operation principle of the gas marking machine and the phase and frequency correct PWM of ATmega16is introduced.The real-time communication between the driving control system and PC by CH341T which its function is translated USB to RS232is realized,the control systems is updated grade to USB interface.The PWM signal can be adjustable by software for the555surge circuit was substituted by the phase and frequency.The high frequency electromagnetic value’s driving circuit by DC relay is replaced by TIP122,therefore,the circuit is become simple and the cost cheap.The control systems has been widely used in gas marking machine.
在汽車發動機起動時,若發動機起動后起動機不能及時斷電,將會燒毀起動機或損壞飛輪齒環;若變速器不在空檔位置起動,則起動機的瞬間動力將使汽車位移,還可能引起交通事故和人身安全。為此介紹一種利用NXP P89LPC901單片機控制的汽車起動保護控制器,通過檢測汽車起動開關、變速箱檔位、發動機轉速,實現對汽車發動機起動過程檢測和保護。起動保護控制器在發動機起動過程中通過采用逐個關閉打開負載系統,解決汽車發動機過程中因起動電流大而對汽車電源的沖擊影響,延長了電瓶壽命。
Abstract:
When the automotive engine is started, the engine start motor and flywheel gear may be damaged, even traffic accidents and personal safeties may be caused by wrong operation or other factors.In order to ensure the automotive engine can be started normally and safely,it is necessary that the protecting measures and methods are considered in the automotive electrical control system.This paper introduces a kind of the automotive engine starting protect controller based on NXP P89LPC901 MCU.The controller can protect the engine starting process by detecting the starter key switch,transmission stall and engine speed.Through the use of close and open load system,the controller can solve the impact on automotive power because of the high-current load in the process of the automobile engine starting, and extend battery life.
MMC/SD卡以其優越的性能,在單片機嵌入式設備中得到廣泛應用。將MMC/SD卡作為外部掉電存儲介質應用于音頻信號發生器中,通過8051F330單片機上的SPI接口,實現單片機—MMC/SD卡的存儲擴展,設計了此硬件平臺上的MMC/SD卡的單片機驅動程序,并給出了相應的程序代碼,滿足音頻信號發生器的大容量存儲要求。
Abstract:
MMC/SD card is more and more widely used in the single chip embedded devices for their excellent performances.This article introduces the application of MMC/SD card as the external power down storage medium in audio signal generator. The extension technology especially for storage of single chip-MMC/SD card via SPI interfaces in 8051F330 single chip, including designs single chip drive program of MMC/SD card based on hardware platform,and also gives the key coding of the program. The implementation of big capacity storage is meaningful in audio signal generator.
采用單片機AT89C2051實現溫度測量與控制,鍵盤和顯示電路實現溫度的設定、修改、清零以及當前溫度值的顯示,并對溫度超過上下限進行報警。闡述了該系統設計的硬件和軟件設計。
Abstract:
The system of temperature measuring and controling is realized based on AT89C2051.The keyboard and display circuit is designed,which can be used for setting and modifying temperature value,resetting and displaying the present temperature value.At the same time the warning circuit is also designed in the system,which can deal with the alarm when temperature exceeds the upper limit and the lower limit.The hardware and software design of the system are explained.
為了解決磁放大器性能測試過程中,需要對其供給不同數值恒定電流的問題,設計了一種基于DAC7512和單片機的數控恒流源系統。該系統采用AT89C51作為主控器件,將計算機發送的電流控制字命令轉換為D/A轉換器控制字,通過模擬SPI通信接口,寫D/A控制字到DAC7512,從而控制其輸出相應數字電壓值,經差動縮放電路、電壓/電路變換電路和功率驅動電路,最后輸出恒定電流。實驗結果表明,恒流源輸出電流調節范圍為-45~+45 mA、精度為±0.1 mA,分辨率達0.024 4 mA,具有應用靈活,外圍電路簡單,可靠性高的特點。該數控直流恒流源也可為相關產品的測試系統研發提供參考。
Abstract:
In order to solve the need to supply different values constant current for the magnetic amplifier in testing process, numerical control constant current source system was designed based on DAC7512 chip and microcontroller technology. The system used the AT89C51 as the main chip, which can convert the current control word from computer into to D/A control words. And the system wrote D/A control word into the DAC7512 chip to control the output voltage value by the SPI communication interface, which can output corresponding constant current figures by scaling circuit, the V/I converter and power drive circuit. Experimental results show that the current source output current adjustment range is -45~+45mA, accuracy is ± 0.1mA, and resolution ratio is 0.024 4mA
出了一種利用ATmega8單片機對ISD2500系列語音芯片進行控制的智能語音系統,此系統使用靈活,易于功能升級,具有良好的應用前景。提供了硬件連接電路和關鍵源程序。
Abstract:
An intelligent voice system using ISD2500 series voice chips based on ATmega8 MCU is described.This system is flexible and easy to upgrade for users,and it has pretty good using foreground. The circuit diagram and the key program are also provided.
在介紹基于MSP430單片機的指紋保險柜工作原理的基礎上,從系統軟件設計的角度出發,詳細介紹了指紋保險柜軟件的總體分析過程、程序結構的設計以及代碼的編寫,給出了按鍵管理流程和部分源代碼。
Abstract:
On basis of the operating principle of MSP430 microcontroller-based fingerprint safe,the general analyzing process,program designing and code compiling of the fingerprint safe software are introduced mainly,and the key-press flows chart and some codes according to the system software designing are put forward.
利用Atmel公司的ATmega168微處理器,采用A/D轉換方式來實現按摩椅控制器的鍵盤接口,通過在硬件電路中巧妙地選擇電阻,在軟件設計中采用數字濾波、二分法和區間鑒定等方法,靈敏可靠地實現了按摩椅中30個按鍵的處理。給出了硬件電路設計和軟件設計思想以及部分匯編代碼。
Abstract:
This paper chooses A/D conversion method to realize the keyboard interface of the controller by using ATmega168 microchip from Atmel Company.It accomplishes 30-key dealing sensitively and reliably in massage chair through skillfully selecting resistors in hardware circuit and using digital filter,dichotomy and area-judging method in software design.The hardware design circuit, software design idea and partly assembles code are presented mainly.
提出一種基于單片機AT89C51SND1C的MP3播放系統的設計方案。單片機集成了專用的解碼器,使用K9F1208閃存作為外存儲器,放音電路采用CS4330,存儲文件通過播放器上的USB接口設備從PC機上直接下載,液晶顯示采用LCD1602。方案設計簡單,性價比高,低功耗,易擴展。由于采用的是通用單片機實現的,可以很容易地移植到其他微控制器系統中,有很強的市場競爭能力和實用價值。
Abstract:
A MP3 player design based on microchip AT89C51SND1C was presented, which used K9F1208 Flash chip as the memory circuit and used CS4330 as play chip. Storage files were download from PC through USB interfaces player on the device,and the LCD/602 was used as display screen. This system had characteristics of simple design,low power,easy expand,low cost and high recognition. Using of universual microchip make it easy to transplant to other microcontrol system,and have strong market competitiom and practical value.