Quote Originally Posted by wellyboot View Post
this as well:
trisb = 0




Maybe worth changing the 'pause 10' to 'pause 1' if your display is flickering.

does your 4mhz crystal have 2 caps (18 - 22pf) between each leg and ground?
not shown on your diagram.
thank u wellyboot for explaining, and thanks everyone trying to help ,,, i will do it and i post the result ........