Waveform Generator (Two DAC examples)

Post your cool example code here.
stevestrong
Posts: 1811
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Waveform Generator (Two DAC examples)

Post by stevestrong » Sat Oct 21, 2017 9:18 am

The code you are using is for PT8211.
For TDA1543, you have to :
- exchange the high and low bytes order (it requires LSB then MSB, while your code is sending MSB then LSB)
- the TDA is fed with 5V, the STM32F1 is working with 3.3V - level adaptation may be necessary

EDIT
- the signal values may need adaptation, because the lowest code word -32768 = 8000h yields the largest, the highest code word 32767 = 7FFFh the smallest voltage.
(Beachte: Das niedrigste Kodewort -32768 = 8000h ergibt die größte, das höchste Kodewort 32767 = 7FFFh die kleinste Spannung)
german link: https://www-user.tu-chemnitz.de/~heha/M ... DA1543.htm

escarneiro
Posts: 8
Joined: Sun Apr 16, 2017 9:17 pm

Re: Waveform Generator (Two DAC examples)

Post by escarneiro » Sun Oct 22, 2017 2:40 am

stevestrong wrote:
Sat Oct 21, 2017 9:18 am
The code you are using is for PT8211.
For TDA1543, you have to :
- exchange the high and low bytes order (it requires LSB then MSB, while your code is sending MSB then LSB)
- the TDA is fed with 5V, the STM32F1 is working with 3.3V - level adaptation may be necessary

EDIT
- the signal values may need adaptation, because the lowest code word -32768 = 8000h yields the largest, the highest code word 32767 = 7FFFh the smallest voltage.
(Beachte: Das niedrigste Kodewort -32768 = 8000h ergibt die größte, das höchste Kodewort 32767 = 7FFFh die kleinste Spannung)
german link: https://www-user.tu-chemnitz.de/~heha/M ... DA1543.htm
Danke! Ich werde es mal gucken.

Post Reply