Beta
367979

A State Machine-Based Approach for Implementing SPI Communication on FPGAs

Article

Last updated: 28 Dec 2024

Subjects

-

Tags

Engineering Sciences.

Abstract

The Serial Peripheral Interface (SPI) is a widely used synchronous serial communication bus that facilitates communication between a master device, and one or more subordinate devices, referred to as slave devices. This article outlines the conceptualization and design procedures of an interface for the SPI communication bus on a Field Programmable Gate Array (FPGA) platform, using the LabVIEW programming environment alongside the LabVIEW FPGA module. The structure and operation of the SPI communication bus are presented, along with its timing structure and four distinct operational modes. The implementation of SPI bus communication on the FPGA is achieved via the use of the state machine methodology.
With the state-machine SPI technique, multiple devices can be managed simultaneously through a single port. Additionally, the clock frequency can be adjusted online, making the system adaptable and flexible for different tasks. LabVIEW is used to implement the SPI module circuit, which is then mapped onto the National Instruments Single-Board (NI SbRIO-9631) FPGA board. The L3G4200D gyroscope sensor is used to conduct testing on the protocol and verify the effectiveness of the state machine technique. The results of this study demonstrate the successful implementation of the SPI communication bus interface on an FPGA using LabVIEW and the LabVIEW FPGA module. The module exhibits versatility, efficiency, and the ability to communicate with a wide range of devices.

DOI

10.21608/bjas.2024.280338.1384

Keywords

Serial Peripheral Interface (SPI), LabVIEW, Serial Communication, FPGA, NI SbRIO-9631

Authors

First Name

Ayman

Last Name

Shama

MiddleName

-

Affiliation

Department of Mechanical Engineering, Benha Faculty of engineering, Benha University, Benha, Egypt

Email

ayman.shamah@bhit.bu.edu.eg

City

-

Orcid

0009-0002-2358-5569

First Name

Manar

Last Name

Lashin

MiddleName

-

Affiliation

Department of Electrical Engineering, Benha Faculty of Engineering, Benha University, Benha, Egypt

Email

manar.lashin@bhit.bu.edu.eg

City

-

Orcid

-

First Name

Ayman

Last Name

Nada

MiddleName

-

Affiliation

Department of Mechatronics and Robotics Engineering, Egypt-Japan University of Science and Technology, Alexandria, Egypt

Email

ayman.nada@ejust.edu.eg

City

-

Orcid

-

Volume

9

Article Issue

5

Related Issue

46897

Issue Date

2024-05-01

Receive Date

2024-05-02

Publish Date

2024-05-27

Page Start

127

Page End

134

Print ISSN

2356-9751

Online ISSN

2356-976X

Link

https://bjas.journals.ekb.eg/article_367979.html

Detail API

https://bjas.journals.ekb.eg/service?article_code=367979

Order

13

Type

Original Research Papers

Type Code

1,647

Publication Type

Journal

Publication Title

Benha Journal of Applied Sciences

Publication Link

https://bjas.journals.ekb.eg/

MainTitle

A State Machine-Based Approach for Implementing SPI Communication on FPGAs

Details

Type

Article

Created At

28 Dec 2024