Do you have a question? Post it now! No Registration Necessary

Re: PIC16F877 and Pins Prob

pins
The PORTB pull-ups are for input only. All PORTB pins are totem-pole
outputs. The OP probably has them heavily loaded so he/she is
experiencing the read-modify-write perils. The use of a "shadow
register" would be appropriate here (and elsewhere for that matter :-).
http://www.sxlist.com/techref/readmodwrite.htm

Re: PIC16F877 and Pins Prob

TELL US MORE CHRIS
is port set up as an output
have you disabled the the ports other options
the easy way to set a whole port high is with a move
something like :-
movlw b'00000011' ;the 11 being port bits 0 and 1
movwf portb ; loading port with value .this
should set 2 pins high
as others have said you can AND it too, But for we know you could be doing
this in picbasic or something more exotic.
Site Timeline
- » Serial garbage using ATmega8, STK500, CodeVisionAVR
- — Next thread in » Microcontroller Discussions
-
- » PIC16F877 & I2C Prob
- — Previous thread in » Microcontroller Discussions
-
- » iPhone SUPER 80% discounts
- — Newest thread in » Microcontroller Discussions
-
- » Prośba o namierzenie "blaszki z wtyczki"
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » RCA RNSMU4336
- — The site's Last Updated Thread. Posted in » Electronics Repair
-