EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Software SPI

Started by im_vicky123 November 28, 2005
Hi,

I m using MSP430F161 in my project. It has only 2 SPI's. We r already
using the 2 SPI's (one for debugging and other to talk to the radio).
We also need to interface the board with a ADC(AD7719). For this we
were thinking of using a S/W SPI. Can someone give me a better
approach for doing this or share a s/w SPI code with me.

Thanks in advance








Beginning Microcontrollers with the MSP430

I assume the F161 will be the SPI master.  In this case it might be
possible
to reuse the SCK, MISO and MOSI lines from one of the other SPIs and just
use a GPIO as a chip select.


On 11/27/05, im_vicky123 <im_vicky123@im_v...>
wrote:
>
>  Hi,
>
> I m using MSP430F161 in my project. It has only 2 SPI's. We r already
> using the 2 SPI's (one for debugging and other to talk to the radio).
> We also need to interface the board with a ADC(AD7719). For this we
> were thinking of using a S/W SPI. Can someone give me a better
> approach for doing this or share a s/w SPI code with me.
>
> Thanks in advance
>
>
>
>
>
>
>
>
>
>  .
>
>
>
>
>  ------------------------------
> >.
>
>
>  ------------------------------
>





If your radio and the AD7719 have Chip Select, you can
use that to select any one of the device and use the
same SPI channel for communication.

HTH
Jay

--- im_vicky123 <im_vicky123@im_v...> wrote:

> Hi,
> 
> I m using MSP430F161 in my project. It has only 2
> SPI's. We r already
> using the 2 SPI's (one for debugging and other to
> talk to the radio).
> We also need to interface the board with a
> ADC(AD7719). For this we
> were thinking of using a S/W SPI. Can someone give
> me a better
> approach for doing this or share a s/w SPI code with
> me.
> 
> Thanks in advance
> 
> 
> 
> 
> 
> 
> 
> 



		
__________________________________________ 
Yahoo! DSL  Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


If your requirement meets you could use USART.
s/w SPI may consume extra resource. 

Regards,
Kum



-----Original Message-----
From: msp430@msp4... [mailto:msp430@msp4...] On Behalf Of
68HC 08
Sent: Friday, December 02, 2005 7:09 PM
To: msp430@msp4...
Subject: Re: [msp430] Software SPI


If your radio and the AD7719 have Chip Select, you can
use that to select any one of the device and use the
same SPI channel for communication.

HTH
Jay

--- im_vicky123 <im_vicky123@im_v...> wrote:

> Hi,
> 
> I m using MSP430F161 in my project. It has only 2
> SPI's. We r already
> using the 2 SPI's (one for debugging and other to
> talk to the radio).
> We also need to interface the board with a
> ADC(AD7719). For this we
> were thinking of using a S/W SPI. Can someone give
> me a better
> approach for doing this or share a s/w SPI code with
> me.
> 
> Thanks in advance
> 
> 
> 
> 
> 
> 
> 
> 



		
__________________________________________ 
Yahoo! DSL - Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




.

 
Yahoo! Groups Links



 





Memfault Beyond the Launch