![]() |
Forum Index : Microcontroller and PC projects : Comport Interrrupts..?
Author | Message | ||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 767 |
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: 6266 |
You are missing the receive buffer size: It thinks you have the variable "getbuf" the same name as a subroutine. Jim VK7JH MMedit |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
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 |
||||
mpep Newbie ![]() Joined: 09/11/2014 Location: New ZealandPosts: 29 |
Thanks. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |