现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2013年
14期
48-50,54
,共4页
双微控制器%异步FIFO%双向实时通信%中断冲突
雙微控製器%異步FIFO%雙嚮實時通信%中斷遲突
쌍미공제기%이보FIFO%쌍향실시통신%중단충돌
dual microprocessor%asynchronous FIFO%two-way real-time communication%interruption conflict
在工业生产中,产品了获得工业设备信息,需要实时与计算机进行通信。工业设备获取传感器的信息,需要RS 485,SPI,CAN等接口实时与传感器设备通信。当二者同时时,微控制器产生中断冲突,造成设备数据丢失或控制计算机的通信死机。为了保证产品的稳定性,提出了一种基于双微控制器,并同时利用异步FIFO实现双向通信的速度匹配和数据交换。实验证明该方法有效地解决双向实时通信产生的通信的中断冲突,保证工业设备的稳定性和数据通信的准确。
在工業生產中,產品瞭穫得工業設備信息,需要實時與計算機進行通信。工業設備穫取傳感器的信息,需要RS 485,SPI,CAN等接口實時與傳感器設備通信。噹二者同時時,微控製器產生中斷遲突,造成設備數據丟失或控製計算機的通信死機。為瞭保證產品的穩定性,提齣瞭一種基于雙微控製器,併同時利用異步FIFO實現雙嚮通信的速度匹配和數據交換。實驗證明該方法有效地解決雙嚮實時通信產生的通信的中斷遲突,保證工業設備的穩定性和數據通信的準確。
재공업생산중,산품료획득공업설비신식,수요실시여계산궤진행통신。공업설비획취전감기적신식,수요RS 485,SPI,CAN등접구실시여전감기설비통신。당이자동시시,미공제기산생중단충돌,조성설비수거주실혹공제계산궤적통신사궤。위료보증산품적은정성,제출료일충기우쌍미공제기,병동시이용이보FIFO실현쌍향통신적속도필배화수거교환。실험증명해방법유효지해결쌍향실시통신산생적통신적중단충돌,보증공업설비적은정성화수거통신적준학。
In the industry production,the real?time communication with computer is needed to get the information of the production equipment,and RS 485,SPI and CAN ports are needed for real?time communicate with sensor equipment to get the information from sensors. When the two?way communication appears at the same time,the microprocessor generates interruption conflict. This may cause data loss or computer die. In order to guarantee the product quality,a method based on dual micropro?cessor is put forward,in which the asynchronous FIFO is used to realize the rate matching and the data exchanging of two?way communication. The experiment proved that the method can eliminate the interruption conflict in the two?way real?time communi?cation effectively,and ensure the stability of industry production and veracity of data communication.