GPIO Problem about 9s12dg128b

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

GPIO Problem about 9s12dg128b

1,724件の閲覧回数
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 返答(返信)

458件の閲覧回数
imajeff
Contributor III
I would write 0 to DDRH, wait at least 2 cycles, then read PORTH.
0 件の賞賛

458件の閲覧回数
Little_mouse
Contributor I
:smileysurprised:
Thanks
0 件の賞賛