|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with Timers on PIC18F in C18 (what the 2004-2008 RCs had)
I'm having trouble with this piece of code.
Code:
if(sManualUp == 0 && oldManualUp == 1){
mZEnable = 0;
mZSleep = 0;
mXSleep = 1;
mXEnable = 1;
mDirection = 1;
OpenTimer0( TIMER_INT_ON & T0_16BIT & T0_SOURCE_INT & T0_PS_1_1 );
INTCON2bits.TMR0IP = 1;
INTCONbits.TMR0IE = 1;
INTCONbits.GIE = 1;
INTCONbits.PEIE = 1;
WriteTimer0(45535);
}else if(sManualUp == 1 && oldManualUp == 0){
INTCONbits.GIE = 0;
INTCONbits.PEIE = 0;
INTCONbits.TMR0IE = 0;
}
oldManualUp = sManualUp;
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Kevin Watson's 2008 code | 2526 | Programming | 6 | 05-02-2008 16:53 |
| Please help. I've had it with this camera | Inverted | Programming | 6 | 14-01-2007 22:35 |
| What are with the Ls in Kevin's code??!!! HELP!!! | RbtGal1351 | Programming | 2 | 18-02-2005 16:57 |
| What type of timers for autonomous? | thoughtful | Programming | 1 | 09-12-2003 02:28 |
| What team had the best human player? | charlie_grr | General Forum | 16 | 11-06-2003 12:20 |