This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial communicaion Problem Simulayion is working but not in hw

#include <LPC21xx.H>
void uart0_init()
{

PINSEL0 = 0x00000005; U0LCR = 0x83; U0DLL = 97; U0LCR = 0x03;
}

void uart0_putc(char c)
{ while(!(U0LSR & 0x20)); U0THR = c;
}

void uart0_puts(char *p)
{ while(*p) { uart0_putc(*p++); }
}

int main (void)
{ uart0_init();
while (1) {
uart0_puts ("s");
} }

Parents
  • Remember that we have no idea what your project is trying to achieve, or what your system is other than what you explain & describe.

    "i checked it"

    You checked what, exactly?

    How, exactly, did you check it?

    What, exactly, were the results of your checks?

    "but here not showing any errors"

    Where?

    "tell me now what i want to do with this hardware"

    How can I tell what you want to do?!

    "i am checked different baud rates"

    Again: how, exactly, did you do those checks?

    And what, exactly, were the results of your checks?

    "serial communication not working"

    What are you trying to communicate with?

Reply
  • Remember that we have no idea what your project is trying to achieve, or what your system is other than what you explain & describe.

    "i checked it"

    You checked what, exactly?

    How, exactly, did you check it?

    What, exactly, were the results of your checks?

    "but here not showing any errors"

    Where?

    "tell me now what i want to do with this hardware"

    How can I tell what you want to do?!

    "i am checked different baud rates"

    Again: how, exactly, did you do those checks?

    And what, exactly, were the results of your checks?

    "serial communication not working"

    What are you trying to communicate with?

Children
No data