Quote Originally Posted by 3adam View Post
hi
im new user in this forum.And my english is not good.I hope you can understand me.
ı use the 16f877 and this code:

ı connect the 3 led from the portb.0 portb.1 and portb.2
its working but its not come to 0v.All led is not come to off.This problem is burn to code or hardware please help me
thx
16F877 or 16F877A? Not that it matters much in the hardware for this application...but the mistake has been made before.

Are you sure you voltage inputs are actually going to 0v? Ground them out to make sure.

X,Y,Z....looks like an accelerometer input to me. Don't forget that just because an accelerometer isn't moving, doesn't mean it's not sensing something...if this is actually an accelerometer. And some accelerometer outputs are ratiometric and have outputs on the order of mV, and need to be amplified correctly to get a 0-5v output signal.