im having a bit of trouble understanding how to change the baud rate on the SCI port (specifically SCI-B).
i have it on the 9600 baud mode and everything is working, but ready to move it up to a faster speed now.
im sure you can tell me how to get it to 115200, which i appreciate, but i would also like to understand how to get it there also.. We are able to go even faster then 115200 as we are using RS485 port... But the code for the 115200 would help with current issue, and a better understanding on controlling the speed would be great..
(both is needed though) :)
//-----------------current code for baudrate------(used from echoback example but updated for SciB )
// SCIA at 9600 baud . (<--want to reach 115200 baud)
// @LSPCLK = 50 MHz (200 MHz SYSCLK) HBAUD = 0x02 and LBAUD = 0x8B.
// @LSPCLK = 30 MHz (120 MHz SYSCLK) HBAUD = 0x01 and LBAUD = 0x86.
ScibRegs.SCIHBAUD.all = 0x0002;
ScibRegs.SCILBAUD.all = 0x008B;
//--------------
thanks
chuck