Bonjour à tous,
Je suis en train de me prendre sévèrement la tete avec le principe de fonctionnement de la commande d'interruption SETINT
Je ne comprends pas l'explication du manuel :
More detailed SETINT explanation.
The SETINT must be followed by two numbers - a ‘compare with value’ (input)
and an ‘input mask’ (mask) in that order. It is normal to display these numbers in
binary format, as it makes it more clear which pins are ‘active’. In binary format
input7 is on the left and input0 is on the right.
The second number, the ‘input mask’, defines which pins are to be checked to see
if an interrupt is to be generated ...
- %00000001 will check input pin 0
- %00000010 will check input pin 1
- %01000000 will check input pin 6
- %10000000 will check input pin 7
01000000 en décimal correspond à 64 et non à 6, alors qu'ils disent " will check input pin 6 " , je devrais avoir 110 et non 01000000 ...?
Il y'a surement quelque chose que j'ai du louper.
Si quelqu'un peut m'expliquer ...
Merci !
Emile
Je suis en train de me prendre sévèrement la tete avec le principe de fonctionnement de la commande d'interruption SETINT
Je ne comprends pas l'explication du manuel :
More detailed SETINT explanation.
The SETINT must be followed by two numbers - a ‘compare with value’ (input)
and an ‘input mask’ (mask) in that order. It is normal to display these numbers in
binary format, as it makes it more clear which pins are ‘active’. In binary format
input7 is on the left and input0 is on the right.
The second number, the ‘input mask’, defines which pins are to be checked to see
if an interrupt is to be generated ...
- %00000001 will check input pin 0
- %00000010 will check input pin 1
- %01000000 will check input pin 6
- %10000000 will check input pin 7
01000000 en décimal correspond à 64 et non à 6, alors qu'ils disent " will check input pin 6 " , je devrais avoir 110 et non 01000000 ...?
Il y'a surement quelque chose que j'ai du louper.
Si quelqu'un peut m'expliquer ...
Merci !
Emile