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.

AFE781H1: DAC in UART Break mode, waveform confirmation

Part Number: AFE781H1

Tool/software:

Hi,

I have connected MSPM0 with AFE781H1 device. For confirmation, I am doing giving command for  "internal oscillator to be driven on CLKO pin". 

However looks like there is a configuration error and don't see CLOCK signals on the CLKO pin.

 

My code is as per below:

set_register_bits(CONFIG_ADDR, 0x0800 | 0x0060);
write_register(DAC_OUT_2, 0x1234);
uint16_t data = read_register(DAC_GAIN_ADDR);
data = read_register(DAC_OUT_2);

Can you suggest from waveform if any bit stream is incorrect.  I am using UART in 9600 baud rate.

Regards,

Bhushan

  • Bhushan,


    I would test the UART Break communication with both a write and a read just to check that the device is listening. However, I would start by checking the digital connections against Figure 7-27 in the data sheet:

    Then you enter UBM mode with a write of 0x00 0x01 to the 0x16 (UBM) register. This should get the device into UBM mode, and I think it automatically sets the device to 9600 baud. Then you can read the register back. I took the following from a transaction that I found in another post that shows a write and a read. The write starts the device in UBM mode, and then the register is read back:

    Using both write and read, you can at least verify that the device is receiving the data.


    Joseph Wu

  • This helped. Additionally, there were some transaction on the SDI pin, that was causing problem.