Hallo rh,
ich versuche den DAC_A beim ATXmega32E5 zu nutzen, bekomme aber nur Parameter Errors, wenn ich im leeren Programm den DAC_A importiere.
Kann es sein ,daß da evtl noch ein Bug im dsc-file ist oder sowas.
golf
-------------------------------------------------------------------------------
program HIQSDR1;
Device = xmega32E5, VCC=3.3;
{ $BOOTRST $20000} {Reset Jump to $20000}
Define_Fuses
Override_Fuses;
NoteBook = A;
COMport = USB;
LockBits0 = [];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [];
Import SysTick,DAC_A; //
From System Import ;
Define
OSCtype = int32MHz, PLLmul=4, prescB=1, prescC=1; // = 32 Mhz
SysTick = 10; {msec}
StackSize = $0100, iData;
FrameSize = $0100, iData;
DAC_A = chan0, REF100;
---------------------------------------------------------------------------------------------------
asm-listing Auszug:
LDI _ACCCLO, DACAOFFCAL >Parameter Error
CLR _ACCCHI
LDI _ACCA, 2
STS NVMCMD, _ACCA
LPM
STS DACAOFFSETCAL, _ACCGLO >Parameter Error
LDI _ACCCLO, DACACAINCAL >Parameter Error
CLR _ACCCHI
LDI _ACCA, 2
STS NVMCMD, _ACCA
LPM
STS DACAGAINCAL, _ACCGLO >Parameter Error
LDI _ACCA, 0
STS NVMCMD, _ACCA
LDI _ACCA, 7Fh
STS DACATIMCTRL, _ACCA >Parameter Error
LDI _ACCA, 0
STS DACACH0DATAL, _ACCA
STS DACACH0DATAH, _ACCA
STS DACACH1DATAL, _ACCA
STS DACACH1DATAH, _ACCA
LDS _ACCA, DACACTRLA
ORI _ACCA, 01h
STS DACACTRLA, _ACCA
ich versuche den DAC_A beim ATXmega32E5 zu nutzen, bekomme aber nur Parameter Errors, wenn ich im leeren Programm den DAC_A importiere.
Kann es sein ,daß da evtl noch ein Bug im dsc-file ist oder sowas.
golf
-------------------------------------------------------------------------------
program HIQSDR1;
Device = xmega32E5, VCC=3.3;
{ $BOOTRST $20000} {Reset Jump to $20000}
Define_Fuses
Override_Fuses;
NoteBook = A;
COMport = USB;
LockBits0 = [];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [];
Import SysTick,DAC_A; //
From System Import ;
Define
OSCtype = int32MHz, PLLmul=4, prescB=1, prescC=1; // = 32 Mhz
SysTick = 10; {msec}
StackSize = $0100, iData;
FrameSize = $0100, iData;
DAC_A = chan0, REF100;
---------------------------------------------------------------------------------------------------
asm-listing Auszug:
LDI _ACCCLO, DACAOFFCAL >Parameter Error
CLR _ACCCHI
LDI _ACCA, 2
STS NVMCMD, _ACCA
LPM
STS DACAOFFSETCAL, _ACCGLO >Parameter Error
LDI _ACCCLO, DACACAINCAL >Parameter Error
CLR _ACCCHI
LDI _ACCA, 2
STS NVMCMD, _ACCA
LPM
STS DACAGAINCAL, _ACCGLO >Parameter Error
LDI _ACCA, 0
STS NVMCMD, _ACCA
LDI _ACCA, 7Fh
STS DACATIMCTRL, _ACCA >Parameter Error
LDI _ACCA, 0
STS DACACH0DATAL, _ACCA
STS DACACH0DATAH, _ACCA
STS DACACH1DATAL, _ACCA
STS DACACH1DATAH, _ACCA
LDS _ACCA, DACACTRLA
ORI _ACCA, 01h
STS DACACTRLA, _ACCA