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

sending string with parity

hello to all !!!

I am using ADUC841 and i want do sent a string
in that format (8 bit ,1 stop bit, odd - parity)
I am writing in C51

how can i set the my MCU to output this string with parity ?????

how i a setup the UART to send with parity ???

my program

void main(void)
{ T3CON = 0x86; // Configure the baud rate 9600
T3FD = 0x08;
SCON = 0x52;

printf("hello"); // the string i want to set with // odd pariy
}

thanks in advance to the helpers

mayer

Parents Reply Children
  • How it is implemented on an STR9 is almost certainly totally irrelevant to how it would be implemented on an 8051!

    It is extremely unlikely that the UART on the STR9 is the same as the UART on an 8051!

    You must study the data sheet for the device you are actually using!

    Have you actually done that yet?
    Have you looked at the configuration options that are available?
    If you haven't done that, there's no point in sending sample code - because you won't understand it!