Hi All, I am trying to write software UART in C51. I manage to receive some thing but not the right character I sent. I think I have sync problem but it is hard to debug it. I will be glad if someone can send me such a code (I try to look for it in the net but I didnt found any C code). Thanks KH
I should read the Post. send the bits back out another port pin. Then look at both on a scope. That worked for me. I assume you are using and interupt to pick up the start bit. You must unless you have a very fast sample rate. After the start wait 1 and half a bit times then start reading bits. (The PIC loses 1/2 a bit time in the int)