![]() You don't need Timer event prosessing code at all, as Oncomm event is called by interrput, so put the received data handling code from timer event procedure to oncomm event procedure. ![]() Code: ' setup the default comm port settings MSComm1.CommPort = 4 ' comm port 4 MSComm1.RThreshold = 1 ' use 'on comm' event processing MSComm1.Settings = '9600,n,8,1' ' baud, parity, data bits, stop bits MSComm1.SThreshold = 1 ' allows us to track Tx LED MSComm1.InputMode = comInputModeBinary ' binary mode MSComm1.PortOpen = True ' open the portaand. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |