??? 04/09/04 02:53 Read: times |
#68230 - RE: 8051 -> mscomm1.input Responding to: ???'s previous message |
Great! VB displays the number I sent. The program below:
------------------------------------------ Private Sub Form_Load() MSComm1.CommPort = 1 MSComm1.Settings = "1200,n,8,1" MSComm1.RThreshold = 1 MSComm1.InputMode = comInputModeText MSComm1.PortOpen = True End Sub Private Sub Form_Unload(cancel As Integer) MSComm1.RTSEnable = False MSComm1.PortOpen = False End Sub Private Sub MSComm1_OnComm() Dim sData As String If MSComm1.CommEvent = comEvReceive Then Cls sData = MSComm1.Input Print Asc(sData) End If End Sub ------------------------------------------ THANKS! For the 51 side, I use a 8-bit dip switch to input a number and sent it to the PC. I just want to display the number. Why is it wrong to use the "MSComm1.InputMode = comInputModeBinary"? Stanley |
Topic | Author | Date |
8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
display wrong number | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
so note for your vb | 01/01/70 00:00 | |
Still not working~.......... | 01/01/70 00:00 | |
RE: Still not working~.......... | 01/01/70 00:00 | |
This line: | 01/01/70 00:00 | |
RE: Still not working~.......... | 01/01/70 00:00 | |
Okay~! but you email address is...? | 01/01/70 00:00 | |
my email![]() | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
RE: display wrong number | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
RE: 8051 -> mscomm1.input | 01/01/70 00:00 | |
Whole new one | 01/01/70 00:00 | |
Cannot use on_comm | 01/01/70 00:00 |