XMEGA bit operations still have issues

Jeroen.Vandezande
 
Avatar
 
Subject:

XMEGA bit operations still have issues

 · 
Posted: 19.10.2011 - 17:25  ·  #1
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
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: XMEGA bit operations still have issues

 · 
Posted: 19.10.2011 - 20:55  ·  #2
Hello Jeroen,

sorry, it is a little nightmare with these new instructions LAT, LAS and LAC. It seems that they don't work in the IO area though the IOs are in the SRAM space! Another update uploaded.

rolf
Jeroen.Vandezande
 
Avatar
 
Subject:

Re: XMEGA bit operations still have issues

 · 
Posted: 20.10.2011 - 10:41  ·  #3
Thank you,

now it works fine....
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 14 · Cache Hits: 14   64   78 · Page-Gen-Time: 0.017777s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI