Software SPI

Started by im_vicky123 in MSP43012 years ago 3 replies

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...

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


Spi simple question

Started by datacardio in MSP4308 years ago 14 replies
SPI

Hi, which flag has to be monitored to be sure an spi transaction is finished, the RX or the TX, are the same, because when you send by the spi you...

Hi, which flag has to be monitored to be sure an spi transaction is finished, the RX or the TX, are the same, because when you send by the spi you also recieve, which is the difference from the program point of view?, Thanks to all. PD Im talking about the msp430f5438 which I know its spi has some difference with the previous. ------------------------------------


SPI clock

Started by Ammar Sondes in MSP4307 years ago 1 reply
SPI

Hi,=20 I m using the MSP430F5438 device and I need to use the SPI communication be= tween=20 the MSP430F5438 ( the master) and the...

Hi,=20 I m using the MSP430F5438 device and I need to use the SPI communication be= tween=20 the MSP430F5438 ( the master) and the MSP430F2370 (slave). The SPI clock is= =20 sourced by the SMCLK =3D 1MHz.=20 The problem is that I obtain a signal in the SMCLK pin=A0 but there is no s= ignal=20 in the SPI clock pin and SPI transmission could'nt start. Can anyone help me please. =20=20=...


Best way to reset USART in SPI mode?

Started by gmannigel in MSP43011 years ago 2 replies
SPI

Hello, i want to use a SPI connection to a peripheral. I am worried that if the MSP430 as SPI slave would get a stray clock pulse, it could...

Hello, i want to use a SPI connection to a peripheral. I am worried that if the MSP430 as SPI slave would get a stray clock pulse, it could be off by one until eternity. What is the best way to reset the SPI bit counter? SWRST? Full initialisation of the USART? Any other way? cheers Gunther


msp430 to mcp3008

Started by mago Umandam in MSP43011 years ago

anyone had interfaced the msp430 to mcp3008 ADC? i need measure differencial voltage from mcp3008 using spi..but the spi samples are using uart...

anyone had interfaced the msp430 to mcp3008 ADC? i need measure differencial voltage from mcp3008 using spi..but the spi samples are using uart as spi lines..on my case, the spi lines are connected to ports p2.0, p2.1 and p2.2...how can i configure these lines as spi bus? sorry for my question, im new to msp430. mago __________________________________________________


MSP430 SPI at port2

Started by magzky02 in MSP43011 years ago 2 replies

What i know based on the sample codes is that the UART0 and UART1 can be configured as SPI ports...I confirmed this on the datasheet..But...

What i know based on the sample codes is that the UART0 and UART1 can be configured as SPI ports...I confirmed this on the datasheet..But the hardware given to me is that P2.0 is DIN, P2.1 is DOUT, and CLCK is P2.2... How can i configure this port to function as SPI bus? or can i configure UART0 as UART and SPI alternately? thanks mago


How to save power when SPI bus is not active?

Started by ohad...@eltav.com in MSP4307 years ago 1 reply
SPI

Hello All, I have 2 MSP430 connected via an SPI bus, one is a master and the other is a slave. The SPI bus is not working all the time, and I...

Hello All, I have 2 MSP430 connected via an SPI bus, one is a master and the other is a slave. The SPI bus is not working all the time, and I have an interrupt line to signal from the Master to the Slave when to start the SPI (configure the port). I manage to reduce power consumption (about 80uA at each side) by setting the SPI logic to RESET (in the USCI module it is simply by setting ...


Spi - it is posible

Started by lukasz_krysiewicz in MSP43010 years ago 7 replies
SPI

Hi all. I can't have a experiance with Msp430 SPI module, and I have a one simple question. So, I have a procesor in Master mode, my SPI should...

Hi all. I can't have a experiance with Msp430 SPI module, and I have a one simple question. So, I have a procesor in Master mode, my SPI should only recived data from slave (only SOMI is used, SIMO is unused), and I set UCLK to slave clocking. This is my SPI initialization porcedure: [code] U1CTL = CHAR + SYNC + MM + SWRST ; U1TCTL = CKPL + SSEL1 + STC; U1BR1=m_UXBR1; /...


SPI in slave role problem

Started by jcwren in MSP43014 years ago 5 replies
SPI

Hello. I'm using an MSP430F147 connected to an Atmel Mega128L via 4 wire SPI. To date, I have been unable to get the 'F147 to act as a...

Hello. I'm using an MSP430F147 connected to an Atmel Mega128L via 4 wire SPI. To date, I have been unable to get the 'F147 to act as a reliable slave. If the clock line ever glitches (which it can do as the Mega128L comes up. The 'F147 is already running), there is no way to tell the MSP430 to resync the SPI circuitry. All SPI implementations I've ever used before support the follow


Problems with MSP430 as slave in SPI mode

Started by sudhakar_b_v in MSP43012 years ago 5 replies
SPI

I've a dual processor board with NE64 and MSP430F149; they are supposed to communicate using SPI, with MSP430 as the slave. The Msp430 uses...

I've a dual processor board with NE64 and MSP430F149; they are supposed to communicate using SPI, with MSP430 as the slave. The Msp430 uses USART1 as the SPI and I programmed the USART1 registers for interrupt-enabled SPI communication as an SPI slave (Global interrupts are also enabled). However, the MSP430 is never interrupted even though the NE64 keeps sending data. I've kept the b


I need a help for SPI Please.

Started by georgeliu28 in MSP43010 years ago 2 replies
SPI

Dear all, I got a question about SPI communication. And my MCU's (MSP430f2272) SPI can not read/write SPI's RX/TX buffer correctly. The...

Dear all, I got a question about SPI communication. And my MCU's (MSP430f2272) SPI can not read/write SPI's RX/TX buffer correctly. The conditon may be the host transmit speed too fast or fill in bigger then RX/TX buffer size cause it. So I wonder If my MCU's RX/TX buffer can not get correct data, does there are anyway (any code protection)can help correct SPI read/write data. ...


MSP430F449 SPI

Started by Jeyakumar in MSP43010 years ago 6 replies

Hi, I wrote the code for SPI communication for MCP3551 ADC bellow. but it is not working. I always receive 0xFF in all arrays. Pls if any...

Hi, I wrote the code for SPI communication for MCP3551 ADC bellow. but it is not working. I always receive 0xFF in all arrays. Pls if any one correct me.. UCTL0 |= SWRST; // Initalize USART state machine ME1 |= USPIE0; // Enable USART0 SPI mode UCTL0 |= CHAR + SYNC + MM; // 8-bit SPI Master **SWRST** UTCTL...


problem with 4 pin SPI

Started by buscalle in MSP4308 years ago 4 replies

Using 430F2274 and try to use SPI 4 pin. First i tried with the example code with 3 pin SPI and it works but when i change to 4 pins the SPI...

Using 430F2274 and try to use SPI 4 pin. First i tried with the example code with 3 pin SPI and it works but when i change to 4 pins the SPI goes totaly dead, i want to use the UCA 0STE to chip_enable on my HDSP2911 display. UCA0CTL0 |= UCCKPH + UCMSB + UCMST + UCSYNC + 4; Just adding 4 for setting to STE active low. Cant figure out why this doesnt work. Code: //***********************...


SPI and UART simultaneously

Started by linked82 in MSP43010 years ago 3 replies

Hi guys, It's sunday and I'm experiencing my first problems with mixing SPI and UART in the MSP430F135 chip. My circuit have this micro...

Hi guys, It's sunday and I'm experiencing my first problems with mixing SPI and UART in the MSP430F135 chip. My circuit have this micro connected to a DAC (SPI) and RS232 (UART) in the port 3. Same device (USART0) but different pins, so no problem in theoy. When I went to the practice, I wrote my program and discovered that the data that was sent to the SPI pins, also was send to the UART ...


how SST25VF010 driver for MSP430 SPI

Started by in MSP4307 years ago 5 replies

I used MSP430F5XX's SPI Module,in master I can make it works with SST25VF010 flash chip but i used IO simulation SPI,it does work!!! who can...

I used MSP430F5XX's SPI Module,in master I can make it works with SST25VF010 flash chip but i used IO simulation SPI,it does work!!! who can tell me why? ------------------------------------


LPM in MSP430F2xx

Started by diptipanchal in MSP4308 years ago 19 replies

I am using SPI communication to get the ADC values. I am using timer A for writing data into SPI TX buffer (UCA0TXBUF). After every 100mS,...

I am using SPI communication to get the ADC values. I am using timer A for writing data into SPI TX buffer (UCA0TXBUF). After every 100mS, data is written into SPI buffer & read the values from SPI RX buffer. Note: Using SMCLK, for SPI communication. I am trying to go in LPM3 modes based on some ADC values in the while loop of the main function. Then exit from LPM3 mode in TimerB. ...


USCI question

Started by Joe Radomski in MSP4309 years ago
SPI

I have a question about reading a pin when its configured for SPI 3 wire master.. Can the state of the MISO pin be reliably ready when the SPI...

I have a question about reading a pin when its configured for SPI 3 wire master.. Can the state of the MISO pin be reliably ready when the SPI function is selected or do I have to select general IO, read the pin the switch it back.. Looking at the pin diagrams I am not sure.. The reason I need to know is that I have a sensor that can be read using SPI even though its not really an SPI device (t...


spi reset

Started by frnkmag in MSP43012 years ago
SPI

hi everybody, I'm using the spi to interface my msp430 to an external chip which suplies also the clock signal. I have to turn on spi reception...

hi everybody, I'm using the spi to interface my msp430 to an external chip which suplies also the clock signal. I have to turn on spi reception as I recognize a particular pattern in input. The problem is that if I receive a second good pattern I have to syncronize immidiatly with the incoming bytes and restart spi reception. Now the question is: how can I reset the receive Shift register if


SPI bit-banging examples?

Started by Richard Cooke in MSP43010 years ago 9 replies
SPI

Hi Folks, I need to use the MSP430F2111 due to cost issues (and at least 16 I/0) but I also need to interface to a Nordic RF chip via SPI. ...

Hi Folks, I need to use the MSP430F2111 due to cost issues (and at least 16 I/0) but I also need to interface to a Nordic RF chip via SPI. This particular flavor of MSP doesn't have a hardware SPI port so I'm stuck with bit-banging. Can some kind soul point me to an example or framework that shows this bit-banging of a SPI interface. Thanks, Richard Cooke


CC110x SPI module

Started by Gordon Hsiao in MSP4309 years ago 4 replies
SPI

TI has its CC1101 SPI module(EVM--evaluation) for $49 a piece. I'd like to order some low-cost CC110x SPI module for my designs in high volume,...

TI has its CC1101 SPI module(EVM--evaluation) for $49 a piece. I'd like to order some low-cost CC110x SPI module for my designs in high volume, so far I failed to find any in USA. I hope it can reach Tx > 10mW. I'm looking for something like the CYWM6934 SPI module(using cypress 2.4Ghz radio) but at 315/433/866/915Mhz for longer range, the reason is that I do not want to go through the cos