MC9S08RG60 Timed Keyboard Input

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MC9S08RG60 Timed Keyboard Input

跳至解决方案
1,273 次查看
Vickyg
Contributor II
Well I'm back. 
 
I can't seem to get my keyboard interupt.
 
I'm trying to set a timer and tell if a certain key is pushed a second time.
 
Can someone show me some code of a simple timed keyboard interupt timer sequence with comments.  
 
 
TIA
标签 (1)
标记 (1)
0 项奖励
1 解答
544 次查看
peg
Senior Contributor IV
Hi Vicky,
 
PTCD would normally be the data register for Port C. The place where you write to or read from to get/set port c's i/o.
 

在原帖中查看解决方案

0 项奖励
2 回复数
544 次查看
Vickyg
Contributor II
Posting here, seems to be magic.  As soon as I posted, I found what's prohibiting the keyboard interrupt.
 
Can anybody give me an idea of what PTCD does?  This setting was different and changing it enabled keyboard input, but I really can't find help on what this is, or what it does.
545 次查看
peg
Senior Contributor IV
Hi Vicky,
 
PTCD would normally be the data register for Port C. The place where you write to or read from to get/set port c's i/o.
 
0 项奖励