We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I would like to have my two 89C51RD2 communicate with each other via UART. They are connected such that one TX pin is connected to the other's RX pin and vice versa. I tried sending byte by byte and it is working. However, when I tried to transmit larger amount of data at one go, the receiving end isnt able to read the data. I feel that I am missing something silly. Is the microcontroller able to store the incoming data while I poll and get them byte by byte? Would somebody please advise. Thank you. Cheers
You could always do something like this:
while (1) { if (char_poll(&c)) { /* Process data byte by byte */ } }