Keyboard Interruptions in S08QG8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Keyboard Interruptions in S08QG8

1,743件の閲覧回数
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)
ラベル(1)
0 件の賞賛
返信
1 返信

590件の閲覧回数
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 件の賞賛
返信