Psoc 4 - SPI Master - to - SPI Slave Data Transfer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Hi all,

   

I am having two nos PSoC4 Prototype Board (4200) In that i am trying to implement SPI Master - Slave communication.

   

Board 1 - Added SPI Master Blocks and keep reading the data in a while.

   

Board 2- Added SPI Slave Blocks and keep sending the data.

   

anyone have idea in this  how do i can make it work?

   

 

   

 

   

Thanks,

   

Ashok r

0 Likes
14 Replies
Anonymous
Not applicable

It would be better to tell us what is the problem you encountered?

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

The problem is , i didnt know how to goahead with SPI interface.

   

I have created the SPI master block in one of Kit. And created the SPI slave block in another kit and now i connected both the kits (clk,mosi,miso,ss) and sending data from Master to Slave , but didnt find the way to receive the values in slave. if you give some solution to test SPI protocal it would be great.

   

Thanks,

   

Ashok r

0 Likes
Anonymous
Not applicable

 It would be easier if you have a known working master or slave (a serial flash chip,RTC...).

   

else if you have logic analyzer to verify the signal it ma help.

   

There are examples from the 100 project in 100 days that you can refer to.

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Thank you!

   

I did not have analyzer. I am having nrf24l01 RF Module so let me try with this 1st.

   

Thanks,

   

Ashok r

0 Likes
MaCa_301471
Level 1
Level 1
First like given Welcome!

 Hi,

   

While using a couple of nrf24l01 myself, I had lots of details/issues. Using one of the SCBs to talk with this slave is tricky. The main issue is that you cannot let the TX buffer starve ever, otherwise the CSN bit will rise and the radio dongle wont "listen" anymore data. Keep in mind that with the SCB you will not have direct control of the CSN signal. One more thing, you should have a a big TX/RX buffer to talk with this slave. My number is at least 33bytes each, to avoid issues regarding the buffers. 33 bytes are (i belive.. not tested ) the biggest string of data you will have to exchange with these little deamons 🙂

   

I hope this can help you,

   

Regards,

   

Marco

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Hey , thanks for information,

   

I am waiting for my DSO , after that i have plan to start working on this

   

 

   

Thanks,

   

Ashok r

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Here is a cheap logic analyzer that includes serial decode. I purcdhased

   

2 to have around, work pretty good. Only drawback is inputs are not protected

   

against over voltage, so you might want to make up a small board, 1 R, 2 diodes or

   

zeners, for each input unless you are certain you will never make a mistake.

   

 

   

    

   

          http://www.ebay.com/itm/Compatible-With-Saleae-USB-Logic-24MHz-8-Channel-Logic-Analyzer-/35114286811...

   

 

   

Regards, Dana.

   

 

   

Image result for diode protection cmos inputs image

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Dana,

   

I am looking for branded one , one time investment  going for 100MHZ DSO 2 channel. Can yu check this link and tell me how good it is?

   

www.testequipmentdepot.com/tektronix/oscilloscope/digital-storage-oscilloscope-tbs1102b.htm

   

 

   

Thanks,

   

Ashok r

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Tek, Rigol, LeCroy all have scopes in this market, all well made.

   

 

   

Generally I make up a matix in Excel and compare on that basis.

   

 

   

Key pts

   

 

   

1) Screen resolution, brightness, led backlight

   

2) Record capture depth

   

3) Sampling rate, all channels work simul at max rate

   

4) Control layout, one knob too many compounded functions......

   

5) Look at last firware update date, eg. are FW updates still being released.

   

Generally, not always, they add capability.

   

5) Display update rate of scope digitizing

   

6) Battery capability to operate scope, to truly "float" the scope off the AC mains

   

7) Math functions, the number and diversity of them

   

😎 FFT

   

 

   

You can google the scope for youtube and manufacturer reviews.

   

 

   

Regards, Dana.

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Sure , Thank you Dana!

   

Please chek my link also

   

 

   

Thanks,

   

Ashok r

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

You my want to rent it so you can keep up with the technoligy.

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

I purchased DSO  with Frequency range upto 100MHZ 

   

Thanks,

   

Ashok r

0 Likes
Anonymous
Not applicable

 Hi #ok,

   

I too am trying to establish an SPI master-slave commn between 2 such kits.

   

Could you do it? If yes can you please send me the project and snapshots?

   

Thanks,

   

Shreesha

0 Likes
AsRa_264661
Level 4
Level 4
50 replies posted 25 replies posted 10 likes received

Hi Shreesha,

   

I did'nt tried after that but i have to.

   

once it works for me,let you know.

   

 

   

Thanks,

   

Ashok r

0 Likes