Some time has past since I programmed the ADSP2184 and now I have to
deal with VisulDSP++ 3.5 and LDF files. I tried to declare variables
in my assembler program like:
.section/data port_data;
.var adc_1;
.var dac_1;
.section/data data1;
.var ch_sum;
.section/data data2;
.var table_2[3];
etc....
In the good "old" days it worked fine. Now everything compiles fine
too but it doesn't work in the target hardware (simulation works). I
have also found no good way to declare the ports in the ldf files.
Is there anybody out there who had a similar problem and is still
programming stuff in assembler. I would very much appreciate any
comments and help.
Thanks,
Stephan
ADS2184 trouble with VisualDSP++ and variable declaration
Started by ●September 22, 2006
Reply by ●September 22, 20062006-09-22
Hi Stephan,
I think you are referring to the .ach files in the 'good old days' ;-)
I'm a bit rusty with 218x, but this should work.
You would not have to declare ports in the ldf. You could just have
something like
#define adc_1
dmovlay = 1 (or 2);
ax0 = DM(adc_1);
Assuming it is memory mapped in DM, rather than PM or IO spaces.
Cheers,
George
-----Original Message-----
From: a... [mailto:a...] On Behalf Of
stephwe
Sent: Thursday, September 21, 2006 11:44 PM
To: a...
Subject: [adsp] ADS2184 trouble with VisualDSP++ and variable declaration
Some time has past since I programmed the ADSP2184 and now I have to
deal with VisulDSP++ 3.5 and LDF files. I tried to declare variables
in my assembler program like:
..section/data port_data;
..var adc_1;
..var dac_1;
..section/data data1;
..var ch_sum;
..section/data data2;
..var table_2[3];
etc....
In the good "old" days it worked fine. Now everything compiles fine
too but it doesn't work in the target hardware (simulation works). I
have also found no good way to declare the ports in the ldf files.
Is there anybody out there who had a similar problem and is still
programming stuff in assembler. I would very much appreciate any
comments and help.
Thanks,
Stephan
I think you are referring to the .ach files in the 'good old days' ;-)
I'm a bit rusty with 218x, but this should work.
You would not have to declare ports in the ldf. You could just have
something like
#define adc_1
dmovlay = 1 (or 2);
ax0 = DM(adc_1);
Assuming it is memory mapped in DM, rather than PM or IO spaces.
Cheers,
George
-----Original Message-----
From: a... [mailto:a...] On Behalf Of
stephwe
Sent: Thursday, September 21, 2006 11:44 PM
To: a...
Subject: [adsp] ADS2184 trouble with VisualDSP++ and variable declaration
Some time has past since I programmed the ADSP2184 and now I have to
deal with VisulDSP++ 3.5 and LDF files. I tried to declare variables
in my assembler program like:
..section/data port_data;
..var adc_1;
..var dac_1;
..section/data data1;
..var ch_sum;
..section/data data2;
..var table_2[3];
etc....
In the good "old" days it worked fine. Now everything compiles fine
too but it doesn't work in the target hardware (simulation works). I
have also found no good way to declare the ports in the ldf files.
Is there anybody out there who had a similar problem and is still
programming stuff in assembler. I would very much appreciate any
comments and help.
Thanks,
Stephan