Invention Grant
US09524258B2 Method for controlling multiple CAN interfaces through single SPI bus
有权
通过单个SPI总线控制多个CAN接口的方法
- Patent Title: Method for controlling multiple CAN interfaces through single SPI bus
- Patent Title (中): 通过单个SPI总线控制多个CAN接口的方法
-
Application No.: US14390983Application Date: 2013-04-19
-
Publication No.: US09524258B2Publication Date: 2016-12-20
- Inventor: Feihong Ye , He Wang , Minying Li
- Applicant: Guangdong Zhicheng Champion Group Co., LTD.
- Applicant Address: CN
- Assignee: Guangdong Zhicheng Champion Group Co., LTD.
- Current Assignee: Guangdong Zhicheng Champion Group Co., LTD.
- Current Assignee Address: CN
- Agency: Polster Lieder
- Priority: CN201210593317 20121229
- International Application: PCT/CN2013/074403 WO 20130419
- International Announcement: WO2014/101361 WO 20140703
- Main IPC: G06F13/24
- IPC: G06F13/24 ; G06F13/16 ; H04Q9/00

Abstract:
The disclosure is applied to a field of communication technologies and relates to a method for controlling multiple CAN interfaces through a single SPI bus. The method includes: when a reception mailbox of any of a plurality of CAN chips finishes receiving data on a CAN bus, triggering an interrupt by the CAN chip to deliver an interrupt signal; configuring the CAN chip triggering the interrupt through the SPI bus to disable interrupts in the CAN chip, so that the CAN chip exits the interrupt; inquiring the data received by the reception mailboxes of each CAN chip triggering the interrupt, reading the data into a memory buffer of an MCU through the SPI bus, setting a data identifier in the memory buffer of the MCU, and enabling interrupts in the CAN chip triggering the interrupt to allow the CAN chip triggering the interrupt to continue receiving data; and detecting whether the data identifier is present in the memory buffer of the MCU by an application program on the MCU, and copying the data from the memory buffer of the MCU to a memory buffer of the application program if the data identifier is present in the memory buffer of the MCU; otherwise, returning a result as a failure. The invention reads the data into the MCU upon interrupts generated by CAN chips, thereby reducing costs without affecting communication.
Public/Granted literature
- US20150089104A1 METHOD FOR CONTROLLING MULTIPLE CAN INTERFACES THROUGH SINGLE SPI BUS Public/Granted day:2015-03-26
Information query