can anyone write a code for continuous reception for a time of "internal" after which count has to be zero(count = 0)
It's not our practice to write code for poster because this gets abused too often by students who are too lazy to do their own homework and come here asking us to do it for them so they can go out and party. We know you are not one of those, right ? XD
We'll be happy to give you suggestions and point you to tutorials but asking us to write your code is crossing the line. We are here to help people learn , not to do their homework. I am sure you want to learn.