Go to Post Leave it to CD to misconstrue a joke this badly. - connor.worley [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 09-03-2007, 09:12
evan_wilson's Avatar
evan_wilson evan_wilson is offline
QUARK
AKA: Evan Wilson
FRC #2172 (Street Legal)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Elyria, OH
Posts: 15
evan_wilson is an unknown quantity at this point
Send a message via AIM to evan_wilson Send a message via Yahoo to evan_wilson
Question Where did ifi_picdefs.h get to?

I'm compiling Timer code, but when I brought the code into my 2007 controller project (I DID change the linkers scripts and libraries) it gives me the error that T2CONbits, etc are not defined. After a little digging, I found that in the 2004 controller project, ifi_picdefs.h is where these structs are defined. What happened to this file for 2007? And is it possible to use the same file just pasted into the 2007 controller code?

Thanks
  #2   Spotlight this post!  
Unread 09-03-2007, 09:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Where did ifi_picdefs.h get to?

The processor changed between 2005 and 2006. Definitions for the older 18F8520 PIC might not work perfectly with the newer 18F8722.
  #3   Spotlight this post!  
Unread 09-03-2007, 17:34
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: Where did ifi_picdefs.h get to?

Add the following to your code instead of ifi_picdefs.h. This is the standard file included in 2006/2007 ifi_default.h. This file is supplied by the mcc18 compiler.

Code:
#include <p18cxxx.h>
It will include the correct file depending on the chip selected in MPLAB configuration. For 2006/2007 controllers it will include p18f8722.h out of the mcc18/h/ directory. This file contains all definitions you are looking for that were in ifi_picdefs.

Code:
/*******************************************************************************
* FILE NAME: ifi_default.h
*
* DESCRIPTION: 
*  This file contains important data definitions.              
*
*  DO NOT EDIT THIS FILE!
*******************************************************************************/

#ifndef __ifi_default_h_
#define __ifi_default_h_

#include <p18cxxx.h>
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
So what did we get right? geeknerd99 Chit-Chat 9 10-05-2006 13:11
Where did your team get its machine tools? Rickertsen2 Team Organization 21 02-04-2006 23:17
Where did you get your Gyro? roboticsjenkins Electrical 9 08-02-2005 00:16
Where did first get the Edu Batteries hedgehogger General Forum 7 28-02-2004 01:09
Where did you get your robot's dimensions? Jan Olligs Inventor 6 09-04-2002 22:17


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

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