View previous topic :: View next topic |
Author |
Message |
mvreddy_222
Joined: 12 Jan 2007 Posts: 5 Location: India
|
what is meaning of using in isr |
Posted: Tue Jan 23, 2007 5:44 am |
|
|
In void timer2_isr (void) interrupt 11 using 1 ,what is the meaning of using 1 ,in which compiler it is used?and laso please tell me what is the meaning of interrupt 11.
below is a samlpe program i have seen.
thank u in advance
void timer2_isr (void) interrupt 11 using 1 { // CM0 interrupt
byte cnt = 0;
timer2_restart ();
if (t0_period and !(--t0_tick)) {
TCON &= 0xef; // T0 off
t0_count.b[1] = TL0; // Save T0 counter
t0_count.b[0] = TH0; //
TL0 = TH0 = 0; // Reset counter T0;
TCON |= 0x10; // T0 on
} |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Tue Jan 23, 2007 6:05 am |
|
|
That's not CCS's syntax. It must be for another complier. |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Tue Jan 23, 2007 9:51 am |
|
|
This ISR style is for the 80C51 series controller. Compilers like Franklin, Keil, Raisonance, etc... use it. Interrupt states what interrupt the routine will be triggered by and Using tells the compiler which Bank, in the controller, you want the ISR to be run from. You might want to search for a 80C51 forum to get better help. Franklin's compiler has an excellent debugging simulator and I believe they have a demo, up to 4K in code, that will allow you to test it out.
Ronald |
|
|
mvreddy_222
Joined: 12 Jan 2007 Posts: 5 Location: India
|
|
Posted: Wed Jan 24, 2007 5:51 am |
|
|
thank you rnielsen for your reply. |
|
|
|