Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 27615

Forum Post: TLV5623: How Can I use TLV5623 in a wav player?

$
0
0
Part Number: TLV5623 Hi, I'm using a TLV5623 DAC converter to reproduce .WAV files. I read files from an SDCard through STM32F401RE microcontroller , and after i put the data buffer into the DAC converter using SPI protocol, but I have some problems with this IC, becouse when I start the program I don't hear anything, but if I put my hand under the board I can listen the music even if it is noisy. After many tests i don't know what is the error, therefore i ask to you how can I sove this problem. Below I show you how I have wired the IC, the program, made up with True Studio and Cube MX, and SPI settings. TLV5623 Circuit Diagram: 1:DIN->SPI_MOSI 2:SCLK->SPI_SCK 3:CS->GND becouse I have only this device 4:FS->STM32 I/O pin (PB4) 5:AGND->GND 6:REFIN-> connected to a resistor voltage divider to have on this pin 2V 7:OUT-> to the amplifier 8:VDD->5V SPI SETTINGS: MAIN PROGRAM: (Please visit the site to view this file) In this program I read 1024 bit at a time from SDCard and at every 45us I put the data, that i store into two arrays, on MOSI bus through the Timer 2 interrupt, becouse the sampling frequency of the file is 22050Hz. In this program i use HAL libraries, therefore i used a function to send data on SPI bus. I hope I have written all the information useful to solve the problem. Thanks to everyone.

Viewing all articles
Browse latest Browse all 27615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>