Bob Blick wrote 2012-01-15 06:23: > I have an existing small PIC project that produces an output on one pin > based on the high bit of a register. In order to save an external > inverter, I'd like to also output the complement on another pin. Not on the 16F627A, but it seems as the Configurable Logic Cell (CLC) module on other devices would be able to do this in hardware with proper setup. Mirror the invers of one I/O pin on another I/O pin. I guess at least, the module is a bit complex... There was a thread on the use of the CLC module a few days ago, so I thought this was at least semi-OT... Jan-Erik. > For the > sake of argument let's say it is an oscillator that blinks an LED or > drives a transducer. > > The target is a 16F627A and any pins are fair game, but glitches are not > OK to the two pins, so no math or rotates directly on the ports. > > It is OK to do anything to any of the other pins. > > It is OK for there to be a little latency, and either port A or port B > is OK. Or even both ports, though I don't see how that could get any > faster. > > Here's the fastest thing I could come up with: > > movlw 0x55 > btfss bigreg,7 > movlw 0xAA > movwf PORTA > > This is almost fast enough, if I could shave an instruction off one of > the two conditions it would be enough for me. > > Any suggestions? > > Thanks, Bob > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .