42.6.3.9 Output Data Formats
The Analog/Digital core provides up to 12-bits of resolution which are available in registers CHRDYDAT and PFFDATA as 16 bits. The 12-bit ADC output data is translated into a 16-bit format specified by CONFIG[n].CHNCFG2.FRACTk. Additionally, the CONFIG[n].CHNCFG2.SIGNk bit specifies the data format as unsigned, or two’s complementary signed.
The following table shows the four cases of the channel index k 16-bit output data format depending on the values [ FRACTk ,SIGNk ]:
FRACTk | SIGNk | 16-bit Output Data Format |
---|---|---|
s = sign bit d = mantissa value bit | ||
0 | 0 | 0000 dddd dddd dddd |
0 | 1 | ssss sddd dddd dddd |
1 | 0 | dddd dddd dddd 0000 |
1 | 1 | sddd dddd dddd 0000 |