3.1.4 Channel Matrix Register

The CHANNEL_MATRIX register allows the users to map physical channels to logical channels. The number of available physical channels is defined by the AFE, which is determined in the AFE_SELECTION register except for the PIC32CXMTSH. Some AFEs offer a combination of single-ended and differential channels. For optimal performance when measuring low-level signals, it is recommended to use differential channels for current measurements.

The table below outlines how the physical channels (CHANNEL_x) are mapped to the supported configurations of the AFEs.

ConfigurationPhysical Channels
CHANNEL_0CHANNEL_1CHANNEL_2CHANNEL_3CHANNEL_4CHANNEL_5CHANNEL_6CHANNEL_7
1xATSENSE301IP0/IN01IP1/IN1VP1/VNIP2/IN2VP2/VNIP3/IN3VP3/VNN/A
3xMCP3910CH0+/CH0-(in MCP3910 connected to CS0 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS0 of PIC32CXMTC)CH0+/CH0-(in MCP3910 connected to CS1 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS1 of PIC32CXMTC)CH0+/CH0-(in MCP3910 connected to CS2 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS2 of PIC32CXMTC)N/AN/A
4xMCP3910CH0+/CH0-(in MCP3910 connected to CS0 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS0 of PIC32CXMTC)CH0+/CH0-(in MCP3910 connected to CS1 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS1 of PIC32CXMTC)CH0+/CH0-(in MCP3910 connected to CS2 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS2 of PIC32CXMTC)CH0+/CH0-(in MCP3910 connected to CS3 of PIC32CXMTC)CH1+/CH1-(in MCP3910 connected to CS3 of PIC32CXMTC)
1xMCP3912CH0+/CH0-CH1+/CH1-CH2+/CH2-CH3+/CH3-N/AN/AN/AN/A
1xMCP3913CH0+/CH0-CH1+/CH1-CH2+/CH2-CH3+/CH3-CH4+/CH4-CH5+/CH5-N/AN/A
1xMCP3914CH0+/CH0-CH1+/CH1-CH2+/CH2-CH3+/CH3-CH4+/CH4-CH5+/CH5-CH6+/CH6-CH7+/CH7-
PIC32CXMTSHIP1/IN1VP1/VNIP2/IN2VP2/VNN/AN/AN/AN/A
Note:
  1. This channel is multiplexed with the internal temperature sensor of the ATSENSE301.

The logical channels defined by the metrology library are as follows:

  • I_A, I_B, I_C: Currents for phases A, B, and C
  • I_N: Neutral current
  • V_A, V_B, V_C: Voltages for phases A, B, and C
  • V_D (available only when using an MCP3914 AFE): It provides an additional ADC conversion for the application. The metrology library processes this channel with all metrology filters except for phase correction. This includes the calibration gain and the DC block filter, in case VC_DC_EN is cleared.
Name: CHANNEL_MATRIX
Property: Read-Write

Bit 3130292827262524 
 CHANNEL_7[3:0]CHANNEL_6[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 CHANNEL_5[3:0]CHANNEL_4[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 CHANNEL_3[3:0]CHANNEL_2[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 CHANNEL_1[3:0]CHANNEL_0[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:28 – CHANNEL_7[3:0] Physical channel 7 mapping

ValueDescription
0Physical channel mapped to logical channel I_A
1Physical channel mapped to logical channel V_A
2Physical channel mapped to logical channel I_B
3Physical channel mapped to logical channel V_B
4Physical channel mapped to logical channel I_C
5Physical channel mapped to logical channel V_C
6Physical channel mapped to logical channel I_N
7Physical channel mapped to logical channel V_D
8-14Reserved for future uses
15Not used

Bits 27:24 – CHANNEL_6[3:0] Physical channel 6 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 23:20 – CHANNEL_5[3:0] Physical channel 5 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 19:16 – CHANNEL_4[3:0] Physical channel 4 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 15:12 – CHANNEL_3[3:0] Physical channel 3 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 11:8 – CHANNEL_2[3:0] Physical channel 2 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 7:4 – CHANNEL_1[3:0] Physical channel 1 mapping

For the mapping information, see the previous table in CHANNEL_7.

Bits 3:0 – CHANNEL_0[3:0] Physical channel 0 mapping

For the mapping information, see the previous table in CHANNEL_7.