Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/14/09 09:24
Read: times


 
#168345 - It is in the data sheet
Responding to: ???'s previous message
Walter Wenz said:
Hello David,
i use 1 Aduc812 for master and for 2 Aduc812 for slave.
The master must tell both the slaves "start the measurement", That's all.

Possibilities:
1: I can use SPI by UART, but dont know how to realize that with ADuc812.
2: I can use D/A out to give pulse from master to slave, but slave must get this pulse by int0 (p3.2)

Maybe no. 2 should be faster. But how to realize to get this pulse by int0 (p3.2) for slave in c code?

Thanks
Walter


Pages 25..27 of the data sheet describe how to use the SPI.

It is up to you if you want your Master to poll the Slaves, or you want each Slave to interrupt the Master when they require service.

But since you initiated the ADC, you will have a pretty good idea how long the Slave will take and when it will be ready. So polling is not much of an issue.

Either way, the SPI transfer will just be handled by each MCU hardware.

David.


List of 5 messages in thread
TopicAuthorDate
SPI master slave            01/01/70 00:00      
   Which 8051 are you using.            01/01/70 00:00      
      and            01/01/70 00:00      
      Which 8051 are you using            01/01/70 00:00      
         It is in the data sheet            01/01/70 00:00      

Back to Subject List