I'm using a 16F1937, and I've done this successully in the past on this PIC model.
Check this out, it's always after the last HSEROUT:
Code:TXSTA.5 = 1 ' TXEN: Transmit Enable bit hserout ["1"] hserout ["2"] hserout ["3"] hserout ["4"] hserout ["5"] while TXSTA.1 = 0 ' Check TRMT: Transmit Shift Register Status bit wend ' TXSTA.5 = 0 ' <----- Causes Framing error after last byte !![]()
Bookmarks