Just a manual switch at port B,0 that is providing a high then i expect port B,5 to output a high when port B,0 is detected high to light up a LED. Thanks for telling me the exact forum to post. If u know what's wrong for the logic of my program pls reply me. Thanks!