Thanks for the answer. I can see some light now at the end of the tunnel.
Few questions I have, please try to answer them:
1) My MCroom code sits at DEBUGIN statement at all times. And I have learnt that after the interrupt is handeled, program resumes from from the last statement which it was executing, which in my case is DEBUGIN. So how can I send
Code:
if z>0 THEN
for x=1 to 30
DEBUG "MT3",z,"C"
Low Tx : Pause 10
next x
Low BUZ : z=0
......
this signal if I do not put it in interrupts.
2) I have used one calculator I found here in forum only to see what is the duration of interrupts. It comes to every 524mSec for TMR1 @ 16bit @ 1:8 prescaler. Based on that the MCRoom code only uses 300mSec for debug statement and that too only once. OK, I agree if I put pause statements in the ISR code, timer will runout again. but pause is only used once when the DEBUG is used in MCRoom code ISR, why it kind of hangs permanently after that?
Because MC1 code is repeating that signal continuesly after certain interval. I cannot understand why the MCroom is unable to catch the LED OFF code later
I hope I have explained my point, and apologies if confusion is still lingering. Please ask me for any clarification if needed.
P.S: I don't have any knowledge about USART, I am a product design student actually and try to learn programming because I find it very interesting. I will learn about USART soon and apply it to these codes. I hope I can make this code work using DEBUG for now.
Bookmarks