SPI Slave Reply with more bytes

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
petrus88
Posts: 30
Joined: 24 Oct 2019 12:10

SPI Slave Reply with more bytes

#1 Post by petrus88 » 06 Feb 2020 16:48

Hello To all,

i have to use a board as a SPI_Slave, and i have to reply at master with a buffer of 5 byte.

I didn't quite understand the flow for a slave response.

do I have to load my SPIxBUF at every read request of the master?
and therefore I have to create a sort of loop that awaits these read requests?

There are any example code?

BR
P

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: SPI Slave Reply with more bytes

#2 Post by stefan.filipovic » 19 Feb 2020 14:35

Hi,

You may find this project useful:
https://libstock.mikroe.com/projects/vi ... party-pack

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for PIC32 General”