Hello, my name is Símon.
I have ATMGA328 and I need to connect the two SPI Seral signals into it. I saw that it is possible to use pin 10-13 for one SPI, but can I program any other pin for the second SPI?
with hope for answers.
Símon Elvar
Hello, my name is Símon.
I have ATMGA328 and I need to connect the two SPI Seral signals into it. I saw that it is possible to use pin 10-13 for one SPI, but can I program any other pin for the second SPI?
with hope for answers.
Símon Elvar
You can but there is little point. Just parallel up the signals with the original one and arrange two pins to act as chip enables so you select the device you want.
thanks for your reply.
unfortunately it is not possible, because I need to send data through both SPI at once.
What I need to do is connect PC to a pressure sensor (SPI Seral) and GSM modem (UART TTL). except that the only port that I have is one SPI Seral. Data from the pressure sensor need to go into the computer but at the same time I need to send data to the GSM modem.
Do you know how I can solve this problem?
I need to send data through both SPI at once.
Why can't you send it to one device, then switch to the other, and send again. The difference in timing between the two devices getting the data will be very small.
because I need to send data through both SPI at once
Well you are stuffed because you can't do two things at once on any single cored processor.
I don't think you have thought this through.