Ich werde nun den ursprünglich erwähnten PCA9530 einsetzen, da ich ihn
bei Reichelt bekomme und eine Adressierung per Pin möglich ist. In der
Schaltung sitzen zwei Module die jeweils um ein PCA9530 erweitert
werden. Beide Module hängen an einem I2C Master.
Auszug aus Datenblatt:
Pins used as GPIOs
6.4
LEDn pins not used to control LEDs can be used as General Purpose I/Os
(GPIOs).
For use as input, set LEDn to high-impedance (00) and then read the pin
state via the INPUT register.
For use as output, connect external pull-up resistor to the pin and size
it according to the DC recommended operating characteristics. LEDn
output pin is HIGH when the output is programmed as high-impedance, and
LOW when the output is programmed LOW through the ‘LED selector’
register LS0. The output can be pulse-width controlled when PWM0 or PWM1
are used.
Jetzt stellt sich die Frage wie hoch ich den Pull Up Widerstand
dimensionieren muss, wenn ich das oben erwähnte 21mA Relais ansteuern
will?
Gruß
Technikus