GPIO Problem about 9s12dg128b

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

GPIO Problem about 9s12dg128b

1,703 Views
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
Labels (1)
0 Kudos
2 Replies

437 Views
imajeff
Contributor III
I would write 0 to DDRH, wait at least 2 cycles, then read PORTH.
0 Kudos

437 Views
Little_mouse
Contributor I
:smileysurprised:
Thanks
0 Kudos