Font Size: a A A

Design Of Communication Programming For DSP And Application In The Motor Monitoring

Posted on:2015-10-24Degree:MasterType:Thesis
Country:ChinaCandidate:T LiuFull Text:PDF
GTID:2272330422985911Subject:Mechanical engineering
Abstract/Summary:PDF Full Text Request
Smart devices like DSP which are mostly full-duplex serial communication need its owncommunication applications. The key of writing communication applications lies incommunication protocol. The study object of this thesis is TMS320F2812DSP and this designestablished a communication system of TMS320F2812by Modbus communication protocol.The communication system eventually applied to a motor monitoring system which consistsof a brushless DC motor, TMS320F2812and eviewET070HMI.This thesis respectively expounds the development situation and tendency of DSP andModbus protocol in home and abroad at first.Then the purpose and content of this study wereanalyzed and the composition of the communication system, Modbus transmission mode,transaction processing, error detection methods and so on were introduced in detail.Then this paper analysises and designs the TMS320F2812module communicationsystem and draws each module`s flow chart. The system parameters, includingTMS320F2812serial communication interface, GPIO universal serial, PIE interrupt vectortable, EV time management, were initialized by complying with the Modbus format standardstrictly and the communication datas were dealed with, such as receiving data fram, analysing,testing, processing and handling abnormal response.Designing the t function code program on the Modbus protocol, including reading coilstate function, reading holding register, forcing a logical coil on and off, writing a holdingregister, forcing a sequence of logic coils on and off, keeping the specific binary values into asequence of registers.Design data receiving interrupt subroutine and send interrupt subroutine.After the completion of the program design for all modules, the result of data sendingand receiving can be determinated whether it is correct via a serial port assistant. When it iscorrect, the TMS320F2812communication program will be applied to motor monitoringsystem. The built-in eviewET070HMI follows the drive program of the Modbuscommunication protocol, so it can communicate with the upper PC TMS320F2812directlyand design the monitoring interface of the eviewET070. It can monitor and control thestart-stop, steering, speed, phase voltage, phase current and so on of the motor. Meanwhile, the built-in eviewET070HMI can also set the communication parameters, create internalstorage for monitoring system, address mapping for monitoring and control variables and soon.Finally, debug the motor monitoring system online in laboratory. We show thecommunication effect betweeen eviewET070HMI and TMS320F2812in the form of chart.The experimental results show that the TMS320F2812communication program based onModbus protocol is real-time and reliable. In the end, the program successfully was used inthe motor monitoring system, which effectively solve the problem of the communication ofthe system.
Keywords/Search Tags:Serial port communication, Modbus protocol, TMS320F2812, EviewET070, Man-machine interface
PDF Full Text Request
Related items