Go to Post I guess that we will just have to live with it, EH!!! :D - Steve W [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-11-2003, 11:24
Andrew Andrew is offline
Registered User
#0356
 
Join Date: May 2002
Location: Little Rock, AR
Posts: 393
Andrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to allAndrew is a name known to all
Interrupts on the EDU-RC?

I have not yet slogged through all of the default code. But, on first look, it appears that the user code is running in the main loop with no timing.

So here's the question...

Is there a loop timing routine, like an interrupt controlled timer in the default code?

Can we write interrupt modules? Say, if you want a switch to execute a particular behavior.
  #2   Spotlight this post!  
Unread 12-11-2003, 11:41
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,631
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Interrupts are there but unsupported

Interrupt driven things (timers, serial ports, edge triggered inputs) are definitely allowed. BUT Innovation First is not going to provide tech support for them.

They use interrupts to get & send the data from & to the master CPU (via the SPI bus). It is a pretty quick process (.4mseconds) when compared to the old serin/serout format.

Anyway, you can do many many many more time critical tasks with the new controller.

We've all got the power... ...now what are we going to do with it?

Good luck to us all...

Joe J.
  #3   Spotlight this post!  
Unread 12-11-2003, 23:02
CyberWolf_22's Avatar
CyberWolf_22 CyberWolf_22 is offline
Programming and Electrical Mentor
AKA: Allen Gregory
FRC #2587 (Afrobots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Houston, Texas
Posts: 227
CyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really nice
I am a noob to C and don't quite have a grasp on how the interrupts programming will work can some one please post an example code of like an interrupt timer (555 circuit) or something like that.
__________________
  #4   Spotlight this post!  
Unread 13-11-2003, 23:16
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,631
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
interrupts are code that runs out of order

I don't have a ton of time as my wife has just announced she is going to bed (implied: I better join her).... ...but.... the basic idea of interrupts is that it is code that is run out of the normal flow of a program.

So, when a pin changes from 0 to 1 or when a counter that is running in the background flips from hex $FFFF to hex $0000 or when a byte comes in via the serial data line or whatever, some special code can be run.

Usually in C this code is defined via a pragma statement.

Out of time... ...more later.

Joe J.
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
help with Interrupts thoughtful Programming 5 08-01-2004 16:07
New Controller Specs Posted Jnadke Programming 58 05-10-2003 08:18
New Controller programmable in C dez250 Programming 48 02-10-2003 19:28
What is an interrupt handler? Adam Y. Programming 7 14-08-2003 10:26
Possible Configuration to keep things cheap archiver 1999 8 23-06-2002 23:03


All times are GMT -5. The time now is 03: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