Submitted by: OT
Severity: Major
Status: Under Construction
Description:
UART_Init works only with 80 MHz clock frequency.
Workaround:
Use UART_Init with 80 MHz clock frequency. This bug will be
solved in next version of compiler. Meanwhile try using following code:
Code: Select all
procedure My_Uart1_Init(baud_rate : longint);
var tmp: longint;
begin
U1MODE := $0000;
U1STA := $8400;
tmp := Clock_kHz * 1000;
tmp := tmp div baud_rate;
tmp := tmp shr 6;
U1BRG := tmp-1;
U1MODE.15 := 1;
U1STA.10 := 1;
end;