摘要
[目的]为处理舰船能量管理系统的多个数字量信号,需实时获取并下达多个底层被控电站的指令与状态信号,进而对各个底层控制器的接触器、继电器、断路器及能量链切换开关依次实施有效的控制。[方方法]将STM32F407作为微控制器,设计基于I~2C总线的双级隔离系统,建立高级精简指令集机器(ARM)、I~2C总线与扩展I/O端口芯片的硬件架构。通过软件模拟I~2C总线时序并利用ARM控制器的2个通用端口,可以方便地扩展128路I/O端口并确保I~2C总线的实时性与可靠性。[结果]ARM控制器能够按照既定的能量管理策略对各个底层控制器的I/O端口进行有效、可靠地扩展与实时控制。[结论]在工程应用方面,该I/O端口扩展方法具备一定的推广与参考价值。
[Objectives] This paper aims to implement the multiple digital signal processing of ship energy management systems. It achieves the real-time acquisition and delivery of instructions and state signals for multiple power stations, thereby enabling the efficient and sequential control of the relays,indicator lamps and energy chains of power stations. [Methods] Based on the STM32 F407 microcontroller, a double-isolation system is designed for the I~2 C bus, the topology constructed via the Advanced RISC Machine(ARM), I~2 C bus and I/O expander chip, and the I~2 C bus timing imitated by two general purpose I/O ports. This not only easily extends the 128 I/O port but ensures the effectiveness and real time property of the I~2 C bus. [Results] This ARM controller can reliably control all the I/O ports of the underlying controllers in real time according to the established energy management strategy.[Conclusions] This results of this research can be applied to other I/O port expansion engineering practices, giving it high application and promotion value.
引文
[1]刘芮辰,李树江,刘帅.基于IIC和云服务器的智能家居控制系统设计[J].计算机测量与控制,2017,25(3):98-100.Liu R C,Li S J,Liu S.Design of smart home control system based on IIC and cloud server[J].Computer Measurement&Control,2017,25(3):98-100(in Chinese).
[2]李仙,宋晓梅.IIC总线在移动智能终端领域中的应用[J].电子设计工程,2013,21(21):114-116,119.Li X,Song X M.Application of IIC bus in smart phone design[J].Electronic Design Engineering,2013,21(21):114-116,119(in Chinese).
[3]马云,石秀华,贺天鹏.IIC总线的四路舵机控制系统研究[J].机械与电子,2012(5):35-39.Ma Y,Shi X H,He T P.Study on four servo control system on IIC bus[J].Machine&Electronics,2012(5):35-39(in Chinese).
[4]雍文.基于IIC总线的温度补偿晶体振荡器数字控制逻辑设计[D].武汉:华中科技大学,2010.Yong W.Digital control design of temperature compensating crystal oscillator based on IIC bus[D].Wuhan:Huazhong University of Science and Technology,2010(in Chinese).
[5]李晶,吕肖晗.基于I2C总线的多MCU系统设计[J].现代电子技术,2015,38(9):16-18,24.Li J,LüX H.Design of multi-MCU system based on I2C bus[J].Modern Electronics Technique,2015,38(9):16-18,24(in Chinese).
[6]王炳文,段小虎,张婷婷.基于可编程逻辑的I2C总线控制器设计及应用[J].工业控制计算机,2017,30(5):21-22.Wang B W,Duan X H,Zhang T T.The design and application of I2C controller based on PLC[J].Industrial Control Computer,2017,30(5):21-22(in Chinese).
[7]宋杰,陈岚,冯燕.一种I2C总线控制器的接口设计[J].信息与电子工程,2010,8(4):467-470.Song J,Chen L,Feng Y.An interface design for I2Cbus master[J].Information and Electronic Engineering,2010,8(4):467-470(in Chinese).
[8]肖建辉,袁易君.基于LPC2106的IIC总线E2PROM的应用[J].微计算机信息,2010,26(17):184-185,178.Xiao J H,Yuan Y J.The application of IIC E2PROMbased on LPC2106[J].Microcomputer Information,2010,26(17):184-185,178(in Chinese).
[9]张怡然.I2C总线、JTAG总线在电源管理类芯片测试中的应用[D].上海:复旦大学,2010.Zhang Y R.Application of I2C and JTAG buses to test of power management unit chips[D].Shanghai:Fudan University,2010(in Chinese).I/O 149