Einen DA-Wandler an SPI

Gast #944443
Lesenswert?

Hallo, ich habe ein problem mit dem SPI-Anschluß und einem DA-Wandler. 
Es handelt sich um den TLC5628. Er hat folgende SPI-Pin´s:

DATA 4 - Serial interface digital data input. The digital code for the 
DAC is clocked into the serial interface register serially.
Each data bit is clocked into the register on the falling edge of the 
clock signal.

LDAC 13 - Load DAC. When LDAC is high, no DAC output updates occur when 
the input digital data is read into the serial
interface. The DAC outputs are only updated when LDAC is taken from high 
to low.

LOAD 12 - Serial interface load control. When LDAC is low, the falling 
edge of the LOAD signal latches the digital data into
the output latch and immediately produces the analog voltage at the DAC 
output terminal.

CLK 5 - Serial interface clock. The input digital data is shifted into 
the serial interface register on the falling edge of the clock
applied to the CLK terminal.

Pin5 kommt an den clk vom AVR, Pin4 an miso. Bei den anderen weiss ich 
nicht weiter. Könnte mir bitte jemand helfen ?

Danke !!!
Gast #973337
Lesenswert?

Hallo,

du kannst dir die Übertragungssignale im Datenblatt auf Seite 3 und 4 
ansehen.
Je nach Übertragungsart kannst du Pin 13 immer auf "low" lassen, dann 
steuerst du das Latchen direkt über die SPI Schnittstelle mit Pin12 
(LOAD) (Datenblatt... Seite 3 unten). Oder du kannst das latchen der 
Daten über beide Pins steuern... (datenblatt Seite 4).

Lg mario
Gast #973490
Lesenswert?

Ich würde eher den LDAC Pin auf Low lassen (hard-wired), damit man mit 
dem
Pin 12 über SPI das "Latchen" der Daten steuern kann.

Warum wird im Datenblatt eigentlich geschrieben das der baustein SPI 
unterstützt sondern immer nur serielle Kommunikation?
Kann ich mitn "Dave"-Tool z.B. kann normal die SPI Funktion für die 
Kommunikation verwenden?

Mario

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren