Hello,
I try to use the assembly macro "ADCDRV_8ch" (but my problem is still there at the macro for .._4ch and ..._1ch).
The problem is that when I use the macro as it is written down in the "DPLib.pdf" at my project I get error messages like the following ones, because "_AdcResult" is undefined.
"../StopStart-ISR.asm", ERROR! at line 156: [E0009] Missing struct/union member or tag
MOV ACC,@_AdcResult.ADCRESULT:u:<<12
"../StopStart-ISR.asm", REMARK at line 156: [R0001] After symbol substitution the line became:
MOV ACC,@_AdcResult.ADCRESULT7<<12
"../StopStart-ISR.asm", ERROR! at EOF: [E0300] The following symbols are undefined:
_AdcResult
The error messages belong to the following code snippet of the "ADCDRV_8ch.asm" file: MOVW DP, #_AdcResult ; load Data Page to read ADC results
MOV ACC,@_AdcResult.ADCRESULT:m:<<12 ; read and shift the 12 bit ADC result by 12 bits to get Q24 value
MOVL *XAR0,ACC ; store result in output pointer location
MOV ACC,@_AdcResult.ADCRESULT:n:<<12
MOVL *XAR1,ACC
MOV ACC,@_AdcResult.ADCRESULT:p:<<12
MOVL *XAR2,ACC
Does anyone know, at which program file I have to define the AdcResult structure or can anyone give me some other helpful hints for this problem?
Thank you! Piccolo Rookie