Code for Send/Receive TTL/Comport Sample?
Ive got my new cable in USB to TTL, want to do some basic testing before jumping into a large project. wanted to get some help with basic code to Receive data from the PC first, lets say to begin with a 8 bit set . I have a textbox in VB.net that has a "11110000" in it, I am on another forum for help coding VB to send it to the serial port. On this side I need help reading the data and storing it in a variable. I am assuming HSERIN is what I need but I want to make sure I get this right. Once I get the basic I/O working I will expand the code for more bits and such.
I will output the variable to PORTB (8 LED's) for verification
for sending data to the PC, i have a POT attached to the ADC 0, and setup as 8bits. its VAR name is MYADC
So if anyone has suggestions....
Chris
Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."
Bookmarks