CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PC to PIC communication?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
June
Guest







PC to PIC communication?
PostPosted: Thu Dec 12, 2002 10:11 pm     Reply with quote

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?
PostPosted: Fri Dec 13, 2002 2:42 am     Reply with quote

:=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?
PostPosted: Fri Sep 17, 2004 3:35 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Sep 17, 2004 5:28 am     Reply with quote

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

View user's profile Send private message

VB to PIC
PostPosted: Sun Sep 19, 2004 1:44 pm     Reply with quote

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: 1934
Location: Norman, OK

View user's profile Send private message

The post you are responding to is almost two years old!!
PostPosted: Sun Sep 19, 2004 5:12 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Sun Sep 19, 2004 9:19 pm     Reply with quote

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 Smile
Mark Weir



Joined: 11 Sep 2003
Posts: 51
Location: New Zealand

View user's profile Send private message

Thanks for your support
PostPosted: Mon Sep 20, 2004 2:15 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 20, 2004 2:52 pm     Reply with quote

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

View user's profile Send private message

PIC from VB
PostPosted: Mon Sep 20, 2004 2:58 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 20, 2004 5:13 pm     Reply with quote

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

View user's profile Send private message

ICSP
PostPosted: Mon Sep 20, 2004 5:27 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group