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.