{"title":"Development of SPI Driver for Vehicle Controller","authors":"Bing Zhou, Chun Xiao, Jing Chen, Xingpeng Sun","doi":"10.1109/ATEEE54283.2021.00010","DOIUrl":null,"url":null,"abstract":"With the development of automotive electronics, the Serial Peripheral Interface (SPI) is widely used in the communication between the functional chip of the vehicle controller and the Microcontroller Unit (MCU), playing an important role. To improve the efficiency of SPI driver development, the Automotive Open System Architecture (AUTOSAR) specification is adopted to develop an SPI driver for the whole vehicle controller in this paper. The main work includes the determination of SPI driver data type, file structure, and function realization of the driver. The data transmission test is carried out on the vehicle controller hardware platform with Electrically Erasable Programmable read only memory (EEPROM) as the slave device. In the test, the communication operation is executed every 1ms, and the transceiver data is executed for 7200s. It is verified that the driver can not only realize the communication function but also has high stability. The driver simultaneously realizes the decoupling of hardware and software and has high reusability. The driver can not only realize the communication function with high stability but also realize the decoupling of hardware and software, with high reusability. For different upper software, the driver can be run simply by changing the pin configuration and base address, which has certain engineering practical value.","PeriodicalId":62545,"journal":{"name":"电工电能新技术","volume":"10 1","pages":"6-9"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"电工电能新技术","FirstCategoryId":"1087","ListUrlMain":"https://doi.org/10.1109/ATEEE54283.2021.00010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
With the development of automotive electronics, the Serial Peripheral Interface (SPI) is widely used in the communication between the functional chip of the vehicle controller and the Microcontroller Unit (MCU), playing an important role. To improve the efficiency of SPI driver development, the Automotive Open System Architecture (AUTOSAR) specification is adopted to develop an SPI driver for the whole vehicle controller in this paper. The main work includes the determination of SPI driver data type, file structure, and function realization of the driver. The data transmission test is carried out on the vehicle controller hardware platform with Electrically Erasable Programmable read only memory (EEPROM) as the slave device. In the test, the communication operation is executed every 1ms, and the transceiver data is executed for 7200s. It is verified that the driver can not only realize the communication function but also has high stability. The driver simultaneously realizes the decoupling of hardware and software and has high reusability. The driver can not only realize the communication function with high stability but also realize the decoupling of hardware and software, with high reusability. For different upper software, the driver can be run simply by changing the pin configuration and base address, which has certain engineering practical value.