Normaly i would use movf OUTPUT, W follwed by MOVWF PORTC But i am using the Enhanged PWM as well. = > -----Oorspronkelijk bericht----- > Van: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] = > Namens Mike Hord > Verzonden: vrijdag 31 juli 2009 17:55 > Aan: Microcontroller discussion list - Public. > Onderwerp: Re: [PIC]Could this be done easier and how > = > Are you trying to complement the outputs? > = > You could use XOR- XOR with one complements a bit, with 0 = > leaves it alone. > = > Mike H. > = > On Fri, Jul 31, 2009 at 10:40 AM, Harry H. = > Arends wrote: > > Hi group, > > > > Using the 16F685 i want to set two bits on PORTC using these lines: > > > > =A0 =A0 =A0 =A0btfsc =A0 OUTPUT, OUT1A =A0 =A0 =A0 ; Is bit set so set = it to 1 in = > > portC > > =A0 =A0 =A0 =A0bsf =A0 =A0 PORTC, OUT1A > > =A0 =A0 =A0 =A0btfss =A0 OUTPUT, OUT1A =A0 =A0 =A0 ; else if not reset = it to 0 > > =A0 =A0 =A0 =A0bcf =A0 =A0 PORTC, OUT1A > > =A0 =A0 =A0 =A0btfsc =A0 OUTPUT, OUT1B > > =A0 =A0 =A0 =A0bsf =A0 =A0 PORTC, OUT1B > > =A0 =A0 =A0 =A0btfss =A0 OUTPUT, OUT1B > > =A0 =A0 =A0 =A0bcf =A0 =A0 PORTC, OUT1B > > > > But could this be done easier and if so how? > > > > Regards > > > > Harry > > > > -- > > 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 > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist