You are here

Is possible to simulator SPI slave | Cypress Semiconductor

Is possible to simulator SPI slave

Summary: 1 Reply, Latest post by scutifer on 10 Sep 2014 03:40 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
facos's picture
23 posts

can i use GPIO to simulator SPI slave

i use GPIO[50] and GPIO[51] to get C8051F380 SPI master CLK and DAT

just only get two signal than use GPIO[52] and GPIO[57] to output the same signal.

but when i get CLK at 0us, i output the CLK' at 17us later.

how can i set this more fast.



scutifer's picture
Cypress Employee
134 posts

 I'm not sure how you samle the clock and then latch the data. You can try setting up an interrupt on the CLK line and in the GPIO callback, just read the value of the DAT pin and shift it into some variable.


You can also try doing the loopback in the same callback. And directly manipulate the registers to read/write to GPIOs for faster accesses.

Log in to post new comments.