right well i now have the 16F628 (no grounding needed)
but ive searched and searched and cant seem to find anything about how to deal with the data which is sent from my visual basic program.
the VB program sends the data as
2400 baud, no parity, 8 data bits, 1 stop bit
and it also sends the character 255 (as a synchronous bit i think)
this is what it said in the article
From VB we will send an ASCII 255, as a synch byte, the pin number (0 to 15), and the on/off state (0 or 1). The microcontroller will wait for three (3) bytes of data. After these three bytes of data are received, it will then either switch the pins to their High or Low state.
but this is for a basic stamp as said above.
so how can i set up the 16F628 so that it recieves this pin information and sets the correct pins/bits?
the only examples i have found are a few source codes
https://www.qsl.net/oz1bxm/PIC/628uart.htm
but i just dont understand them!
i really need a tutorial
does anybody know of one? or could anybody be kind enough to describe how it would be done?
This was my overall aim of using the pic.. to control a robot from my PC. so once i have this figured out i should be done
Thanks Alot
Kane
[/quote]