Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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.
 

xxtigerxx

Advanced Member level 1
Joined
Jun 5, 2001
Messages
444
Helped
38
Reputation
76
Reaction score
32
Trophy points
1,308
Location
Greece
Activity points
2,903
INTERRUPTS IN C

every compiler has his enique interrupt routines..

some compiler has pragma ... like IAR

tell me the compiler that you are working...
 

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
Re: INTERRUPTS IN C

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

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,939
INTERRUPTS IN C

can you explain more clear..

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

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
636
Reputation
1,270
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
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.
 

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
Re: INTERRUPTS IN C

I want to use parallel and serial port interrupts.
 

rockywong

Newbie level 5
Joined
Jan 20, 2006
Messages
8
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
Beijing
Activity points
1,347
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:)
 

xxtigerxx

Advanced Member level 1
Joined
Jun 5, 2001
Messages
444
Helped
38
Reputation
76
Reaction score
32
Trophy points
1,308
Location
Greece
Activity points
2,903
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top