Go to Post 6 months huh? That's about the last time I posted heavily on this site (April). Don't make me come back & whip all of you back into shape people! :yikes: - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2004, 11:53
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Interrupts per second

Anyone know how many interrputs per second the RC can handle? The Microchip docs don't seem to say and I did a search but could not locate any information on the forum. Thanks for any information.
Steven
  #2   Spotlight this post!  
Unread 12-02-2004, 12:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,752
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Interrupts per second

Quote:
Originally Posted by steven114
Anyone know how many interrputs per second the RC can handle? The Microchip docs don't seem to say and I did a search but could not locate any information on the forum. Thanks for any information.
Steven
Check this thread http://www.chiefdelphi.com/forums/showthread.php?t=24463
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 12-02-2004, 12:43
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Interrupts per second

Thanks, don't know why my searches missed that...
  #4   Spotlight this post!  
Unread 12-02-2004, 12:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,752
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Interrupts per second

Quote:
Originally Posted by steven114
Thanks, don't know why my searches missed that...
I actually searched for the number "5000".
It can be pretty hard to search for things on these forums unless you can remember a unique word or value from a thread, since the same terms get used over and over even if they aren't directly related to the thread topic.
I have trouble finding my own posts where I've previously posted an answer or code!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2004 at 14:05.
  #5   Spotlight this post!  
Unread 12-02-2004, 19:37
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Interrupts per second

Yeah, when I searched for interrupts per second, it eliminated per second entirely and searched for just interrupts... did me a whole lot of good
  #6   Spotlight this post!  
Unread 13-02-2004, 13:48
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Interrupts per second

Actually, it depends entirely on how long it takes to execute your Interupt Handler code. If you keep triggering interupts before the last one finished, you end up interupting the interupt. Do this too many times and you blow the stack and the thing crashes.

So, the REAL question is: How much time has IFI given us to service an interupt without blowing up their code?

Chow for now,
Steve
  #7   Spotlight this post!  
Unread 13-02-2004, 18:59
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Interrupts per second

I figured that, since the interrupt simply calls a function which increments a variable, I shouldn't have any trouble with that...
  #8   Spotlight this post!  
Unread 13-02-2004, 20:12
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Interrupts per second

Most processors block further interrupts on a pin once the first one has been received

so unless you re-enable interrupts inside the interrupt routine, it will not be able to interrupt the interrupts - usually you enable them in the last instruction before you return, or in some processors, the return-from-interupt instruction itself re-enables them
  #9   Spotlight this post!  
Unread 16-02-2004, 00:34
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: Interrupts per second

True, except you are dealing with two layers of interupts here. The high priority interupt can interupt your low priority interupt. And since we don't know exactly what IFI is doing with their code...

I'm learning a LOT about what doesn't work with this machine.
  #10   Spotlight this post!  
Unread 16-02-2004, 14:42
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Interrupts per second

Quote:
Originally Posted by KenWittlief
in some processors, the return-from-interupt instruction itself re-enables them
I think RETFIE does this; I seem to remember reading it in the docs...
  #11   Spotlight this post!  
Unread 17-02-2004, 13:59
Jeff McCune's Avatar
Jeff McCune Jeff McCune is offline
Alpha Geek
#0677 (The Wirestrippers)
Team Role: Mentor
 
Join Date: Jan 2003
Location: The Ohio State University
Posts: 67
Jeff McCune is on a distinguished road
Send a message via ICQ to Jeff McCune Send a message via AIM to Jeff McCune
Re: Interrupts per second

Quote:
Originally Posted by emusteve
Actually, it depends entirely on how long it takes to execute your Interupt Handler code. If you keep triggering interupts before the last one finished, you end up interupting the interupt. Do this too many times and you blow the stack and the thing crashes.

So, the REAL question is: How much time has IFI given us to service an interupt without blowing up their code?

Chow for now,
Steve
Interrupts are disabled while executing an interrupt handler. This is why it's important to keep interrupt routines small, so you don't miss events.
__________________
Team 677 - The Wirestrippers - Columbus School for Girls and The Ohio State University
EMAIL: mccune@ling.ohio-state.edu

...And all you touch and all you see
Is all your life will ever be...
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INT2 and INT3 interrupts not working Mercutio Programming 4 01-02-2004 13:27
EDU Demo Code: Encoder Interfacing Using Interrupts Kevin Watson Programming 4 08-01-2004 23:14
Interrupts Questions mightywombat Programming 0 03-01-2004 14:50
Problem with interrupts on the PIC Mike Betts Programming 7 16-12-2003 21:26
Interrupts on the EDU-RC? Andrew Programming 3 13-11-2003 23:16


All times are GMT -5. The time now is 07:02.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi