Quote Originally Posted by Mus.me View Post
. . . . . .my project but it seems not working good is there any other programe to test projects?
Hello Mus.me,
The " code snippet" you posted . . . is that all of it or is there more? I ask because you made no mention of TRISA or TRISB, and those registers tell the PIC to make the ports inputs or outputs, also check your data sheet for that PIC because most of this series have open collector outputs on PortA.4 . I do not see config statements or OSC Define either.