What about your actual code? wich software are you using on the PC side to get from your PIC? The easy on is the serial windows in MicroCode Studio
let's assume you have an 4Mhz Crystal
Code:
TXSTA=$24
RCSTA=$90
SPBRG=25 'Set BaudRate to 9600 bauds
HSEROUT["Button count=",#B1,13,10]
What you need to do your task is a few lines in Visual Basic or else PC language. In VB, you'll use MSComm32.ocx and presto it's done.
Code:
HSERIN[WAIT("ok i got it")] ' wait PC confirmation
B1=0
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks