Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Comport Interrrupts..?
Author | Message | ||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
Evening Gents... I am trying to setup the com port for Rx interrupts but keep getting an error msg... Error: A sub/fun has the same name I wanted to use a subroutine to process it Open"com1:115200,getbuf"As #1
Do Loop Sub getbuf Print Asc(Input$(1,#1)) End Sub This was just a simple test program, the real one is a bit larger... Just not sure what I'm doing wrong... |
||||
mpep Newbie Joined: 09/11/2014 Location: New ZealandPosts: 29 |
Someone correct me if I'm wrong, but I believe that Interrupt labels MUST end with : Just can't find it easily in the manual |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5905 |
You are missing the receive buffer size: It thinks you have the variable "getbuf" the same name as a subroutine. Jim VK7JH MMedit MMBasic Help |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5905 |
The : is only needed when it is a line label and then only for the actual line label, not with any goto's Jim VK7JH MMedit MMBasic Help |
||||
mpep Newbie Joined: 09/11/2014 Location: New ZealandPosts: 29 |
Thanks. |
||||
Print this page |