Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Visual Basic 6 to PIC MCU (HOW TO)

Status
Not open for further replies.
Are you sure you have connected RS232 cable on COM1?

A silly question...but sometimes people make this mistake.
 
3v0 said:
I did not sort through the wiring. A schematic would go a long way here. The text version makes my head hurt. :p

Prior to getting into that lets make sure the PC is doing its job.

Unplug the RS232 cable from the PIC.

Type and you should see nothing.

Short pins 2 and 3 on the RS232 cable (it is still plugged into the PC but not the PIC target). To do this you can makup an DB9 with a wire soldered between 2 and 3.

With the jumper in place you should see what you are typing on the PC.

If this does not work either you did not follow these instructions or the BASIC program has problems. Maybe flow control problems. Others may have talked about that.

It appears my problem is bigger then the PIC and the MAX.

When I short pins 2 and 3 of the serial cable It still does not work.

Could it be my fire wall?

It is on COM1 for sure.

Why do we jumper 7 and 8?

Why do we jumper 1 and 4 and 6?

I know these are probably the lamest questions but it really will help me solve this.

Does anyone have the VB6 program made?

No need to go and make it :), but if have it already..

Well I dont really understand! I am a very consious programmer.. everything in the VB appears to be right..

Fairly new computer.. COM port has never given problems.. worked with my edrum and programmer..

HMMMM :confused:
 
Firewall generally doesn't block COM ports so I guess thats not the problem.

Try this project. Its a terminal program written in VB.
**broken link removed**
 
It should be NONE. You don't require any hand-shaking in most cases.
 
sweeeeeeeeeeet

I was just messing with the Properties window for MSCOMM and now it working!

Input mode was set to Binary.. changed it to Text.

Dont ask, heh.

Ill try it with the MAX now..

Works.

Ill try it with the PIC now..

Works!


Thank you guys SOOOO much! This has given me so many more circuit ideas!!

Next is USB i guess.. any recommend chips?

See you.
 
USB is pretty difficult to start with. Its not like Serial or parallel port. It requires lot of coding.

But if you use USB to Serial converter chips like FT232...things become much easier as USB coding is abstracted by using the DLLs supplied by FTDI. www.ftdichip.com
 
Status
Not open for further replies.

Latest threads

Back
Top