AnsweredAssumed Answered

Pin multiplexing in BF707

Question asked by Bambinz on Jul 8, 2015
Latest reply on Sep 6, 2015 by Prashant

Hi,

I don't understand how multiplex the pin.

I would like to use TM0_TMR7 in PA_04 pin. Could you explane me how can I write the right code?

I realize that I must use this register:

 

     - *pREG_PORTA_MUX

     - *pREG_PORTA_PER

Because In one example of UART I found this code:

 

#define UART0_TX_PORTB_MUX  ((uint32_t) ((uint32_t) 0<<16))

#define UART0_RX_PORTB_MUX  ((uint32_t) ((uint32_t) 0<<18))

#define UART0_TX_PORTB_FER  ((uint32_t) ((uint32_t) 1<<8))

#define UART0_RX_PORTB_FER  ((uint32_t) ((uint32_t) 1<<9))

 

*pREG_PORTB_MUX = UART0_TX_PORTB_MUX | UART0_RX_PORTB_MUX;

*pREG_PORTB_FER = UART0_TX_PORTB_FER | UART0_RX_PORTB_FER;

 

Thank you very much

Outcomes