Continue to Site

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.

Using Visual Basic to on/off the mcu GPIO

Status
Not open for further replies.

McMurry

Member level 3
Joined
Feb 16, 2008
Messages
56
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,746
gpio control in vb6

I am currently using Visual Basic 6 and C language for microcontroller.

I want to make a certain GPIO pin on the microcontroller to turn on after a certain condition in Visual Basic is reached (or to make it easier, after a click on a button in GUI)

I only manage to find how to display the data sent to the computer through serial port,
but fail to find any good example that would enable a signal to be sent to the MCU via the RS232 so that one of the GPIO pin would be turned on.

Is there any good tutorial / website that you can recommend?

Thanks in advance .
 

i use vb6,
you need send one or more caracters to mcu(pic/atmel)?
example:
click button1 send X
click button2 send Y

if do you have i post code?
 

When you displayed data means you are aware of communication control and initialization of control..

This is simple example of sending data to MCU. then data will process over there by your C code.

CommCTL.CommPort = 1
CommCTL.Settings = "2400,n,8,1"
CommCTL.PortOpen = True
CommCTL.InputLen = 1

Private Sub ComdSend_Click()

CommCTL.Output = Chr$(IOText.Text)

Do While CommCTL.InBufferCount < 1
Loop

CommCTL.PortOpen = False

End Sub
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top