PIC and TIMER
Posted: Thu May 15, 2008 4:44 am
Hi all,
I'v two questions:
1) What is the purpose (benefit, interret) of the Mode 2 of the Intel TIMER 8253/8254 ?
2) I need to write "hello" on /home/test.txt. When pressing CTRL+C Cominaison.
I did it by derouting the SIGINT signal.
Now i cant to do it by reprogramming the PIC (to modify an entry on the vector of interrupt) of my computer.
Some ideas ? examples ?
thanks a lot.
=== in french ===
Bonjour tout le monde,
voila en fait j'ai deux questions;
1) je voulais savoir l'interret du mode 2 du timer 8253 de intel. Il existe plusieurs modes, mais je voulais savoir a quoi bon en avoir plusieurs, si ils peuvent pratiquement tous faire la même chose.
Le plus important pour moi est de savoir pourquoi ce mode 2 existe lol.
2) je voulais savoir si on peut reprogrammer le pic de mon ordinateur afin de dérouter une interruption, par exemple utiliser la 50H pour ecrire dans un fichier, et la provoquer par un signal quelconque (style SIGINT, du a la combinaison ctrl+c).
Merci de l'aide, je n'arrive pas a m'y retrouver.
Nelson
I'v two questions:
1) What is the purpose (benefit, interret) of the Mode 2 of the Intel TIMER 8253/8254 ?
2) I need to write "hello" on /home/test.txt. When pressing CTRL+C Cominaison.
I did it by derouting the SIGINT signal.
Now i cant to do it by reprogramming the PIC (to modify an entry on the vector of interrupt) of my computer.
Some ideas ? examples ?
thanks a lot.
=== in french ===
Bonjour tout le monde,
voila en fait j'ai deux questions;
1) je voulais savoir l'interret du mode 2 du timer 8253 de intel. Il existe plusieurs modes, mais je voulais savoir a quoi bon en avoir plusieurs, si ils peuvent pratiquement tous faire la même chose.
Le plus important pour moi est de savoir pourquoi ce mode 2 existe lol.
2) je voulais savoir si on peut reprogrammer le pic de mon ordinateur afin de dérouter une interruption, par exemple utiliser la 50H pour ecrire dans un fichier, et la provoquer par un signal quelconque (style SIGINT, du a la combinaison ctrl+c).
Merci de l'aide, je n'arrive pas a m'y retrouver.
Nelson