Part Number: TMS320F28069
Tool/software: TI C/C++ Compiler
Hello
We are using the DELAY_US() macro in our projects
The F2806x_usDelay.asm comments says that the call from c code to assembly should be
MOV AL,#LowLoopCount
MOV AH,#HighLoopCount
LCR _Delay
Or as follows (if count is less then 16-bits):
MOV ACC,#LoopCount
LCR _Delay
My call from c code is as follows:
DELAY_US(1000L);
which generates the following assembly code
MOVL XAR4, #0x3f6c8e
LCR $../lib/2806x/F2806x_usDelay.asm:68:81$
It looks to me that the compiler uses XAR4 register, not the ACC as stated in F2806x_usDelay.asm and the delay doesn't wait the stated micro seconds.
How can I force the DELAY_US macro to load the ACC register
Compiler is 15.12.1 LTS
Thank you in advance for your advice