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.

PGA400-Q1: Can the digital data be output with SPI or I2C?

Part Number: PGA400-Q1

Hello support team,

I have a question about PGA400-Q1.

I think that PGA400-Q1 can output "ADC Decimator Output" with SPI.
Then, can the data which is linearly compensated or temperature corrected be output with SPI or I2C?
(The data which would be input to DAC of analog output VOUT, etc.)

Best regards,
M. Tachibana

  • Hello,

    Yes, you can access the values that result from your compensation algorithms through the digital interfaces. However, when the 8051 microcontroller is running (not in reset) you are unable to access most of the registers. The only registers that can be accessed by the digital interfaces when the micro is running or the COMBUF registers. You will need to pass the values to the COMBUF via an interrupt service routine so that they can be read through the digital interfaces.

    Regards,
  • Hello Cummins-san,

    Thank you very much for teaching me.
    So could you teach me the concrete way to read out the compensated data digitally?

    Best regards,
    M. Tachibana

  • Hello Cummins-san,

    I understood that the compensated digital data can be output through the communication buffer (COMBUF).
    However, I do not know how to pass the digital data to COMBUF via an interrupt service routine. Could you teach me about this method concretelly.

    By the way, COMBUF that can be accessed from the register is 8 bits.
    Is it possible to output only 8 bits of digital data?
    Or is it necessary to pass the data to COMBUF by separating upper and lower bits?

    Sincerely
    M. Tachibana
  • Hello,

    There is no reply from anyone, so I will ask again.
    Could you concretely teach me how to pass the digital data to COMBUF via an interrupt service routine.
    And is the digital data possible to output only 8 bits of digital data?
    Or is it necessary to pass the data to COMBUF by separating upper and lower bits?

    Sincerely
    M. Tachibana
  • Hello,

    There are registers of DAC1 [11: 0] and DAC2 [11: 0] at 0xB9 to 0xBB of ESFR.
    Can I obtain compensated data by reading these registers?

    I would appreciate it if you could share me the information.

    Sincerely
    M. Tachibana