I have a strange problem in my code. I cannot receive characters via the serial port.
I've read up on the TI and RI interrupts and I think I am handling these correctly.
The program goes to the serial I/O isr, but just sits at the gets(comin,4) line. When I examine comin in the watch window and input chars via the SIN = xx (where xx is an ascii code), I can see the comin array remains empty.
Below is the serial I/O interrupt routine (my application does not need Tx)
pre void uart_rx_isr (void) interrupt 4 using 3 { signed char index=0; EA=0;
if (RI == 1) { gets(comin,4); command = atoi(comin); } RI=FALSE; /* finished isr - clear flag */ TI=FALSE; /* TI will not be used - always clear it*/ EA=1; }
/pre
Here is a fragment from main() - you can see that I set TI=1 initially to set the UART up
pre
TI=TRUE; /* always set TI=1 initially to allow serial printing */ RI=0;
loop: //RI=0; //IDLE
while ((1));
goto loop; } /pre
Appreciate some pointers here.
Jason
Consider British English.
Your link does.
"USAGE: Dependant is the generally accepted correct spelling in British usage for the noun and always refers to people: if you are single and have no dependants. The adjective should be spelt dependent: tax allowance for dependent (not dependant) children. American usage spells both adjective and noun with an e in the last syllable."
<Even bigger sigh>
Look at the Thesaurus entry and my other link and the many others.
Shame you can't see my British English dictionary that I have right in front of me.
Regardless, all this chatter didn't do anything to reveal the meaning of this gem:
"I see in the above posts that drawing the OPs attention to values made someone think I was ignorant of what they were, as in if I say "do you see the sunset" I am unaware of it ????"
Jesus Christ (sorry, Jack Sprat! I had to) people, can't you find a proper forum to discuss English spelling...? I think we had enough. Don't you agree?
Hello Tamir,
I totally agree - Besides which, I'm all sighed out!
You will hear no more on the subject from me.
Stephen.