Are you just measuring with a multimeter? Sounds like the port is toggling on and off and your meter is averaging it. Just a thought. Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams Lim KK wrote: > Other commands like while, delay routines seems to be dead. And when I tried > to toggle the values of PORTB by doing: > PORTB = 0b00000000; > PORTB = 0b11111111; > PORTB = 0b00000000; > PORTB = 0b11111111; > I measure the voltage at PORTB and found that the voltage gets lower and > lower eg from 5V to 3.8V. Similarly, the 0V becomes 0.8V, 1.1V.... -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body