but when i use serin command program stops and wait data "1" and when program stops i cant get the button commands if i remove serin command the program works well but i need serin command coz i want to use remote
You are stuck on your SerIn statement... It is waiting for input...You need to use a timeout on your SerIn...I can't remember if SerIn has a timeout, but I do know that SerIn2 does... Or you can use a interupt on your Button, instead of a scanpin...Or you can use a interupt on your SerIn routine.

Dwayne