Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
 

penoy_balut

Full Member level 2
Joined
Sep 8, 2007
Messages
148
Helped
26
Reputation
52
Reaction score
10
Trophy points
1,298
Activity points
1,943
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

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top