Using interrupts in C language

Status
Not open for further replies.

SUNBELT

Member level 2
Joined
Oct 4, 2005
Messages
42
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,652
I am trying to use interrupts in c programing, I am a beginner in this subject,
Please provide me with some basic information about this subject.
 

INTERRUPTS IN C

every compiler has his enique interrupt routines..

some compiler has pragma ... like IAR

tell me the compiler that you are working...
 

Re: INTERRUPTS IN C

I am using visual c++6 as compiler, I write c codes in win32 console application enviroment
 

INTERRUPTS IN C

can you explain more clear..

VC++ means PC programming and you want to have interrupt to the PC?
 

INTERRUPTS IN C

You may be innocently wading into very deep water. Interrupts usually involve writing a device driver. That's a very complex project in modern Windows. Win32 won't get you there.

If you explain what you are trying to build, maybe someone will know a shortcut solution.
 

Re: INTERRUPTS IN C

I want to use parallel and serial port interrupts.
 

INTERRUPTS IN C

You can try a MCU software design project.For example,a simple protocol with C in 8051.I also think PC is too big for you
 

INTERRUPTS IN C

interrupts in C in like in assembly

you just set the interrupt vector like
example
here the code for i*a*r* compiler
for avr mcu interrupt for timer 0

#pragma vector=TIMER0_OVF0_vect
__interrupt void timer0interrupt (void){


}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…