Hi,
Yes and no.
When using HSEROUT PBP loads each byte, into the transmit register of (E)USART which then sends it out. However, because the TXReg is only one byte "deep" a command like...
Code:
HSEROUT "This is a string and we're sending it with HSEROUT", 10,13]
...will still tie up the PIC until the last byte (13 in this case) is loaded into the TXReg. As soon as (13) is transfered to the TXReg (not actually sent) the program continues at the next statement.
It's possible, either thru interrupts or polling, to have the program continue and keep sending "in the background" by having a buffer from which you feed the USART as soon as there's room in the TXreg.
Using the USART also allows higher baudrates than the bit-banged SEROUT(2) command.
/Henrik.
Bookmarks