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.
 

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
 
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**
 
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
 
Build a few projects with the RS232 serial first.

Then you may want to take a look at
UBW (USB Bit Whacker)

It uses a PIC18F with USB. It may not be the exact application you are looking for but it is fun to play with and quite inexpensive to build.
 

Will do.

Probably going to use RS232 with VB then JAVA then C++ before I go for USB.
 
I wanted to add that I found the MSComm1 property that fixed my problem..

If anyone is trying serial communications like this and cant get proper character sending and receiving even with pins 2 and 3 shorted on the serial connecter..

Change INPUTLEN to 1 on MSComm1
 
Peter_wadley said:
Will do.

Probably going to use RS232 with VB then JAVA then C++ before I go for USB.
I have been using C# with .NET on the PC side. The .NET stuff keeps getting better.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…