niloufar-navidi
Junior Member level 1
UART interrupt not returnning to the main programm (loop)
Hi
I have written this code for UART interruption with basic language for basscom but when the first interrupt occurs it does not return into the loop and it displays HI over and over again on the lcd , Would you please help me with it ?
Hi
I have written this code for UART interruption with basic language for basscom but when the first interrupt occurs it does not return into the loop and it displays HI over and over again on the lcd , Would you please help me with it ?
Code Basic4GL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 $regfile = "M32DEF.DAT" $crystal = 12000000 $baud = 9600 Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = _ Portb.7 , E = Portb.3 , Rs = Portb.2 Config Lcd = 16 * 2 On Urxc Intlab Nosave Enable Urxc Enable Interrupts Cls Cursor Off Do Cls Loop End Intlab: Lcd "Hi" Return End
Last edited by a moderator: