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.

code evaldrv8711

Other Parts Discussed in Thread: DRV8711

It's possible to have a more detailed explanation of the task 0  of   code evaldrv8711?
In the program I do not understand why it is used dacconverter , if  in schematic  the  tracks  of  dac is not connected to anything.
Thank you

            break;
// DAC 0 Config and Write [ OPCODE = 5 ] [ Config HB ] [ Config LB ] [ Data HB ] [ Data LB ]
      case (DAC0_UPDATE):
            DAC12_0CTL = 0;
            DAC12_0CTL = (SerialBuffer[1] * 256) + SerialBuffer[2];
            DAC12_0DAT = (SerialBuffer[3] * 256) + SerialBuffer[4];
            break;
// DAC 1 Config and Write [ OPCODE = 6 ] [ Config HB ] [ Config LB ] [ Data HB ] [ Data LB ]
      case (DAC1_UPDATE):
            DAC12_1CTL = 0;
            DAC12_1CTL = (SerialBuffer[1] * 256) + SerialBuffer[2];
            DAC12_1DAT = (SerialBuffer[3] * 256) + SerialBuffer[4];
            break;

  • Hi Francesco,

    The author of the code is not available for comment. It is my opinion that this section of code is not used for the DRV8711.

    The code was written for multiple devices. Some of the devices had a VREF input, which used this piece of code.