D
[email protected]
- Jan 1, 1970
- 0
Hi all,
I'm trying to get a 74hc165 to work.(datasheet:
http://www.farnell.com/datasheets/72353.pdf).
I'm operating it as follows, but I'm not sure if its correct because
when I make one input high, I read the serial out like all inputs were
high:
<code>
// Shift bits to register
LOAD = low
LOAD = high
for (i = 0; i < 8; i++)
{
CLOCK = low
CLOCK = high
// Read DATA
if (DATA == 1)
set bit num i.
}
</code>
Does anyone know why this is giving me all '1' when only one input is
high?
Thanks,
Greetings Roxlu
I'm trying to get a 74hc165 to work.(datasheet:
http://www.farnell.com/datasheets/72353.pdf).
I'm operating it as follows, but I'm not sure if its correct because
when I make one input high, I read the serial out like all inputs were
high:
<code>
// Shift bits to register
LOAD = low
LOAD = high
for (i = 0; i < 8; i++)
{
CLOCK = low
CLOCK = high
// Read DATA
if (DATA == 1)
set bit num i.
}
</code>
Does anyone know why this is giving me all '1' when only one input is
high?
Thanks,
Greetings Roxlu