7.6.6.7 Data Format
Data converted by the filters of the PDMC are 24 bits long. PDMC_RHR can be configured to send data with different formats. The available configurations are defined by the bit fields PDMC_MR.RHRJUSTIF, PDMC_MR.RHRMSB, PDMC_CFGR.PACK and PDMC_CFGR.DATAL and are described in the following table:
PACK | RHRMSB | RHRJUSTIF | DATAL | RHR Register Description |
---|---|---|---|---|
0 | 0 | x | 0 | 24-bit long data located on the LSBs. The MSB (bits 31 to 24) contains the index of the channel that is being sent. Data are located on PDMC_RHR[23:0]. |
0 | 0 | x | 1 | 24-bit long data located on the LSBs. The MSB (bits 31 to 24) contains the index of the channel that is being sent. Data are located on PDMC_RHR[23:0]. |
0 | 0 | x | 2 | 20-bit long data located on the LSBs. The MSB (bits 31 to 24) contains the index of the channel that is being sent. Data are located on PDMC_RHR[19:0]. |
0 | 0 | x | 3 | 16-bit long data located on the LSBs. The MSB (bits 31 to 24) contains the index of the channel that is being sent. Data are located on PDMC_RHR[15:0]. |
0 | 0 | x | 4 | 8-bit long data located on the LSBs. The MSB (bits 31 to 24) contains the index of the channel that is being sent. Data are located on PDMC_RHR[7:0]. |
0 | 1 | 0 | 0 | 24-bit long data located on the LSBs (bits 23 to 0). MSBs contains the sign extension. |
0 | 1 | 0 | 1 | 32-bit long data |
0 | 1 | 0 | 2 | 20-bit long data located on the LSBs (bits 19 to 0). MSBs contains the sign extension. |
0 | 1 | 0 | 3 | 16-bit long data located on the LSBs (bits 15 to 0). MSBs contains the sign extension. |
0 | 1 | 0 | 4 | 8-bit long data located on the LSBs (bits 7 to 0). MSBs contains the sign extension. |
0 | 1 | 1 | 0 | 24-bit long data located on the MSBs (bits 31 to 8). |
0 | 1 | 1 | 1 | 32-bit long data located on the RHR register |
0 | 1 | 1 | 2 | 20-bit long data located on the MSBs (bits 31 to 12) |
0 | 1 | 1 | 3 | 16-bit long data located on the MSBs (bits 31 to 16) |
0 | 1 | 1 | 4 | 8-bit long data located on the MSBs (bits 31 to 24) |
1 | x | x | 0 | 24-bit long data packed. This is a compact packing of the data. |
1 | x | x | 1 | 32-bit long data located on the RHR register |
1 | x | x | 2 | Not applicable |
1 | x | x | 3 | 16-bit long data packed. LSB (bits 15 to 0) contains 16-bit data from one channel and MSB (bits 31 to 24) contains the value of the next channel data |
1 | x | x | 4 | Not applicable |