Hi all,
I am tryin g to establish communication between MSP430 via SPI to MAX3111E
UART.
The MSP430(System controller) is the master and communicates on SPI with UART on
MAX3111E .
MSP430 is the master and I am using 3 wire mode with CS to control SPI
commn.
The flow of the communication is like this
CS low
Write to MAX3111E configuration register (16 bit) - to set the baud rate etc
CS high
CS low
Read the configuration register to see if the configuration is done properly
CS hi
But I am not able to configure the MAX3111E properly. The configuration is not
happening properly (I am writing #CC 0Ch but reading #40 40h).
I think communication is not getting setup properly.
I wanted to confirm two things
1) Do I have to setup the baud rate of UART as per the SPI SCLK(using
SMCLK-32768*32 Hz.
2) Also, after sending the command for read configuration register do I have
to send dummy bytes to receive data.
3) Do I have to monitor UCBUSY to see if any activity is happening on SPI
before deasserting CS. Currently I am using UCA0TXIFG and UCA0RXIFG .
I am attaching the code and also 1882.MAX3110E-MAX3111E(RF LINK).pdfthe
datasheet of MAX3111E.
Thanks........
MSP430 SPI interface with MAX3111E on UART for RF link
Started by ●October 1, 2011
Reply by ●October 3, 20112011-10-03
Hi,
"I am tryin g to establish communication between MSP430 via SPI to
MAX3111E UART."
Ummm are you trying to communicate to a UART with SPI? Why don't you
use the UART to comm with the UART? Thats kind of like trying to
communicate to an Italian in French.
Jake
On 10/1/2011 9:20 AM, sks18121980 wrote:
>
> Hi all,
> I am tryin g to establish communication between MSP430 via SPI to
> MAX3111E UART.
>
> The MSP430(System controller) is the master and communicates on SPI
> with UART on MAX3111E .
> MSP430 is the master and I am using 3 wire mode with CS to control SPI
> commn.
> The flow of the communication is like this
>
> CS low
> Write to MAX3111E configuration register (16 bit) - to set the baud
> rate etc
> CS high
>
> CS low
> Read the configuration register to see if the configuration is done
> properly
> CS hi
>
> But I am not able to configure the MAX3111E properly. The
> configuration is not happening properly (I am writing #CC 0Ch but
> reading #40 40h).
>
> I think communication is not getting setup properly.
>
> I wanted to confirm two things
> 1) Do I have to setup the baud rate of UART as per the SPI SCLK(using
> SMCLK-32768*32 Hz.
>
> 2) Also, after sending the command for read configuration register do
> I have to send dummy bytes to receive data.
>
> 3) Do I have to monitor UCBUSY to see if any activity is happening on
> SPI before deasserting CS. Currently I am using UCA0TXIFG and UCA0RXIFG .
>
> I am attaching the code and also 1882.MAX3110E-MAX3111E(RF
> LINK).pdfthe datasheet of MAX3111E.
>
> Thanks........
"I am tryin g to establish communication between MSP430 via SPI to
MAX3111E UART."
Ummm are you trying to communicate to a UART with SPI? Why don't you
use the UART to comm with the UART? Thats kind of like trying to
communicate to an Italian in French.
Jake
On 10/1/2011 9:20 AM, sks18121980 wrote:
>
> Hi all,
> I am tryin g to establish communication between MSP430 via SPI to
> MAX3111E UART.
>
> The MSP430(System controller) is the master and communicates on SPI
> with UART on MAX3111E .
> MSP430 is the master and I am using 3 wire mode with CS to control SPI
> commn.
> The flow of the communication is like this
>
> CS low
> Write to MAX3111E configuration register (16 bit) - to set the baud
> rate etc
> CS high
>
> CS low
> Read the configuration register to see if the configuration is done
> properly
> CS hi
>
> But I am not able to configure the MAX3111E properly. The
> configuration is not happening properly (I am writing #CC 0Ch but
> reading #40 40h).
>
> I think communication is not getting setup properly.
>
> I wanted to confirm two things
> 1) Do I have to setup the baud rate of UART as per the SPI SCLK(using
> SMCLK-32768*32 Hz.
>
> 2) Also, after sending the command for read configuration register do
> I have to send dummy bytes to receive data.
>
> 3) Do I have to monitor UCBUSY to see if any activity is happening on
> SPI before deasserting CS. Currently I am using UCA0TXIFG and UCA0RXIFG .
>
> I am attaching the code and also 1882.MAX3110E-MAX3111E(RF
> LINK).pdfthe datasheet of MAX3111E.
>
> Thanks........
Reply by ●October 3, 20112011-10-03
On Mon, Oct 3, 2011 at 9:45 AM, Jake G. wrote:
> **
> [...]
>
> Ummm are you trying to communicate to a UART with SPI? Why don't you
> use the UART to comm with the UART? Thats kind of like trying to
> communicate to an Italian in French.
>
Look up the part.
It _does_ make sense.
P.S. to the original poster - attachments don't make it through to the list.
--
Andy
> **
> [...]
>
> Ummm are you trying to communicate to a UART with SPI? Why don't you
> use the UART to comm with the UART? Thats kind of like trying to
> communicate to an Italian in French.
>
Look up the part.
It _does_ make sense.
P.S. to the original poster - attachments don't make it through to the list.
--
Andy