SPI Slave

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times

SPI Slave

Post by Mathy »

Hello !

Is someone already changed the existing SPI macro to make a SPI slave ?

It will be very usefull to me :)

Thank you !

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: SPI Slave

Post by Enamul »

Hi
I am not quite clear what you are looking for! You can easily use existing SPI to communicate data to&from slave SPI device just need to know some basic bits about the slave device..like address, clk transition,SPI clock polarity and supported speed.
Enamul
University of Nottingham
enamul4mm@gmail.com

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times

Re: SPI Slave

Post by Mathy »

Oh sorry, my english is still so bad :mrgreen:

I have already use the existing SPI macro to communicate with digital potentiometer for exemple. No problem for that.
But I would like to use SPI in slave mode to share data between two MCU or more so I need one MCU with a master SPI and some MCU with slave SPI.

Is it more clear ?

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: SPI Slave

Post by Enamul »

OK. Thanks. That's much clear now. If you don't need to strict to SPI you can use I2C to communicate between PIC. Here is a link for that where the code is mainly written for FCv4 but can be used for FCv5 with some correction for some of the chips.
http://www.matrixmultimedia.com/mmforum ... f=7&t=7081
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply