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.

MSP430F5244: Port mapping

Part Number: MSP430F5244

It is possible for uС MSP430f5244 UCB1 to install without SOMI pin (P4.2 / PM_UCB1SOMI / PM_UCB1SC), using as digital I/O?

  // Setup Port Pins              
  P4DIR = 0xFF;                            // P4.0 - P4.7 output
  P4SEL = BIT1+BIT3;                  // P4.1, P4.3 Port Map functions
  P4OUT = 0x00;                         

void Port_Mapping(void)
{
  __disable_interrupt();                    // Disable Interrupts before altering Port Mapping registers
  PMAPPWD = 0x02D52;                        // Enable Write-access to modify port mapping registers
 
  #ifdef PORT_MAP_RECFG                     
  PMAPCTL = PMAPRECFG;                      // Allow reconfiguration during runtime
  #endif  
 
  P4MAP0 = PM_NONE;
  P4MAP1 = PM_UCB1SIMO;
  P4MAP2 = PM_NONE;
  P4MAP3 = PM_UCB1CLK;
  P4MAP4 = PM_NONE;  
  P4MAP5 = PM_NONE;
  P4MAP6 = PM_NONE;
 
  PMAPPWD = 0;                              // Disable Write-Access to modify port mapping registers
  #ifdef PORT_MAP_EINT
  __enable_interrupt();                     // Re-enable all interrupts
  #endif  
}

Thanks.

**Attention** This is a public forum