CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

what is meaning of using in isr

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mvreddy_222



Joined: 12 Jan 2007
Posts: 5
Location: India

View user's profile Send private message Yahoo Messenger

what is meaning of using in isr
PostPosted: Tue Jan 23, 2007 5:44 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Tue Jan 23, 2007 6:05 am     Reply with quote

That's not CCS's syntax. It must be for another complier.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Tue Jan 23, 2007 9:51 am     Reply with quote

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

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Jan 24, 2007 5:51 am     Reply with quote

thank you rnielsen for your reply.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group