Keyboard Interruptions in S08QG8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Keyboard Interruptions in S08QG8

1,365 Views
Exelsus
Contributor II
Hello everyone, i have a doubt:

I've set the 4 pins of PortA to work with KBI, but in the datasheet only is stated that when one of the interruptions ocurr, the bit KBF in the register KBISC is set to 1, but how can i know which of the 4 pins caused the interruptions?

My best guess is to read them from PTAD but the Device Initializator won't let me set the KBI pins at the same time as PTAD inputs, is that normal?

Well and finally, i haven't the multilink cable yet, so im using Full Chip Simulation to test the program meanwhile, so, how can i simulate a keyboard interrupt from there?

Thanks in advance

(too much questions i know, but i always stick to the datasheet info, and doesn't say anything about)
Labels (1)
0 Kudos
1 Reply

212 Views
peg
Senior Contributor IV
Hi Exelsus,
 
Yes you read the port to determine which pin tripped the interrupt. It will still work as input while the KBI functionality is enabled.
This subject has been discussed many times here before, doing a forum search should reveal much more info on this subject.
 
0 Kudos