What exactly are you trying to do?, it could have a huge bearing on the thread!.
I am trying to do some sort of multichannel data aquisition,where every consecutive data is of a new channel.So I am not sending the channel number and only incrementing it with the arrival of every new data.But now,if my ckt gets turned off,the channel number has to get back to 0.Which is why I want to detect the turning off of the ckt.I hope this clear.
Is using a timer the usual way of doing this kind of stuff?