Larry, Thanks for your feedback on this. One comment, I've never seen C look so much like assembly :) Adam --- In AVR-Chat@yahoogroups.com, "Larry Barello" <yahoo@b...> wrote: > I have used INT0, INT1, ICP and the Analog Comparator for decoding four > channels of PWM at the same time (each one has selectable positive and > negative edge triggers). If you use the analog comparator, of course, you > need to set the other half to vcc/2 so it takes two pins... > > You can see the project here: www.barello.net/uRRC20 > > cheers! > > -----Original Message----- > From: Adam Bradley > > Not 100% sure but it looks like using ICP on the Butterfly is out, > whats a useful alternative for decoding PWM? External Interrupt pin? > > I hope I'm answering my own question correctly - would designating a > pin as an external interrupt be appropriate? > > >From datasheet from ATMEGA169. Given - > "The INT0 interrupts can be triggered by a falling or rising edge or > a low level. This is set up as indicated in the specification for the > External Interrupt Control Register A EICRA. When the INT0 > interrupt is enabled and is configured as level triggered, the > interrupt will trigger as long as the pin is held low." > > This doesn't look a whole lot different to using ICP? > Anyone? > > Thanks in advance, > Adam
Message
Re: Alternative to using ICP for decoding PWM
2004-03-14 by Adam Bradley
Attachments
- No local attachments were found for this message.