Go to Post I learned... that I need to learn more. - Erin Rapacki [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 19-01-2007, 17:28
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
What registers are off limits....

The ifi_picdefs.h which was included in the IFI default code in the past is missing from this years code. I posted a question of what registers are off limits on the IFI tech forum. The answer I got back (gulp!) shocked me!

Quote:
No, there are still things that are off limits. The ifi_picdefs.h is no longer used. The ifi_aliases.h now shows the mapping of what you can use.
http://www.ifirobotics.com/forum/vie....php?p=811#811

If you remove the rxdata aliases and the data pin aliases... this leaves you with nothing. I'm asking again, because if this is the answer then you cannot write interrupt routines, you cannot use timers as none of those registers are listed in the ifi_aliases.h file! Ouch!

bud

Last edited by dcbrown : 19-01-2007 at 17:32.
  #2   Spotlight this post!  
Unread 19-01-2007, 20:58
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: What registers are off limits....

You can use it. Timers, interrupts, eeproms, adc, etc are all accessible.

Download this to make your life easier. From Kevin Watson, it has all the interrupts and timers you will ever need with full control.

What they are saying that there are still somethings that all off limits but not everything the way you believe
  #3   Spotlight this post!  
Unread 19-01-2007, 21:38
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: What registers are off limits....

Timer0 is off limits unless you're using the ifi_alltimers.lib library. So a little help from IFI on things like this might still be helpful.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #4   Spotlight this post!  
Unread 19-01-2007, 22:04
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: What registers are off limits....

I guess I'm just frustrated. I know the answer, you know the answer but the official support group for the robot controller doesn't seem to know the answer. It was a mistake to drop the ifi_picdefs.h file from the kit without at least documenting which hardware registers/bits are reserved. And then to give an official answer of, no you only can access the registers as defined in the ifi_aliases.h is just ill advise no matter how official it is.

Imagine being a rookie team and you don't happen to have a copy of last year's code then how do you know which registers -- and there are lots of them -- are reserved within the user's processor on the robot controller.

But everyone makes mistakes, so lets see if they change their minds or we are only allowed to access the registers in ifi_aliases.h for real...
Attached Files
File Type: h ifi_picdefs.h (35.6 KB, 25 views)

Last edited by dcbrown : 20-01-2007 at 00:20.
  #5   Spotlight this post!  
Unread 24-01-2007, 17:29
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: What registers are off limits....

The new answer from ifi is you can use any registers that were used/available in the past and any that were off limits in the past are still off limits.

Since these are not currently defined in the 2007 default code, rookie teams can see the information by pulling a copy of last year's default code from the ifi site's legacy docs area.

Last edited by dcbrown : 24-01-2007 at 17:31.
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
Off-season projects: What are your teams working on? AdamHeard General Forum 10 19-07-2006 12:36
CMUCam control registers Don Reid Programming 1 30-03-2006 23:14
Camera Registers Greg Marra Programming 1 16-01-2006 23:21
hanging off off other robots that are hanging off the horiz bar Andrew Dahl Rules/Strategy 15 12-01-2004 19:14
Seizing Self Defense: What limits? (Rules of Engagement) kmcclary Rules/Strategy 19 28-02-2002 20:04


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

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