|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
|
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 |