??? 10/27/05 08:01 Modified: 10/27/05 08:07 Read: times |
#103013 - You must declare it Responding to: ???'s previous message |
You must declare it in software, that it will work as SPI Master or Slave. If bit 4 in SPCR is 1, it is Master, if 0 Slave. In Slave mode, the pin SlaveSelect (P1.4) also plays the role, and should be externally put to low during the communication.
And of course, Master is the one to give clock packets all the time. The Slave will use them, if selected, for both receiving and sending the data And about HW, very simple: MOSI to MOSI, MISO to MISO, CLK to CLK, and something to activate the Slave's SS pin. Regards, Slobodan |
Topic | Author | Date |
Problem about AT89s8252 SPI port | 01/01/70 00:00 | |
See what datasheet says. | 01/01/70 00:00 | |
Thx Sarang . | 01/01/70 00:00 | |
I think you misspelled you state: | 01/01/70 00:00 | |
Master slave problem. | 01/01/70 00:00 | |
You must declare it | 01/01/70 00:00 | |
I do not know your derivative, but if it | 01/01/70 00:00 | |
AT89S8252 and others | 01/01/70 00:00 | |
how about this Ray | 01/01/70 00:00 | |
Thank you very much!![]() | 01/01/70 00:00 |