Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21946

MSP432P401R: Port Mapper doesn't put UCBOCLK on P4.3

$
0
0

Part Number:MSP432P401R

I will attach a code that seems to not work. The P4.3 always becomes MCLK after the second function.

port_mapping array looks like this on purpose. I know that PM_UCB0CLK should only be on the 4th place.

// Port mapper configuration register
const uint8_t port_mapping[] =
{
        //Port P4:
        PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK, PM_UCB0CLK,
        PM_UCB0CLK
};

int main(void)
{
    PMAP_configurePorts((const uint8_t *) port_mapping, PMAP_P4MAP, 1,
            PMAP_DISABLE_RECONFIGURATION);

    GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P4,
                GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
}


Viewing all articles
Browse latest Browse all 21946

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>