Hi Sid, Thank4s for your answer, what I have to do is to set 3 relays with the RB4, RB5 and RB6 and 3 leds with the RB1, RB2 and RB3, the RB3 does not turn to on, and checking the 877 data sheet just found in the special features section the configuration word must be changed to get general io pins in that port. Well about your OA call, I believe you, I have a lot of US citizens with OA license. But for the 2 leters ... I believe you are a little bit older than me !!! hihihih Many thanks, Augusto, OA4CVT ( Continuous Voltage Transformer ) ----- Original Message ----- From: "Sid Weaver" To: Sent: Tuesday, March 18, 2003 10:53 AM Subject: Re: How can I ser the RB6, RB7 and RB4 pins as general IO > In a message dated 03/18/2003 10:48:03 Eastern Standard Time, > oa4cvt@EC-RED.COM writes: > > > > Just with a little problem trying to set as Output Pins the RB6, RB7 and RB4 > > pins of an PIC16F877. > > By default RB4, RB6 and RB7 are multiplexed pins to Low Voltage Prog. > > Can any help me a little on how to change the Configuration Word to enable > > the general io feature in this pins ? > > > > Hello, OA4CVT > > I have used the pins on PortB on the 877 many times and I simply program them > as I want them to operate. B7 and B7 are ICSP pins but I just ignore that. > If youwant the pins as outputs, write trisb = 0. If you want them as inputs > write trisb = 255. If you use the pins for serout or serin, > theyautomatically fo to the proper state, then return to their preset state. > > Would you believe I was once OA4DF? > > 73s > > Sid Weaver > W4EKQ > Port Richey, FL > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads