To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 7016
7015  |  7017
Subject: 
Re: Time available during 1 kHz system interrupt?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 2 Nov 1999 17:18:40 GMT
Original-From: 
Chuck McManis <cmcmanis@mcmanisANTISPAM.com>
Viewed: 
821 times
  
At 07:47 AM 11/2/99 -0500, Bruce Moore wrote:
Interesting discussion but it raises a few more questions.

Are there any (bad) side effects when user code that is inserted in the ISR
takes longer to execute than the 1 msec interrupt cycle.

Mostly PWM will get jerkier. If you sit to long in there and the motors
happen to be 'on' then you can go faster than you would like :-)

You also "lose time" in the sense that msleep is no longer accurate so
there are issues with tasks that are waiting a set number of milleseconds
to execute.

In general, if you are taking too much time in the ISR then either:
1) You need a faster processor
2) You need to re-evalutate what you need to do at
   "interrupt time" vs "user time"

--Chuck



Message is in Reply To:
  Re: Time available during 1 kHz system interrupt?
 
Interesting discussion but it raises a few more questions. Are there any (bad) side effects when user code that is inserted in the ISR takes longer to execute than the 1 msec interrupt cycle. From experience it appears that the ISR runs on the next (...) (25 years ago, 2-Nov-99, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR