-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Actually it is. You store the new pins in an XORed > form. :o) But there is a problem that your code below > still takes 9 cycles (once goto is included). > > ;------------------------- > ; now output current2 > movf current2,w ; > movwf PORTB ; send to motor! > nop > movf inputs_last,w > xorwf PORTA,w > movwf diff > skpz > goto pwm_loop > > > > What is your're trying to do? So drop the NOP - --Brendan - --- "Rejection out of hand of all but one's favoured alternative may cost you dearly in one way or another." -Russell McMahon -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBPWKQ3gVk8xtQuK+BEQJ7LACgmTSQFS4ZDKpoNUvcH/9sOp1yakMAoI81 7l/S5ZxWG/yh7NSLD+ytI7Xt =hPKq -----END PGP SIGNATURE----- -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads