uart write text for big strings
uart write text for big strings
Is there a function, or does anyone made one to send bigger strings over the uart? the standard write text function can only send 20 chars at once but I want to send 100 chars at once.
Code: Select all
program test;
var my_data : string[1024];
procedure Uart1_Write_Text_(var uart_text : string[$FFFF]);
var pt1 : ^byte;
data_in : byte;
begin
pt1 := @uart_text;
while true do
begin
data_in := pt1^;
if data_in = 0 then break; // end of string
Uart1_Write_Char(data_in);
end;
end;
begin
my_data := '123456789';
Uart1_Init(9600);
Uart1_Write_Text_(my_data);
end.
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Did you read this : http://www.mikroe.com/forum/viewtopic.php?t=3718 ?
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro