This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC8562-Q1: Linux Device Driver requirement

Part Number: DAC8562-Q1
Other Parts Discussed in Thread: DAC8562

Tool/software:

Hi TI Team,

We are developing a device with DAC8562Q1 in our design and we are in need of Linux device driver for it. Please send us the Linux device driver if it's available. Please find the kernel and OS version details below.

OS Version : Android 12

Kernel Version : v4.19

Regards,
Ranjith Kumar

  • Hi Ranjith, 

    We do not have a linux driver. This device uses a standard 24-bit SPI frame with a 8-bit command byte and 16-bit DAC data. There are likely linux example to help you get started with getting SPI up and running. 

    The 8-bit command structure is as shown (rally 6-bits as the first two bits are don't care):

    Best,

    Katlynne Jones

  • Hi Katlynne,

    Thanks for your detailed information.

    We have a code for reading an audio file and writing it to the SPI interface, however it will be helpful if you can provide us with the sample SPI code which can be integrated with Linux for reading an audio file and sending it to the DAC8562 as per the IC's specification.


    Regards,
    Ranjith Kumar.

  • Hi Ranjith, 

    I do not have these examples. You'd need to configure your existing SPI code to shift new data on the rising edge and then send out SPI data based on the commands you want to send to the DAC (as shown in table 17 in the datahseet). 

    Depending on the SPI driver you have, there might be a fully integrated write function where you just need to call the function with the full data you are sending, or let's say "semi-integrated" where you call individual tx or rx commands to send and receive bytes. 

    If the driver you have is the latter, your sequence would look something like:

    Set /SYNC low

    tx = byte 3 (command)

    tx = byte 2 (DB 15-8)

    tx = byte 1 (DB 7-0)

    Set /SYNC high. 

    An example to set an immediate output to DAC-A to mid-scale would be:

    Set /SYNC low

    tx = 0x18

    tx = 0x80

    tx = 0x00

    Set /SYNC high. 

    Best,

    Katlynne Jones

  • Hi Katlynne,

    Thanks for the information. We will proceed further with the information provided by you.


    Regards,
    Ranjith Kumar