詳細(xì)介紹工控軟件組態(tài)王與單片機(jī)多機(jī)串口通訊的設(shè)計(jì)原理。分析組態(tài)王提供的直接與單片機(jī)串口通信方法的優(yōu)點(diǎn),給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機(jī)多機(jī)串口通訊的原理,給出程序設(shè)計(jì)流程與思路。
Abstract:
In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
以89S52單片機(jī)和EP1C6Q240C8型FPGA為控制核心的多功能計(jì)數(shù)器,是由峰值檢波、A/D轉(zhuǎn)換、程控放大、比較整形、移相網(wǎng)絡(luò)部分組成,可實(shí)現(xiàn)測(cè)量正弦信號(hào)的頻率、周期和相位差的功能。多功能計(jì)數(shù)器采用等精度的測(cè)量方法,可實(shí)現(xiàn)頻率為1Hz~10MHz、幅度為0.01~5Vrms的正弦信號(hào)的精確測(cè)頻,以及頻率為10Hz~100kHz、幅度為0.5~5Vrms的正弦信號(hào)精確測(cè)相。液晶顯示器能夠?qū)崟r(shí)顯示當(dāng)前信號(hào)的頻率、周期和相位差。該多功能計(jì)數(shù)器精度高,界面友好,實(shí)用性強(qiáng)。
Abstract:
A multi-function counter,which uses89S52MCU and EP1C6Q240C8FPGA as a control core,consists of peak detector,A/D conversion,program-controlled amplification,compared shaping and phase-shifting network part.The counter measures the frequency,period and phase of sinusoidal signal.With the equal precision method,the multi-function counter achieves the precise frequency measurement of the sinusoidal signal which its frequency is from1Hz to10MHz,its amplitude is from0.01Vrms to5Vrms,as well as the accurate phase measurement of the sinusoidal signal which its frequency is from10Hz to100kHz,its amplitude is from0.5Vrms to5Vrms.The LCD monitor real-time displays the frequency,period and phase difference of current signal.The multi-function counter features high precision,friendly interface,and strong practical.
介紹一種多功能音樂播放器,它是以AT89S52單片機(jī)為核心,并輔有一些外圍器件,采用匯編語言編寫程序,實(shí)現(xiàn)多功能音樂播放,歌曲自動(dòng)循環(huán)播放和使用琴鍵自編曲目功能。此外,彩燈顯示歌曲節(jié)奏,按鍵跳轉(zhuǎn)到喜愛曲目,液晶顯示當(dāng)前播英文曲目。并給出了系統(tǒng)軟硬件設(shè)計(jì)。
Abstract:
It introduces a multifunctional music player,taking AT89S52 single-chip microcomputer as hardware control core and using some peripheral elements.Programmes are compiled in assembly language to act as expected.There are two functional modes in this system.One is to make the music play automatically and consecutively,the other is to compose new songs through keys.In addition,lights show the pace of music and the English names can be displayed in the liquid crystal screen.With perfect combination of hardware and software,the music player can meet many music lovers’needs for multifunctional music player.And the hardware and software of the system are given.