[ skrstevsky @ 19.05.2008. 23:55 ] @
Ako ima nekade kniga a site hardverski prekini za da gi obrabotam vo C/C++ ? Nesto kako kaj PIC so prekinite.... |
[ skrstevsky @ 19.05.2008. 23:55 ] @
[ POW R TOC H @ 20.05.2008. 00:02 ] @
Ne znam sta pitas | I have no idea what you're talking about
Molim te, srpski ili engleski | Please, Serbian or English [ skrstevsky @ 20.05.2008. 00:13 ] @
I need a book about Hardware Interrupts in computers. Something like the interrupts in PIC microcontrolers.
Example:When you insert USB Stick in the USB Port, the OS knows that it is an USB Device. You don't need to click anywhere or in your program to check all the time if there is a device.... It jyst tells that there is something... and you should process it. Need to Explain more ? [ POW R TOC H @ 20.05.2008. 00:36 ] @
No, that's explained enough. By the way, what was that language you were speaking? I can understand only a few words...
Try this : http://cnx.org/content/m12321/latest/ www.geocities.com/vsurducan/electro/PIC/lesson1-introduction.pdf http://www.phanderson.com/PIC/16C84/interrupts/interrupt_1.html http://www.hobbyprojects.com/pic_tutorials/tutorial11.html [ skrstevsky @ 20.05.2008. 03:29 ] @
I am lookinkg for a book, not fot PIC, for computers. I mention the interrupts in PIC's just to make a comparation. For example, if we use the interrupt for RB0 (when gets from 0 to 1): When it does changed, it doesn't matter where are you in the program, it just jump on adrees 0x04 and do the job whaat it should do. You don't "say" all the time
... if (PORTB!=0x80) { . // RB0 is 0 (No interrupt . } else { . //s holud be interrupt . } you just set the bits in the registers it goes like this: org 0x04{ code.... } . asm nop code code code //somehow RB0 is being changed to 1 and then then the Program Counter jumps on address 0x04. code... .. . You've got interrupts like this in computers. The simplest one is on keyboard. For example if you press the Power button the PC is shutting down. You are not checking if the button is pressed... when you press it, the OS know what to do, reads the interrupt.... P.S.It was macedonian :) moji srpski je mnogu los :) [Ovu poruku je menjao skrstevsky dana 20.05.2008. u 04:40 GMT+1] [ maksvel @ 20.05.2008. 21:57 ] @
Ima ponešto u Linux device drivers u poglavlju Interrupt handling
[ skrstevsky @ 21.05.2008. 00:37 ] @
OK, ima nesto sto koristi...
fala Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|