Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Problems with interrupt timer (http://www.chiefdelphi.com/forums/showthread.php?t=25677)

actorindp 20-02-2004 11:34

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

Astronouth7303 20-02-2004 16:59

Re: Problems with interrupt timer
 
C sucks that way, doesn't it?


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi