On 12/24/2013 3:07 AM, cdb wrote: > On Mon, 23 Dec 2013 13:45:09 -0700, Bob Axtell wrote: > :: I'm using a seperate PIC16F1933 as a quad decoder for 4 channels of > :: motors. > > Are you using the CCP or a total code based algorithm? > > Colin > -- > cdb, colin@btech-online.co.uk on 24/12/2013 > =20 > Web presence: www.btech-online.co.uk > =20 > Hosted by: www.justhost.com.au > =20 > =20 > This email is to be considered private if addressed to a named individua= l > or Personnel Department, and public if addressed to a blog, forum or new= s > article. > =20 > =20 > =20 > > > code-based decoder written in assembly. But it is easy assembly, using a=20 jump table rather than bit tests. Notice that the PIC16F1939 offers instant interrupts, so setting the=20 int-on-change change detector on the highest 4-bits of portB, then=20 xor'ing the A and B of each channel allows 8 inputs to be handled by 4=20 IOC inputs. --Bob A --=20 The only place success comes before work is in the dictionary. VINCE LOMBARDI --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .