Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216409

Forum Post: RE: MSP430g2553 I2C LM4F232 communication

$
0
0

[quote user="paul cai"]

#pragma vector = USCIAB0TX_VECTOR

__interruptvoidUSCIAB0RX_ISR(void)

{

RXData = UCB0RXBUF;                       // Get RX data

  __bic_SR_register_on_exit(CPUOFF);        // Exit LPM0

[/quote]

 You are serving TX Vector with rx code, again

[quote user="paul cai"] IE2 |= UCB0TXIE;                          // Enable TX interrupt[/quote]

Tx IRQ is enabled than RX

On Stellaris side

 Set Master address and different Slave so it can be addressed as a slave but not receive itself.


Viewing all articles
Browse latest Browse all 216409

Trending Articles



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