ENABLE HIGH Oshonsoft ( with link to 2013)

Thread Starter

camerart

Joined Feb 25, 2013
3,730
Hi,
I'm getting a problem with a program stalling.
I've just slowly commented out each section to see if it runs, and when I commented out the ENABLE HIGH this clears the stall. There is hardly anything commented in, in the program apart from a TEST LED.
Here's a link to my question from years ago: https://forum.allaboutcircuits.com/threads/interrupts-in-oshonsoft-basic.191971/post-1800221

I've tried the normal [ Hseropen 9600 ] and the
RCSTA = %10010000 '7=SPEN: Serial Port Enable bit, 6=RX9: 9-Bit Receive Enable bit, 5=SREN: Single Receive 'Enable bit, 4=CREN: Continuous Receive Enable bit @
'TXSTA.BRGH = 1 'BRGH: High Baud Rate Select bit
'BAUDCON.BRG16 = 1 '16-Bit Baud Rate Register Enable bi
'SPBRG = 207
'PIR1.RCIF = 0 'RCIF: EUSART Receive Interrupt Flag bit
'PIE1.RCIE = 1 'EUSART Receive Interrupt Enable bit
'PIE1.CCP1IE = 1 'CCP1IE: CCP1 Interrupt Enable bit
'INTCON.PEIE = 1 'PEIE/GIEL: Peripheral Interrupt Enable bit
'INTCON.GIE = 1 'GIE/GIEH: Global Interrupt Enable bit

route, and both are the same.

This hasn't been much of a problem for all of those years, apart from where I thought it was something else and 'played' till it went away.
Anyway, a mystery!
C
 

Thread Starter

camerart

Joined Feb 25, 2013
3,730
Hi,
I think I've found the problem, which isn't due to my original question in#1
It's WEND WHILE blocking, so I'll start another thread.
C
 
Top