Last time I ran into this I had forgotten to turn the comparators off - I don't have a 628 handy, but check the other functions of that chip and make sure that RB1 isn't tied to another function. DougM -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of slippyr4 Sent: Wednesday, March 14, 2007 5:49 AM To: Microcontroller discussion list - Public. Subject: Something funny with RB1 on 16F628 Hi All, Something wierd is going on. More than likely it's just me being stupid, but i'd appreciate some help nonetheless. I have a 16F628 (not the ~A). I'm trying to set RB0 and RB1 as outputs, and high. banksel RCSTA ; turn off USART clrf RCSTA banksel TRISB ; set all of PORTB to outputs clrf TRISB banksel PORTB ; set all outputs high movlw 0b11111111 movwf PORTB when I run that code, RB0 does indeed go high, but RB1 does not. it stays firmly low. Currently, these pins are tied to ground via 10K; i am testing high and low with my scope. Any ideas? am i doing something stoopid? Thanks Jon -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist