XMEGA bit operations still have issues

Jeroen.Vandezande
 
Avatar
 
Betreff:

XMEGA bit operations still have issues

 · 
Gepostet: 19.10.2011 - 17:25 Uhr  ·  #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
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: XMEGA bit operations still have issues

 · 
Gepostet: 19.10.2011 - 20:55 Uhr  ·  #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
 
Betreff:

Re: XMEGA bit operations still have issues

 · 
Gepostet: 20.10.2011 - 10:41 Uhr  ·  #3
Thank you,

now it works fine....
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   64   78 · Page-Gen-Time: 0.036198s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI