Hi,
I am trying to use the USUART on the XMega.
I have a function that wait until all the data is transmitted.
procedure fWaitForTransmissionToComplete;
begin
repeat
until EB_TXC;
EB_TXC := True;
end;
EB_TXC is a bit type defined like this:
EB_TXC[@USARTD0STATUS, 6]: Bit; //transmit complete
The write '1' to this bit does not seem to work.
changing the function to this:
procedure fWaitForTransmissionToComplete;
begin
repeat
until EB_TXC;
USARTD0STATUS := %01000000;
end;
works just fine.
Best Regards,
Jeroen
I am trying to use the USUART on the XMega.
I have a function that wait until all the data is transmitted.
procedure fWaitForTransmissionToComplete;
begin
repeat
until EB_TXC;
EB_TXC := True;
end;
EB_TXC is a bit type defined like this:
EB_TXC[@USARTD0STATUS, 6]: Bit; //transmit complete
The write '1' to this bit does not seem to work.
changing the function to this:
procedure fWaitForTransmissionToComplete;
begin
repeat
until EB_TXC;
USARTD0STATUS := %01000000;
end;
works just fine.
Best Regards,
Jeroen