Serial VB 2005 pic 16f877a problems
Hi I m back with a new project. Thank you for all you help and support on the slot car timmer. I am working on a simple thermostat withthe 1620 chip and it works great with the lcd out. I wanted to get it to the pc so I wrote a small program in VB2005 and it took hours just to get them talking but I did it... except the pic is not listening. I can send to vb fine and read it but when I try and send back to the pic it does not get it. I can see the PC trying to send out on the scope but it does not get stored in my pic variable. I even ran a wire from the tx side of the pic to the rx and still nothing. The pic is sending but not recieving.
here is some of my code
I decalred the variable as a word and later as byte
I am using a max 232 converted and like I said I can see both signals on the scope
I am sure the pc it sending the code i think :)
I am just trying to get the pc to tell the pic to turn on a fan when it gets too hot.
YES I know there are many simpler ways to do this directly threw the pic but I want to use the PC.
serout portd.3,t2400,[#temp]
serin porta.0, t2400,pcsig ' my data in variable
if pcsig > 1 then high porta.1 ' pc writes 100 so even if the pic gets anything it should fire
thanks again
Snap
Re: Sweet Sweet Successsss
Sorry Mr. Snap...
Can you tell me about meaning of code visual basic there line by line...
I wanna to learn visual basic, but I'm a Beginner !!
Please help me Mr.