PWM is a hardware function. interrupts shouldn't bother the PWM generator. However, you can not share PWM output with INT input, of course... Depending upon your encoders & the tick rate you might be better off polling than using interrupts. It just depends. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com]On Behalf Of wbounce Sent: Friday, May 06, 2005 8:01 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Which pin to us for interupt? I am working on adding 2 wheel encoders to my robot. I am thinking of using either PORTE5, PORTE6 or PORTE7 but I am wondering if this will conflict with my PWM which I have on PORTE3 and PORTE4 (PWM output A and B of timer3) PORTE5 - External interupt 5 input or output compare and PWM output compare C for timer counter 3 PORTE6 - External interupt 6 input or timer counter 3 clock input PORTE7 - External interrupt 7 input or timer counter 3 clock input capture trigger If I use these will they cause problems with my PWM? Yahoo! Groups Links
Message
RE: [AVR-Chat] Which pin to us for interrupt?
2005-05-07 by Larry Barello
Attachments
- No local attachments were found for this message.