I was wondering, if you could help me.
I have a daisy chain of 6 shift registers (CD4021BE). 42 Hall sensors
(with 10k pullup resistor) are connected to the inputs.
6 inputs are not used, they are connected via 10K pullup resistor to
VCC(5v).
As micro controller I use a teensy 3.2. The latch pin is connected to
port 3,
the clock pin to port 4 and the data pin to port 2 of teensy.
This works fine.
In the same circute I use one shift register more(stand alone), their
pins are connect as following.
Latch pin to port 16 of teensy
Clock pin to port 17 of teensy
Data pin to port 6 of teensy.
The inputs of this register are connected to mechanical switches (also
with 10K pullup resistor).
My problem is: The shift register gives me alwasy a byte of 0, that
means, there is no state change
regardless of switching the inputs.
Is the reason for the fault may be that I do not use PWM ports of teensy for
the clock and the latch singnals?
I have a daisy chain of 6 shift registers (CD4021BE). 42 Hall sensors
(with 10k pullup resistor) are connected to the inputs.
6 inputs are not used, they are connected via 10K pullup resistor to
VCC(5v).
As micro controller I use a teensy 3.2. The latch pin is connected to
port 3,
the clock pin to port 4 and the data pin to port 2 of teensy.
This works fine.
In the same circute I use one shift register more(stand alone), their
pins are connect as following.
Latch pin to port 16 of teensy
Clock pin to port 17 of teensy
Data pin to port 6 of teensy.
The inputs of this register are connected to mechanical switches (also
with 10K pullup resistor).
My problem is: The shift register gives me alwasy a byte of 0, that
means, there is no state change
regardless of switching the inputs.
Is the reason for the fault may be that I do not use PWM ports of teensy for
the clock and the latch singnals?