| Author |
Message |
sturgessb
Joined: 25 Apr 2008
Location: Norwich, UK
|
|
Posted: 30 October 2008, 16:21 PM Post subject: InputCapture on Timer 2 |
|
|
Hi Guys
Is it at all possible to do inputcapture using the 8 bit Timer 2 (on zx-128ne)?
Ben |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 30 October 2008, 16:37 PM Post subject: Re: InputCapture on Timer 2 |
|
|
| sturgessb wrote: | | Is it at all possible to do inputcapture using the 8 bit Timer 2 (on zx-128ne)? | The 8-bit timers (like Timer0 and Timer2) don't have an input capture unit on any of the AVR devices that I've worked with.
You might be able to accomplish a similar result using a pin change interrupt or external interrupt in conjunction with a timer. The accuracy of this method won't be as good as that realized by using the input capture unit, though. |
|
| Back to top |
|
 |
sturgessb
Joined: 25 Apr 2008
Location: Norwich, UK
|
|
Posted: 30 October 2008, 23:48 PM Post subject: |
|
|
ok no worries.
Just been reading about the new atmel XMEGA, is there any possibility of the zx range including these in the future?
Ben |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 31 October 2008, 1:01 AM Post subject: |
|
|
| sturgessb wrote: | | Just been reading about the new atmel XMEGA, is there any possibility of the zx range including these in the future? | Perhaps. The biggest obstacle at this time is that they aren't available in production quantities. |
|
| Back to top |
|
 |
|