View Single Post
Old 01 December 2018, 14:55   #52
litwr
Registered User
 
Join Date: Mar 2016
Location: Ozherele
Posts: 229
Quote:
Originally Posted by meynaf View Post
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.
litwr is offline  
 
Page generated in 0.06432 seconds with 11 queries