I need a sample code.
void init_trgmux(void)
{
// TRGMUX_IN0
PCC->PCCn[PCC_PORTB_INDEX] = PCC_PCCn_CGC(1);
PORTB->PCR[5]= PORT_PCR_MUX(6);
// TRGMUX_LPUART1_INDEX
TRGMUX->TRGMUXn[TRGMUX_LPUART1_INDEX] &= TRGMUX_TRGMUXn_SEL0_MASK;
TRGMUX->TRGMUXn[TRGMUX_LPUART1_INDEX] |= TRGMUX_TRGMUXn_SEL0(TRGMUX_TRIG_SOURCE_TRGMUX_IN0);
}
Solved! Go to Solution.
Hi,
what do you want to achieve in fact? E.g. use TRGMUX_IN0 as hw control flow signal for LPUART transmit? Similarly as CTS_B input does?.
As chapter 53.4.8.2 states the LPUART supports one peripheral input trigger (from TRGMUX), that can be configured in one of the following ways.
Configuration is done in PINCFG register.
BR, Petr
Hi,
what do you want to achieve in fact? E.g. use TRGMUX_IN0 as hw control flow signal for LPUART transmit? Similarly as CTS_B input does?.
As chapter 53.4.8.2 states the LPUART supports one peripheral input trigger (from TRGMUX), that can be configured in one of the following ways.
Configuration is done in PINCFG register.
BR, Petr