473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

wants source code of shutdown in C using interrupts ?

hello,
Is there any code using interrupts .
bye
Nov 14 '05 #1
9 2189
In <11*************************@posting.google.com> sw************@yahoo.co.in (Sweety) writes:
Is there any code using interrupts .


There is no generic C code using interrupts. Such code is heavily
platform and implementation specific, so go to a newsgroup dedicated to
your platform.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #2
Sweety wrote:

Is there any code using interrupts .


No. Not here.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #3
sw************@yahoo.co.in (Sweety) writes:
hello,
Is there any code using inter
Not portably.
rupts .
bye


--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #4
Keith Thompson wrote:
sw************@yahoo.co.in (Sweety) writes:
hello,
Is there any code using inter

Not portably.

rupts .
bye



Does that mean that when you interrupted Sweety, you didn't do it
portably? :-)
Nov 14 '05 #5
red floyd <no*****@here.dude> writes:
Keith Thompson wrote:
sw************@yahoo.co.in (Sweety) writes:
hello,
Is there any code using inter

Not portably.
rupts .
bye


Does that mean that when you interrupted Sweety, you didn't do it
portably? :-)


No, it just means I didn't do it in code.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #6
On 23 Aug 2004 09:26:57 -0700, in comp.lang.c , sw************@yahoo.co.in
(Sweety) wrote:
hello,
Is there any code using interrupts .


You can't do this in Standard C. Didn't someone already tell you that?

Please go to a group specialising in your hardware, and ask there.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #7
Mark McIntyre <ma**********@spamcop.net> writes:
On 23 Aug 2004 09:26:57 -0700, in comp.lang.c , sw************@yahoo.co.in
(Sweety) wrote:
hello,
Is there any code using interrupts .


You can't do this in Standard C. Didn't someone already tell you that?

Please go to a group specialising in your hardware, and ask there.


Now that I think about it, this might refer to the facilities in
<signal.h>. (Is there a distinction between "signals" and
"interrupts"?)

To the original poster: Read your system's documentation on the
"signal" function. If this is what you're looking for, and you still
have questions after reading the documentation, come back with a more
specific question.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #8
Keith Thompson <ks***@mib.org> wrote in message news:<ln************@nuthaus.mib.org>...
Mark McIntyre <ma**********@spamcop.net> writes:
On 23 Aug 2004 09:26:57 -0700, in comp.lang.c , sw************@yahoo.co.in
(Sweety) wrote:
hello,
Is there any code using interrupts .


You can't do this in Standard C. Didn't someone already tell you that?

Please go to a group specialising in your hardware, and ask there.


Now that I think about it, this might refer to the facilities in
<signal.h>. (Is there a distinction between "signals" and
"interrupts"?)

To the original poster: Read your system's documentation on the
"signal" function. If this is what you're looking for, and you still
have questions after reading the documentation, come back with a more
specific question.


Hello Sweety, we don't do home work or office assignments here. It
would be elegant that you hire some one for that.

-Paul.
Nov 14 '05 #9
In <ln************@nuthaus.mib.org> Keith Thompson <ks***@mib.org> writes:
Mark McIntyre <ma**********@spamcop.net> writes:
On 23 Aug 2004 09:26:57 -0700, in comp.lang.c , sw************@yahoo.co.in
(Sweety) wrote:
>hello,
> Is there any code using interrupts .


You can't do this in Standard C. Didn't someone already tell you that?

Please go to a group specialising in your hardware, and ask there.


Now that I think about it, this might refer to the facilities in
<signal.h>. (Is there a distinction between "signals" and
"interrupts"?)


Yup, a fundamental one: an signal handler is an ordinary C function,
treated by the compiler like any other function (the compiler has no
idea it is compiling a signal handler) while an interrupt handler must
save *all* the CPU state it is disturbing upon entry and restore it
before returning. On most CPUs, it must also reenable the interrupt
that invoked it, usually using a different kind of return instruction
("return from interrupt" instead of "return from subroutine").

The declaration of a signal handler is:

void handler(int);

while the typical declaration of an interrupt handler is something like

void interrupt inthandler(void);

where the "interrupt" extension tells the compiler to add all the code
for performing the actions described above.

As interrupt handlers belong to the OS kernel, the need for such an
extension is limited to freestanding implementations and to very
primitive hosted platforms, like MSDOS, where there is no difference
between user code and OS code.

Because the serial port drivers of MSDOS are not interrupt driven,
any user program that needs *reliable* serial communication MUST
provide its own interrupt handler(s) for the serial port(s) it uses.
Easily done in C, because most MSDOS compilers provide the "interrupt"
extension described above along with library support for accessing the
I/O ports.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Monica Ferrero | last post by:
Hi! I'm not sure if this is the most adequate mySQL list for this post. If not, please indicat me which one I should use... I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the...
5
by: dave.harper | last post by:
I started learning C++ a few days ago, and I've run into a couple questions regarding what is included in the executable when the source is compiled... I've written a simple, 1-D rocket predicting...
11
by: Ben Collingsworth | last post by:
Anyone have some efficient source code for implementing a ring buffer?
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
1
by: Ram | last post by:
Hey, I have a ASP.NET web application, And whenever I try to debug a JScript/VBScript block (using- "stop", or - "debugger;") I get the following error: "There Is No Source Code Available For The...
1
by: Titeuf | last post by:
Hi, I work under VS2003 and I want to know how get the shutdown reason code ? On msdn nothing found...No api :( Have you an idea ? Thank's
1
by: Avi G | last post by:
Hi, i have this code private void ShutDown_Click(object sender, EventArgs e) { if (checkBox1.Checked) { Process ShutDown = new Process();
4
by: Polar | last post by:
Hello everyone! I'm new here. I am doing a project, Digital Compass Navigation Aids. It consists of the 1490 Digital Compass, a P18F4620 Microcontroller, ISD2560 voice record/playback chip LM4808M...
4
by: jmarcrum | last post by:
I have to modify this assembly code in order to make it use interrupts. Right now, when I push button 1 on the microprocessor the count increments once (the LED's count in binary, using only 3 LED's...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.