cchappyboy
Joined: 03 Dec 2008 Posts: 45
|
How does software Uart work? |
Posted: Wed Feb 10, 2010 11:41 am |
|
|
I use pic16f876 for Uart communication
#use rs232(baud=9600, xmit=PIN_X, rcv=PIN_Y,stream1)
we can put any pin_# there if i didn't misunderstand. such as pin_b1 and pin_b2 ext.. other than the pin_c7 and pin_c6 as software uart tx and rx. am i right?
My question is who knows how does it work?
1. Does the compiler have to configured related registers like TXSTA and RCSTA and SPBRG? or it just made some code simulate the hardware actions.
2. I have a software uart. it works not properly when I enabled any interrupt serve program.
any response i am appreciate here in advance.
Thanks |
|