|
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
|