8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
har
Mon Jan 21 2008, 06:45AM
 User Offline
Registered Member #1992
Joined: Wed Jul 04 2007, 10:24PM

Posts: 45
Thanked 0 times in 0 posts
can anyone help me in building an VB interface with coding and tutorials.
basically how does the communication between the PC and the microcontroller takes plce through VB interface.

Back to top


Ajay
Mon Jan 21 2008, 10:10AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3533
Thanked 646 times in 610 posts
all you need to do is add a MSCOMM component in your project. this has been explained in forum many times i think. Please search it once. you might find it.. for sure..
if not we are all here

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 har 
har
Tue Jan 22 2008, 08:35AM
 User Offline
Registered Member #1992
Joined: Wed Jul 04 2007, 10:24PM

Posts: 45
Thanked 0 times in 0 posts
thanks once again, im not yet clear because im not thorough with Visual Basic.i would like to explain my doubt once again by taking the example of the PC remote project:
even in this project there is a form. does this form takes part in the interaction between the microcontroller and PC.
in VOICE INTERACTIVE COLLEGE AUTOMATION SYSTEM PUBLISHED HERE project im intended to enquire attendance of students from phone. so what is the role of VB here.
please kindly help
Back to top


Ajay
Tue Jan 22 2008, 10:44AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3533
Thanked 646 times in 610 posts
As i said you need to add MSCOMM component in your project..
In Visual Basic 6.0: right click the toolbox and select "Components". Check "Microsoft Comm Control 6.0" and click "OK". Place a MSComm control (it looks like a phone) on your form (it will be invisible at runtime). You can name the control if you like, the default name is MSComm1.

For setting up MSComm1 component..
CODE:
   MSComm1.CommPort = COM1        'Define COM port available on PC
    MSComm1.Settings = "9600, N, 8, 1"      '9600 Baudrate, No Parity, 8 bits data, 1 Stopbit.
    MSComm1.InputLen = 1                    'Read 1 character/byte whenever Input property is used.
    MSComm1.InputMode = comInputModeBinary  'Input will retrieve data in array of bytes.
    MSComm1.PortOpen = True                 'Open Serial Port COM1.


To read from serial port...
CODE:
If MSComm1.InBufferCount Then
read_value = MSComm1.Input 'read_value will have whatever is sent to serial port of PC


and to write to serial port..
CODE:
MSComm1.Output = something_to_send


I hope many things are clear now

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top

MSCOMM VB project   serial programming VB   COM port programming Visual Basic   



This post has been thanked 2 times
 har , pdi33 
Ritesh
Thu Jan 24 2008, 01:46AM
 User Offline
Registered Member #65
Joined: Tue Aug 29 2006, 03:10AM

Posts: 49
Thanked 9 times in 9 posts

ok
if i want to read the com port only when there is a new data received
by using interrupt
so how can we do that
Back to top


abbas1707
Thu Jan 24 2008, 03:19AM

 User Offline
Registered Member #383
Joined: Thu Jan 25 2007, 08:07AM

Posts: 414
Thanked 65 times in 52 posts
Ritesh
for this u can make use of onComm event.
go to properties of mscomm , set RThreshold to 1.
then use code
CODE:

Private Sub MSComm1_OnComm()
   If (MSComm1.CommEvent = comEvReceive) Then  ' if something received
        Text3.Text = MSComm1.Input 'save it to text3
   End If
End Sub
 

whenever new data is arrived , onComm event will be generated(like interrupt) and that data will be saved to text3.

A Thousand Miles Journey Starts With a Single Step.
Back to top


Ritesh
Thu Jan 24 2008, 11:33PM
 User Offline
Registered Member #65
Joined: Tue Aug 29 2006, 03:10AM

Posts: 49
Thanked 9 times in 9 posts
THANKS
ANY NEW IDEA TO SAME
BUT FOR DOT NET 2005
Back to top


Ajay
Fri Jan 25 2008, 12:06AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3533
Thanked 646 times in 610 posts
.net is tough.. never used it

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


cenadius
Sat Jun 28 2008, 04:47AM
 User Offline
Registered Member #3470
Joined: Sun Aug 19 2007, 08:09AM

Posts: 34
Thanked 13 times in 11 posts
can i know where to download the visual basic?what is the programming language use in visual basic?

Back to top


pdi33
Sat Jun 28 2008, 06:40AM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 560
Thanked 113 times in 109 posts
hi cenadius,
visual basic itself is the programming language .
It can be installed as an integral part of Microsoft Visual studio or can be installed seperately. It does not have a freeware or shareware version so u have to buy it from microsoft.

* inspired to develop,developing to inspire *
Back to top


Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems