The MSP432 MCU has a port mapping controller that allows a flexible mapping of digital functions to port pins. The set of digital functions that can be ported to other pins is dependent on the device. For the MSP432 device in particular, the SPI clock, SOMI, and SIMO functionality of the EUSCIB0 SPI module are all available options to port to ports P2, P3, and P7. In addition, the SMCLK clock output is also available for output to ports P2, P3, and P7. In the test software, this port mapping feature is used for providing flexibility in the PCB layout.
Using the port mapping controller, the following mappings are used:
- PMAP_SMCLK (SMCLK clock output) → Port P2.0 (connected to the CLKIN pin of the ADS131M04 device so that it can be used to generate the modulator clock of the ADS131M04; however, note that this mapping is not enabled initially and is only enabled after the ADS131M04 is initialized.); this is pin 1 of header J27, which is labeled SMCLK on the board
- PMAP_UCB0SIMO (EUSCIB0 SPI SIMO) → Port P2.1 (connected to the DIN pin of the ADS131M04 device); this is pin 2 of header J27, which is labeled SPI DOUT on the board
- PMAP_UCB0SOMI (EUSCIB0 SPI SOMI) → Port P2.2 (connected to the DOUT pin of the ADS131M04 device); this is pin 3 of header J27, which is labeled SPI DIN on the board
- PMAP_UCB0CLK (EUSCIB0 SPI Clock) → Port P2.3 (connected to the SCK pin of the ADS131M04 device); this is pin 4 of header J27, which is labeled SPI CLK on the board
- PMAP_TA0CCR1A→Port 2.6(Timer A0 CCR1 compare output OUT1); this is pin 7 of header J27, which is labeled RST SYNC on the board; note that this mapping only occurs when the ADS131M04 device is in current-detection mode