Hi,
klar, könnte den 3.3v ausgang nutzen, aber laut datenblatt benötigt der wohl 250mA...kann das sein?
(siehe 16.1 / Seite 84)
VDD Supply Voltage 3.14 - 3.45 V
IDD Operating Current — 250 mA VDD = 3.45V, FCLK = 10 MHz, SO = Open
Kann ich dann überhaupt den 5v ausgang problemlos nutzen?
Nein nicht ganz so, SPI kann für mehrere GEräte genutzt werden wobei Clock Din un Dout paralell an alle Geräte gehen CS (chip select) braucht aber jedes Gerät privat für sich. Also braucht es n CS ausgänge für n Geräte.
Was heißst das?
Sowohl der Enc also auch das TLC benötigen PIN 10 (=CS). Kann ich jeden beliebligen PIN als weiteren CS PIN schalten?
Steh da grad aufm Schlauch
Danke
EDIT///
ok, scheint zu gehen:
It is possible to use a pin other than pin 10 as the slave select (SS) pin. For example, the Arduino Ethernet shield uses pin 4 to control the SPI connection to the on-board SD card, and pin 10 to control the connection to the Ethernet controller.
Allerdings find ich keine Infos dazu, wie bzw wo ich die Belegung anpasse?
EDIT 2///
Uwe, aus einem älteren Beitrag diesbzgl habe ich noch folgendes von dir als feedback erhalten:
(hatte ich irgendwie vergessen):
So wie ich das sehe benutzt das Ethernetshield die SPI Schnittstelle. Der TLC auch aber ohne CS (Chip Select) Darum können beide nicht gleichzeitig funktionieren da das TLC sich immer angesprochen fühlt.
Lösung: dem TLC mittels einiger AND Gatter auf SCLK und SIN zu einem CS verhelfen.
Ist das wirklich so? Kannst du mir beschreiben, wie ich hier so ein AND Gatter integriere?
Hier nochmal die PIN BHelegung des TLCs:
XERR : open collector, wire or-ed output that lets you know a TLC5940 is over heated or has a burnt out LED. We can ignore this as it will always be on unless you have current using elements on all of the outputs.
SOUT: serial data out from the TLC5940. Unless you wish to try to read the error bits you do not need this to come to the Arduino. If you have more than one TLC5940 this is the line you daisy chain to the SIN of the next package.
DCPRG: this selects the source of the current limiter register, you could just tie it high.
XLAT: you will need this to latch data after shifting.
SCLK: you will need this to shift data.
SIN: serial in to TLC5940, this is the output from the Arduino.
VPRG: you need this to select either the current limit registers or the duty cycle registers for writing.
GSCLK: this is the clock for the PWM. We will reprogram TIMER2 in the Arduino to make this signal. That will cost us the native PWM on that timer, digital 11 on a mega8, 11 and 3 on a mega168.
BLANK: this marks the end of a PWM cycle in addition to blanking the output. We will reprogram TIMER1 to generate this signal. That will cost us the native PWMs on digital 9 and digital 10. (Tie a real, physical pull-up resistor on this line to keep things blanked while your Arduino boots. Depending on your hardware, it is possible that the TLC5940 would come up in a configuration that would dissipate too much power.)