MSP430 SPI interfacing ChipCon CC1020 question.

Status
Not open for further replies.

ltg

Member level 4
Joined
Feb 24, 2002
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
533
msp430 spi

Hi,

I'm using MSP430F135 spi to interfacing CC1020 RF device. I wonder if some of you have experience with it?

Best Regards,
ltg
 

cc1020 msp430

I've used the MSP with CC1000. But it's still the same. What informations do you need?
 

interfacing cc1020

Hi Mr_Programmer!

Thanks for your respones. I have problem when I call ReadFromCC1020 routine. I didn't get the value I was expected. I'm not sure if I have initialiezed SPI correct. If I read back information from CC1020 PDO do I need change SOMI pin to input? It is first time for me to programming SPI interface.
I'm very happay if you wil give some advace, thank you very much.

Best Regards,
ltg
 

msp430 spi interface

LTG:

Here is my code, have you checked the PALE signal?

void spi_write(char data, char cmd)
{
IFG2 &= ~URXIFG0;
pinSetOutput(PALE);
if (cmd) pin0(PALE);
U0TXBUF = data;
while (!(IFG2 & URXIFG0));
pin1(PALE);
}

char spi_read(void)
{
IFG2 &= ~URXIFG0;
pinSetNormal(PSIMO);
U0TXBUF = 0xFF;
while (!(IFG2 & URXIFG0));
pinSetModule(PSIMO);
return (U0RXBUF);
}

void init_spi(void)
{
U0TCTL = 0xF2; // use SMCLK
U0BR0 = 0x02;
U0BR1 = 0x00;
U0CTL = 0x16;
ME2 = USPIE0;
} // end init_spi


Hope this will help you.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…