On Apr 19, 2008, at 10:08 PM, jiang chen wrote:
> Thanks for your reply.
>
> currently I am working on the micaz's SPI port,I need to use the SPI  
> port to send data to a chip and receive data from the chip,then,  
> send the received data to PC wirelessly.
>
> But I found the wireless senging chip cc2420 also connect with  
> atmega128 through SPI,and I cannot make sure that the hardware allow  
> me to share SPI in different time.

Why not use an SPI client? That way, software (through an arbiter) can  
make sure two peripherals don't try to use the bus at the same time.  
The CC2420 stack will only use the SPI when it needs it.

>
> So,I want to ask you ,it there a good way to solve the proplem?

Yes.

> Or,dose the cc2420 hold the SPI and we cannot use SPI to other way??
>

No, the CC2420 releases the SPI when it does not need it. On Telos,  
for example, the SPI is also used for the flash chip.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to