Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 08:32:57 08:32


Login with username, password and session length


Pages: [1]
Print
Author Topic: what is maximum frequency  (Read 3619 times)
0 Members and 1 Guest are viewing this topic.
aamir
Hero Member
*****
Offline Offline

Posts: 505

Thank You
-Given: 37
-Receive: 229


« on: August 28, 2008, 11:21:47 11:21 »

What is maximum INTERRUPT  frequency AVR at 5mZ  CAN HANDLE.Ie what shuold be maximum pulse width that can be handleled by external INT0 pin of avr.
Logged
Codeman
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 31
-Receive: 20


« Reply #1 on: August 28, 2008, 02:55:45 14:55 »

Well, that depends of a lot of things:

Which frequency you are using to clock the AVR?
What is the language you will use? Assembler ?, C ? Basic?
Who long is the code inside the interrupt?
Logged
hate
Hero Member
*****
 Warned
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #2 on: August 28, 2008, 06:41:15 18:41 »

5MHz=200ns instruction cycle on AVR family. If I remember correctly 2 cycles for jumping to the interrupt vector and another 2 cycles for jumping to the interrupt service routine makes 4 cycles. If you won't use any other interrupt and don't have any instructions inside the ISR then complete time for the interrupt to be executed make 6 cycles including the 2 return cycles. This makes an easy calculation of 5/6MHZ for the frequency of a single and empty interrupt. You can calculate what you need by adding the cycles your real ISR will use to that calculation!

Regards...
Logged

Regards...
Codeman
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 31
-Receive: 20


« Reply #3 on: August 28, 2008, 08:37:31 20:37 »

If you google for "AVR frequency counter" you will see some examples. This circuits / software will give you an ideia of what you can get from AVR. Most of the software is written in assembler because of the speed.

Regards
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC