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.

receiving 3 bytes of data from PIC to PC

Status
Not open for further replies.

dnhuruag

Junior Member level 1
Joined
Jul 23, 2007
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,394
pls help... how can i receive 3 bytes of data from PIC16f877a microcontroller to PC using visual basic 6... when i write 3 consecutive bytes using USART, i only read special characters from vb6... anyone can help me with my code?

Private Sub MSComm1_OnComm()
Dim sData As String
If MSComm1.CommEvent = comEvReceive Then
sData = MSComm1.Input
Text2.Text = sData
End If

End Sub

example if i send

usart_write('1');
usart_write('0');
usart_write('0');

i must read the "100" from vb, sad to say but i only receive special characters from vb... what would be my code look like to display the "100" from vb?

i would be grateful any means of help... thanks...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top