MCF5271 uart2 on QFP160

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5271 uart2 on QFP160

1,147 Views
TimeMan
Contributor I
I have probleme to use UART2 with the alternative pins EMDIO & EMDC.
Tx : ok
Rx : nothing.
I think that my driver is ok because it is ok is I use the Loop Back Mode.
It seems that I don't corrrectly connect the pysical pin EMDIO to the receive UART block.
 
My initialisation :
   MCF_GPIO_PDDR_FECI2C = 0;
   MCF_GPIO_PAR_FECI2C = MCF_GPIO_PAR_FECI2C_PAR_EMDC_UART2 |
                       MCF_GPIO_PAR_FECI2C_PAR_EMDIO_UART2  ; 
   MCF_GPIO_PODR_FECI2C = 0 ;
   MCF_GPIO_PAR_UART = MCF_GPIO_PAR_UART_PAR_U2RXD      |
                       MCF_GPIO_PAR_UART_PAR_U2TXD      |
                       MCF_GPIO_PAR_UART_PAR_U1RXD(0x3) |
                       MCF_GPIO_PAR_UART_PAR_U1TXD(0x3) |
                       MCF_GPIO_PAR_UART_PAR_U0RXD      |
                       MCF_GPIO_PAR_UART_PAR_U0TXD      |
                       MCF_GPIO_PAR_UART_PAR_U0RTS;
   MCF_GPIO_PDDR_UARTH = 0;
Thanks for your help!
Labels (1)
0 Kudos
2 Replies

315 Views
SimonMarsden_de
Contributor II
I think I see the problem.

By setting the pin multiplexing, you can choose which physical pins are used for the UART 2 TX and RX functions. In each case there are two choices, but in your example code you have set things up so that *both* choices of pin are used. For example, for RX you have selected:

(a) PORT_FECI2C: FEC_EMDIO / I2C_SDA / U2RXD / PFECI2C[2]

AND

(b)PORT_UARTH: U2RXD / PUARTH[0]


These are physically distinct pins. You need to check which one your serial cable connects to, and only configure the UART2 function on that one.


Hope that helps


Simon
0 Kudos

315 Views
TimeMan
Contributor I
That's run !
 
Thanks a lot.
:smileyvery-happy:
0 Kudos