Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP430F2370 UART Communication Problem

$
0
0

Hello all,

I am using TRF 7960A module for my rfid based project using MSP430F2370 microcontroller for uart communication. The interface used between TRF7960 and MSP430F2370 is parallel mode. I am using uart.c default file that i got from TI website     http://www.ti.com/product/trf7960a  TRF7960A C Code Samples.

Code for reception of data is mentioned below : in uart.c

#pragma vector = USCIAB0RX_VECTOR
__interrupt void
UartRxHandler (void)
{
if (IFG2 & UCA0RXIFG) // UART
{
rx_data = UCA0RXBUF;
rx_done = 1;
irq_flag = 0x01;
if(enable == 0) // If Enable == 0 settings must be done
{
TRF_ENABLE;
//UartBaudSet(0x01);
//McuOscSel(0x01);
Trf797xInitialSettings();
UartSendCString("Reader enabled.");
enable = 1;
}
//__low_power_mode_off_on_exit();

// if(first_spi_data == 1) // it indicates that hostcommands function is to be executed
// {
IRQ_OFF;

#ifdef ENABLE_HOST
// no need of host
// remote_flag = 1; // shows, that host was detected
// system in remote mode

LED_ALL_OFF;
LED_POWER_ON;
#endif
IFG2 |= ~UCA0RXIFG;
// }
}
}

still i am unable to receive data on uart, can someone please give me example code for receiving data on UART. I will be using terminal for sending data on uart.

Thank You.

Regards,

Ashi


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>