AnsweredAssumed Answered

MCF52255 Baud rate

Question asked by Blake Hodder on Feb 26, 2013
Latest reply on Feb 28, 2013 by Jim Donelson

I am using the MCF52255 with a 48MHz crystal and set at a system bus of 80MHZ. I am attemting to set up my uart at 9600 as follows:

 

MCF_UART0_UCR = 0x00 | MCF_UART_UCR_RESET_RX;
MCF_UART0_UCR = 0x00 | MCF_UART_UCR_RESET_TX;
MCF_UART0_UCR = 0x00 | MCF_UART_UCR_RESET_MR;
MCF_UART0_UMR1 = 0b00010011;
MCF_UART0_UMR2 = 0b00000111;
MCF_UART0_UIMR = 0x00;
MCF_UART0_UACR = 0x00;
MCF_UART0_UCSR = 0xDD;
MCF_UART0_UBG1 = 0x01;
MCF_UART0_UBG2 = 0x04;
MCF_UART0_UCR = 0x00 | MCF_UART_UCR_TX_ENABLED;

 

However the baud rate ends up starting at 1612 and then seems to keep changing. Any help?

 

Thanks,

 

Blake

Outcomes