Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Ads

Discussion Groups

Discussion Groups | MSP430 | MCP4921 12 bit DAC communicating with MSPF2274 using SPI?

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

MCP4921 12 bit DAC communicating with MSPF2274 using SPI? - thanhtranhd - Aug 28 2:43:46 2008

Hello,

I'm trying to get a 12 bit DAC (Microchip MCP 4921) to work with
MSP430F2274 SPI. The DAC needs a 16 bit data sending in one burst. The
MSP430F2274 SPI (USCB0) seems working ONLY with 8 bit data. When I put
a 16 bit data, it just doesn't send out any data on the MOSI pin.
Before I go putting a piece of code for doing bit-banged SPI, I just
want to check if anyone has any idea how to solve this issue.

My hardware is the MSP430RF2500 kit. I'm using the same SPI pins that
the CC2500 is using (the DAC CSn pin is P2.1)

Thanks very much

-Thanh

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: MCP4921 12 bit DAC communicating with MSPF2274 using SPI? - Thanh Tran - Aug 28 3:21:38 2008

I break the 16 bit to 2 8 bits and send it 2 times without clearing the CSn pin. It seems working! :)
Thanks for reading

-Thanh

----- Original Message ----
From: thanhtranhd
To: m...@yahoogroups.com
Sent: Thursday, August 28, 2008 2:43:38 AM
Subject: [msp430] MCP4921 12 bit DAC communicating with MSPF2274 using SPI?
Hello,

I'm trying to get a 12 bit DAC (Microchip MCP 4921) to work with
MSP430F2274 SPI. The DAC needs a 16 bit data sending in one burst. The
MSP430F2274 SPI (USCB0) seems working ONLY with 8 bit data. When I put
a 16 bit data, it just doesn't send out any data on the MOSI pin.
Before I go putting a piece of code for doing bit-banged SPI, I just
want to check if anyone has any idea how to solve this issue.

My hardware is the MSP430RF2500 kit. I'm using the same SPI pins that
the CC2500 is using (the DAC CSn pin is P2.1)

Thanks very much

-Thanh

[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )