AnsweredAssumed Answered

UART KWIKSTIK

Question asked by chrissanchez on Dec 1, 2012
Latest reply on Jul 29, 2013 by chrissanchez

Hi

 

I'm using device initialization to initialize the KwikStik with uart, and I´ve created two functions with the routines, can somebody tell me what am I doing wrong???

 

I´m using TWR-SER to engage the communication with my pc

 

 

char uart_getchar (void)

{

    /* Wait until character has been received */

    while ((UART5_S1 & 0x40)==0)

    {asm(nop);}

    (void) UART5_S1;   

    /* Return the 8-bit data from the receiver */

    return UART5_D;

}

 

 

 

 

void uart_putchar (char ch)

{

  (void) UART5_S1;

    /* Send the character */

    UART5_D = (char)ch;   

    while ((UART5_S1 & 0x40)==0)

    {asm(nop);}

    (void) UART5_S1;

    retardo(10);

}

 

 

 

 

 

Outcomes