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.

RM42 + TI DAC8162.

Other Parts Discussed in Thread: DAC8162, HALCOGEN

Greetings.

I try to control the TI DAC8162 from RM42 by SPI, but DAC requires the packet in the unsigned int 24-bit format. At the same time, this type is not declared in CCS, how to solve this problem?

  • To communicate with DAC8162, you will need to to do two SPI writes (one 16 bit and 1 8bit). You will also need to hold CS pin low between two writes. In order to achieve this, you will need to define two data format (one for 16 bit data and one for 8 bit data). You will also need to write SPI DAT1 register to send the data. In each write, you need to update the control field in SPIDAT1. In addition to use different data format, you also need to set the CSHOLD bit to 1 in the first write to keep the CS pin low between the two writes. .Halcogen does not support this function directly. You will need to modify the halcogen function or write your own.

    Thanks and regards,

    Zhaohong