Hello, in my project work I want to read serially received data continuously and compare it with stored ID in MCU I am using 8051. If the ID match then Green LED will glow, for ID mismatch Orange LED. If no ID found Red LED should glow. In this I am getting problem,when valid Id received it is indicated by Green LED but if we stop sending ID i.e. logically NO DATA in SBUF the Red LED should glow ; it doesn't happen its showing Green Led on...how to solve this one?
"need help from Experts"
Harzel Dimbaar is your man, bro.
thanks man,. you are not the elephant with one tusk
start a timer when ever u get a char with da RI
if timer gets to high u know u have not rx anything for a time
then u can light da led to say "notghing rx"
has da cpu got a good timer for this?