??? 06/16/05 06:49 Modified: 06/16/05 06:50 Read: times |
#95067 - one-way stream Responding to: ???'s previous message |
hi,
Payam Soltany said:
Another question:
Does the slave have to take part in the 'conversation' with the master or it's possible to establish a 'one way' stream of data from master to slave and thus free the MISO pin of master for general IO? Yes and no. Indeed, you may use one-way communication for sending data from master to slave via MOSI and SCK lines. For SPI there are no hardware handshake except /SS pin to select slave device. As about MISO pin as general IO one so the answer is "no". Probably the MISO pin might be used as input port pin for master device although I would not use alternative function utilized pin for other purposes. But for slave device the pin has been drove with SPI even not utilized, so it can be used neither as input nor as output general port pin. By the way, I have seen some tricks about this pin of slave but I do not suggest them due ugly programming style. For last but not least: - if you have no enough code memory -> you selected wrong derivative; - if you have no enough pins -> you selected wrong derivative or made not good schematic. In short: avoid any tricks and you lost their [undefined] side-effects. Regards, Oleg |
Topic | Author | Date |
SPI enabled after CPOL and CPHA | 01/01/70 00:00 | |
probably yes | 01/01/70 00:00 | |
one way stream of data possible? | 01/01/70 00:00 | |
One way is often the case | 01/01/70 00:00 | |
MISO left unconnected? | 01/01/70 00:00 | |
Re: MISO left unconnected?![]() | 01/01/70 00:00 | |
one-way stream | 01/01/70 00:00 | |
MISO? | 01/01/70 00:00 |