electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Using Visual Basic to on/off the mcu GPIO


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Using Visual Basic to on/off the mcu GPIO
Author Message
McMurry



Joined: 16 Feb 2008
Posts: 75


Post03 Jun 2008 11:15   

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 .
Back to top
Google
AdSense
Google Adsense




Post03 Jun 2008 11:15   

Ads




Back to top
mpardinho



Joined: 07 Aug 2006
Posts: 10


Post11 Jun 2008 20:06   

Re: Using Visual Basic to on/off the mcu GPIO


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?
Back to top
pcup



Joined: 26 Dec 2007
Posts: 92
Helped: 14
Location: India


Post12 Jun 2008 0:31   

Re: Using Visual Basic to on/off the mcu GPIO


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
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Using Visual Basic to on/off the mcu GPIO
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
visual basic code for MCU to pc serial port connection ? (4)
What is the better Visual Basic, Visual C++ or Delphi ? (79)
Oscilloscope using visual basic 6 (6)
Using Visual BASIC for Applications (1)
Serial port accessing using Visual Basic 6 (3)
Paralle port accessing using Visual basic 6 (5)
infrared remote sender using visual basic (1)
Using Visual Basic 6 for PC - microcontroller communication (1)
how to configure serial port DB-9 by using Visual Basic 6.0 (1)
How can I program PIC using Visual Basic (6)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS