Quote:
Originally Posted by meynaf
Rather than Forbid(), try Disable(). Interrupts may read the port and so your code won't get anything meaningful out of it.
|
If it was so then the interrupt effect can be noted when there was no Forbid call but without call to Forbid your code work. So it is a kind of a mystery. However you are right it works with Disable. Thank you very much again.
But I think that the code with interrupts would be better. So I have to do some more study. Indeed, if somebody has a code to set a keyboard interrupt handler it would help.