Hi!
I'm trying to use also UART2 on 80 pin MCF52233, but in my case, as i'm using I2C also, i need to use on pins 15 and 16. This is on UART1 *UCTS1 and *URTS1 pins, isn't it?
My setup for this port is MCF_GPIO_PUBPAR |= 0xF0, and
MCF_GPIO_PUBPAR = 0 | MCF_GPIO_PUBPAR_URXD1_URXD1 | MCF_GPIO_PUBPAR_UTXD1_UTXD1;
because i use also UART1, ( in fact i need the UART0 also.... ).
My problem is when trying to write via printf on this PORT. I already have modified the MCF52233_support.c file to can use "printf()" on UART2 by modifiyng "WriteUARTN()" function, but when the progam calls "uart_putchar()" it stops at:
while (!(MCF_UART_USR(channel) & MCF_UART_USR_TXRDY));
Obviusly MCF_UART_USR_TXRDY flag is not set, but WHY??? I have used the same initialization for the other 2 UARTS without problems...
Sure I'm doing something wrong but, what?
Thanks;
Oscar.