lpcware

UART receive problem

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by taskihcp on Wed Apr 16 09:09:13 MST 2014
Hallo,

I want to receive Data from one mikrocontroller(avr)  to another mikrocontroller(lpc1343)

Data send from avr is ok but I can'd receive data to lpc1343.

I took the code uart.c and uart.h from examples.

the configuration for RXD and TXD have done in codes I think.

I added this method in c source:

uint8_t UARTReceive()
{
    uint8_t c;
while ( LPC_UART->LSR & LSR_RDR )
  {
c = LPC_UART->RBR;
  }
return c;
}

the Baudrate is  9600.

can anybody help me :)

thanks

taskihcp





Original Attachment has been moved to: uart.c.zip

Original Attachment has been moved to: uart.h.zip

Original Attachment has been moved to: uarttest.c.zip

Outcomes