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.

LAUNCHXL-F28P65X: Why does ADCPPBxRESULT register contain 32 bits?

Part Number: LAUNCHXL-F28P65X

Hi Team,

I had a query regarding the ADCPPBxRESULT register of PPB block. This register is of 32 bits where MSB 16 bits are used for determining the sign of the result and the rest for storing the result. My query is: what is the requirement of 16 bits when the sign bit can be stored using only one bit?

Thanks & Regards,

Sayan

  • Hello Sayan,

    It is not possible to have a 17-bit register. The register is either 16 bits or 32 bits. 16 bits are required for the result value itself, so the remaining bits are mirrored to reflect the sign. Bits [31:16] will always read the same, either 0 or 1.

    From an application code standpoint, you only need to care about bit 16 (in 16-bit resolution mode).

    Best regards,
    Ibukun