Posted: Wed Mar 28, 2018 4:20 pm Post subject: KBD Interrupt on AT89C51ED2
Hi,
I'm dealing with a AT89C51ED2. I'd like to use the kbd-interrupt, which rises when input on P1.x changes.
But when code is compiled the following error come up:
Error 13: UNKNOWN INTERRUPT [KBD]
Is there a way to solve that problem or isn't this interrupt supported by BASCOM?
Thank you for your help.
Code:
$regfile"89C51ED2.dat" $baud=9600'set your own baudrate $crystal=20000000
Dim S1 AsString*16 Dim I AsInteger Dim Count AsInteger
On Kbd Kbd_init
EnableInterrupts Enable Kbd 'set your own crystal frequen
Do Print Count
If Count >10Then
I =Makeint(p1 , P4)
S1 =Bin(i) Print"Port1: "; S1
Count =0 End if Loop End
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum