Visual basic 6 interfacing with PIC 16f877 microcontroller

Status
Not open for further replies.

flemmard

Newbie level 3
Joined
Sep 8, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
visual basic and microcontroller

HI all,
I'm newbie here.I wish to send 5 hexadecimal digit from PIC16f877 to VB6 using serial comunication.Can you please help me how to do that?Please explain me with source code.

Please assume my hexadecimal value is 1234Dh

Thanks
 

16f877 vbasic

on the PC side, make a project in VB, add MSComm control, set to any baud rate and handshaking you like, write code on OnComm Event.

while in PIC, set baud rate, send your five digit hex data as string (char) and reassemble in VB.
 

    flemmard

    Points: 2
    Helpful Answer Positive Rating
16f877 microcontroller

Hi, thanks for your reply.I can code in VB for PC side...On PIC side, i dont know how to store value(5 hexa decima) in EEPROM.Can you help me?
THanks

Added after 45 seconds:

penoy_balut said:
on the PC side, make a project in VB, add MSComm control, set to any baud rate and handshaking you like, write code on OnComm Event.

while in PIC, set baud rate, send your five digit hex data as string (char) and reassemble in VB.

Hi, thanks for your reply.I can code in VB for PC side...On PIC side, i dont know how to store value(5 hexa decima) in EEPROM.Can you help me?
THanks
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…