Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 1st April 2004, 01:41 AM   (permalink)
Default PICs and rotary encoders: placement

Hi.

WRT quadrature encoders is it better to stick them where they are on an interruptable line or does it matter? I was just going to dangle a pair off RD/PSP4,5 and 6,7... any reason to move them to RB4-7 for the interrupt-on-change capability, or is this just programmer's preference?

I was thinking that to include every possible menu and sub-menu interface choice in the ISR could be more memory than it's worth. But I'm a clueless newbie.

Thanks.
Patchouli is offline  
Old 1st April 2004, 03:10 AM   (permalink)
Default

I usually put them on an input capture pin or a counter pin. It gives you the flexibility of using the interrupts if you want them (since most parts can generate an interrupt on change of the input capture pin) or you can just use the counter/timer. If i am already using the counters for something else, then i evaluate what the best organization of my system is likely to be.
crust is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:08 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker