View previous topic :: View next topic |
Author |
Message |
June Guest
|
PC to PIC communication? |
Posted: Thu Dec 12, 2002 10:11 pm |
|
|
Dear all,
I am currently using VB to interface with my PIC16F876. Can anybody give me some codes to setup RS232 communication with PIC? I designed before (using TX, RX, GND, 9600 b.rate) but the C++ program I designed only can receive 0-32 (5 bit data), why? Can anybody give me some examples :)
Maybe this will be considered as off topic question. Howver without this part I cannot test my PIC --> PC communication using C++.
Thanks for reading...
Regards: June,
___________________________
This message was ported from CCS's old forum
Original Post ID: 10015 |
|
|
kolio Guest
|
Re: PC to PIC communication? |
Posted: Fri Dec 13, 2002 2:42 am |
|
|
:=Dear all,
:=
:= I am currently using VB to interface with my PIC16F876. Can anybody give me some codes to setup RS232 communication with PIC? I designed before (using TX, RX, GND, 9600 b.rate) but the C++ program I designed only can receive 0-32 (5 bit data), why? Can anybody give me some examples <img src="http://www.ccsinfo.com/pix/forum/smile.gif" border="0">
:=
:= Maybe this will be considered as off topic question. Howver without this part I cannot test my PIC --> PC communication using C++.
:=
:= Thanks for reading...
:=
:=
:=Regards: June,
Hi,
Check your e-mail. I sent you a VB project that communicates with PIC16f628 via RS-232. And don't forget that someone told you this forum is about PIC C. So, if you have any questions about VB, just write me an e-mail.
Good luck!
___________________________
This message was ported from CCS's old forum
Original Post ID: 10018 |
|
|
Guest
|
Re: PC to PIC communication? |
Posted: Fri Sep 17, 2004 3:35 am |
|
|
kolio wrote: | :=Dear all,
:=
:= I am currently using VB to interface with my PIC16F876. Can anybody give me some codes to setup RS232 communication with PIC? I designed before (using TX, RX, GND, 9600 b.rate) but the C++ program I designed only can receive 0-32 (5 bit data), why? Can anybody give me some examples <img src="http://www.ccsinfo.com/pix/forum/smile.gif" border="0">
:=
:= Maybe this will be considered as off topic question. Howver without this part I cannot test my PIC --> PC communication using C++.
:=
:= Thanks for reading...
:=
:=
:=Regards: June,
Hi,
Check your e-mail. I sent you a VB project that communicates with PIC16f628 via RS-232. And don't forget that someone told you this forum is about PIC C. So, if you have any questions about VB, just write me an e-mail.
Good luck!
___________________________
This message was ported from CCS's old forum
Original Post ID: 10018 |
Could I get this code as well please
[email protected]
Thank you |
|
|
dvsoft
Joined: 28 Nov 2003 Posts: 46
|
|
Posted: Fri Sep 17, 2004 5:28 am |
|
|
bonjour,
for the communication series under Windows, in C++ you can use
the component form Turbo Power AsyncPro 4
http://sourceforge.net/projects/tpapro/
it is a free package OpenSource
I use it with C++Builder to communicate with my PIC18 project
Bon courrage ALAIN |
|
|
Mark Weir
Joined: 11 Sep 2003 Posts: 51 Location: New Zealand
|
VB to PIC |
Posted: Sun Sep 19, 2004 1:44 pm |
|
|
I have most of a design written in VB by a friend and a piece of code for a pic but need a bridge to join them.
Could I have a copy of your application please.
[email protected]
Cheers
Mark Weir |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1935 Location: Norman, OK
|
The post you are responding to is almost two years old!! |
Posted: Sun Sep 19, 2004 5:12 pm |
|
|
Take a look at the original post and notice it is from December 2002!! I doubt you will get an answer.... |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Sun Sep 19, 2004 9:19 pm |
|
|
Quote: | Take a look at the original post and notice it is from December 2002!! I doubt you will get an answer.... |
At least he did use the search feature! Give him Kudo's for that |
|
|
Mark Weir
Joined: 11 Sep 2003 Posts: 51 Location: New Zealand
|
Thanks for your support |
Posted: Mon Sep 20, 2004 2:15 pm |
|
|
Thanks for your comments guys, yes I did see the original date, I still follow the forum after 18 months so I thought others would be the same.
The question remains though, does anyone else have similar code/ideas?
I am sure the answer is obvious to some of you, I found the project quite difficult as my friend's IT training took him to the edge of VB and mine to the edge of what the PIC could do. Everyone I have asked so far has been unable to explain hoe to link the two things together.
Incidentally , what I am trying to do is to use the VB program to run ICPROG or a similar icsp program to automatically program groups of PIC's within a panel of circuit boards.
Cheers
Mark |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 20, 2004 2:52 pm |
|
|
Quote: |
Incidentally , what I am trying to do is to use the VB program to run ICPROG or a similar icsp program to automatically program groups of PIC's within a panel of circuit boards. |
What you want to do, is to shell to a DOS program from VB.
That doesn't have anything to do with using VB to communicate
with a PIC via a RS-232 interface (which was what the original
poster wanted).
To get more info, do a search with Google for this
"Visual Basic" How to shell to a DOS program |
|
|
Mark Weir
Joined: 11 Sep 2003 Posts: 51 Location: New Zealand
|
PIC from VB |
Posted: Mon Sep 20, 2004 2:58 pm |
|
|
Thanks PCM,
I am trying to control a PIC thru RS232 from a VB program which will direct the Vpp programming pin to any one of 9 PCB's then invoke ICPROG to load up the hex file.
This is the concept, my lack of understanding of the process my mean I have it all wrong
Cheers
Mark |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Sep 20, 2004 5:13 pm |
|
|
Are you aware of all the connections to do ICSP? Are all the connections just paralleled except the Vpp pin? How are you directing this? Trying to make a gang programmer? |
|
|
Mark Weir
Joined: 11 Sep 2003 Posts: 51 Location: New Zealand
|
ICSP |
Posted: Mon Sep 20, 2004 5:27 pm |
|
|
Yes I have used ICSP a lot,
I have joined all other connections, Clk,Dta, +5 and Gnd. Then I switch the Vpp through a CD4514 1 of 16 decoder which is selected by the PIC according the PCB I wish to program.
As I understand it, if the Vpp pin is kept at +5v the PIC will not go into programming mode. All I am doing is Raising the Vpp pin on at a time to select which one to program.
Cheers
Mark |
|
|
|