$ 0 0 Thanks Denni I will b trying now and letu know by writing timer capture interrupt for alling and raising edge