Change SPI clock polarity between a WRITE and a READ instruction #7594
Replies: 1 comment
-
Posted at 2018-09-18 by benoit Any idea ? Posted at 2018-09-18 by @allObjects not really, because this is odd... may be it saves a line or a few bytes / instructions, but it's more about proprietary than solution. Adding a new version of soft SPI based on the existing one in the firmware is the only solution I can see. working... or use a attiny## slave with bitbanging... Posted at 2018-09-18 by @gfwilliams Hi - I was on holiday last week, hence the lack of replies. While it's unlikely to be your problem, you'd want to remove
Otherwise I'd say to just manually create the waveform using Posted at 2018-09-21 by benoit Hi, sorry for the delay to reply. I tried and it seems to work, thank you very much ! I will post my code when I will be able to make all the necessary tests to confirm the trick. Best regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-09-12 by benoit
Hello,
I want to access the TI TRF7960 (a 13.56MHz RFID reader/writer) with Espruino running on a nucleo STM32F401RE. The TI chip can be accessed with SPI, but with an exotic trick : clock polarity has to change between a write and a read instruction. Below is a drawing from the application report "Using the SPI Interface With TRF7960" (http://www.ti.com/lit/an/sloa140a/sloa140a.pdf).
How could I do that ? I tried the following but it doesn't work.
Thank you :)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions