I use interrupts on change in combination with 2 rotary encoders. PB7 together with PB0 and PB6 with PB1. No prob's at all. Use the internal pull-ups. Enable the Interupt on Change and Global Interupt. When an interupt occurs you have to check whole portb. grtz Simon --- Claudio Tagliola wrote: > Hello all, > > > I know this issue has passed the revue a dozen times > already, however, I > can't find any usefull things from the archives. > > I have two motion sensors which put out two PWM > signals each. I want to > measure the length of those four PWM signals (this > is the action > anglular data of the sensors). Now, with the > PIC16F874 I use, I have two > options: use a capture register or use interrupt on > change. Problem with > the capture is, I only have two. From the IOC ports > RB7:RB4, there are > four. However, I remember a lot of words of caution > when using the IOC > feature. If I have those four digital input signals > only on those ports, > can I use this safely? And what were the > all-too-familiar problems with > Interrupt on Change again? > > > Best Regards, > > Claudio > > -- > http://www.piclist.com#nomail Going offline? Don't > AutoReply us! > email listserv@mitvma.mit.edu with SET PICList > DIGEST in the body > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body