Hi,
I now can send strings and commands to the UART display. But there seems to be some a TX fifo overflow. The display is default 19200 baud, I want to use it at 115200 baud. Once the display is set to 115200 baud the setting is remembered next time it is powered.
So I would like to use MIOS32 (with LPC1769)to start with 19200 baud and switch over to 115200 after sending a command to the display to run at 115200. It seems that the function
MIOS32_UART_BaudrateSet(UART1,115200);
doesn't do anything. I can continue to send message to the display set at 19200.
Is the stuff of the errata sheet implemented in MIOS32?
http://www.nxp.com/documents/errata_sheet/ES_LPC176X.pdf
By the way, the errata sheet was updated januari 2012. Some ADC and GPIO stuff has been added.
I now have put next code in, but I think disabling / enabling the PLL at this time is too late. The target does not respond anymore via Mios Studio.
void APP_Init(void)
{
MIOS32_COM_SendBuffer(UART1,(u8 *)DISPL_MO_baud_rate_115200,(u16) sizeof(DISPL_MO_baud_rate_115200));
MIOS32_UART_BaudrateSet(UART1,115200);
LPC_SC->PLL0CON = 0x00;
LPC_SC->PLL0FEED = 0xAA;
LPC_SC->PLL0FEED = 0x55;
LPC_SC->PLL0CON = 0x03;
Any idea where I can place the PLL toggle to change UART baud rate?
Best regards,
Frank