Go to Post Just be nice. It works better in the long run. - Libby K [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-02-2004, 11:34
actorindp actorindp is offline
Registered User
#0270
 
Join Date: Jan 2004
Location: Long Island, New York
Posts: 11
actorindp is on a distinguished road
Problems with interrupt timer

Hey all.

I'm using the Innovation First White Paper to try to figure out interrupt drive timers.

I think I've done what they've asked except when I goto complie I get the following errors:

C:\robotics\DEFAULT-CODE-NR\user_routines.c:162:Error [1105] symbol 'T1C0N' has not been defined
C:\robotics\DEFAULT-CODE-NR\user_routines.c:162:Error [1101] lvalue required
C:\robotics\DEFAULT-CODE-NR\user_routines.c:166:Error [1205] unknown member 'TMR1Ip' in '__tag_86'
C:\robotics\DEFAULT-CODE-NR\user_routines.c:166:Error [1131] type mismatch in assignment


This is what i added to User_Initialization after "Add any other initialization code here" -- Is there where I went wrong?

T1C0N = 0x30;
TMR1H = 0x85;
TMR1L = 0xED;
/* T1CONbits.TMR1ON = 1; */
IPR1bits.TMR1Ip = 0;
PIE1bits.TMR1IE = 1;
INTCONbits.GIEL = 1;

I commented out the start timer cause im starting it with the click of a button.

Thanks for your help!
-Nick


OH Man guys nevermind. After the post I realized I should check my typing next time. I had a zero in T1CON and also as you can see a lowercase P in IPR1bits

Thanks anyway! lol

Last edited by actorindp : 20-02-2004 at 11:37. Reason: Duggg
 


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
Interrupt timer, executing code asap? SeanCassidy Programming 10 07-03-2004 01:47
Interrupt Handlers and Variable Scope kaszeta Programming 2 14-02-2004 18:30
Easy interrupt setup steven114 Programming 3 04-02-2004 00:07
Interrupts Questions mightywombat Programming 0 03-01-2004 14:50
Joystick problems archiver 2001 3 24-06-2002 02:40


All times are GMT -5. The time now is 04:22.

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