Go to Post That'll teach me to send anyone for a tool. - Rich Kressly [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 02-02-2004, 20:38
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
INCONbits.GIEL usage

I have a question about the global low priority interrupt bit. We're using timer3 to sample and integrate a gyro at 100Hz. Since its using the ADC I want to make sure that mainline code doesn't get interrupted in the middle of an ADC conversion.

In the mainline code I think we want to set the GIEL bit low, do a conversion, then set it high again. If the timer interrupt event occurs during the conversion, will the timer3 interrupt bit stay high so that it gets serviced right after resetting the GIEL bit? In the data sheets it looks like the GIEL bit just keeps the low priority vector code from running, but I'm new to the PIC and would like to verify with someone who knows their way around the chip.
  #2   Spotlight this post!  
Unread 02-02-2004, 23:20
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: INCONbits.GIEL usage

Quote:
Originally Posted by seanwitte
I have a question about the global low priority interrupt bit. We're using timer3 to sample and integrate a gyro at 100Hz. Since its using the ADC I want to make sure that mainline code doesn't get interrupted in the middle of an ADC conversion.

In the mainline code I think we want to set the GIEL bit low, do a conversion, then set it high again. If the timer interrupt event occurs during the conversion, will the timer3 interrupt bit stay high so that it gets serviced right after resetting the GIEL bit? In the data sheets it looks like the GIEL bit just keeps the low priority vector code from running, but I'm new to the PIC and would like to verify with someone who knows their way around the chip.
All interrupts must be cleared in software so I'm pretty sure the answer is yes.
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
Linux usage of PBASIC djcapelis Programming 2 25-05-2003 23:49
Multiple files usage punarhero Programming 2 12-01-2003 11:45
Whats with the Serout usage? PyroPhin Programming 2 12-01-2003 01:01
material and fastener usage archiver 2000 1 24-06-2002 00:08
Kit Materials Usage & Limitations Rockstar75 Rules/Strategy 1 10-01-2002 17:19


All times are GMT -5. The time now is 23:59.

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