GPIO Problem about 9s12dg128b

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

GPIO Problem about 9s12dg128b

2,533 次查看
Little_mouse
Contributor I
hi,
I'd like to use PORTH as GPIO for the general 8-bit digital data input.  Is it enough if I only define the Port H Data Direction Register (DDRH)?
Thanks
标签 (1)
0 项奖励
回复
2 回复数

1,267 次查看
imajeff
Contributor III
I would write 0 to DDRH, wait at least 2 cycles, then read PORTH.
0 项奖励
回复

1,267 次查看
Little_mouse
Contributor I
:smileysurprised:
Thanks
0 项奖励
回复