I am attempting to use the LINFLEXD_1 channel to communicate with a remote PC at 57600 baud. Initially I set the LINCLK to use the 80MHz PHI clock from PLL0 divided by 5 (15MHz) and calculated the values for LINIBRR = 17 amd LINFBRR = 6 which according to the formula in the reference manual, section 43.4.2.8, "Baud Rate Generation", should give me the required 57600 baud, but it does not.
To remove some of the potential unknowns I changed the AC0_SC to select the XOSC = 20MHz. Leaving the divider at 5 (giving a 4MHz LINCLK) I recalculated LINIBRR=4 and LINFBRR=6 but to my surprise the resultant baud rate was approximate 10 times the required rate. For a test I changed LINIBRR to 40 and the resultant baud rate fell to approximately 57600 baud.
I would be grateful if anyone could suggest either what I am doing wrong or a reason for this very unexpected behaviour.