Part Number: MSP430G2744
Tool/software: Code Composer Studio
Hi everybody!!
I'm here again to ask your help and try to resolve a problem in my code.
I have a BUFFER_EEPROM defined as an ARRAY of integer in RAM, in my header file "Definizioni_Settaggi.h"
unsigned int BUFFER_EEPROM [32];
I also define the first 3 members of this array, as follows:
#define FLAG_ATTIVAZIONI BUFFER_EEPROM[0] #define BLANCH_CHECK BUFFER_EEPROM[1] #define FLAG_VISUALIZZAZIONI BUFFER_EEPROM[2]
Now, these are flags for me, and I want to test, set and clear their bits in an asm function which shares the header file with some other .c files.
For FLAG_ATTIVAZIONI I declare:
#define FLAG_FILTRO5060 0x0001
#define FLAGsonda_CUORE 0x0002
#define FLAGsonda_MAX 0x0004
#define FLAG_CORREZIONE 0x0008
unsigned int FLAG_ATTIVAZIONI;
And I use these names refer to tese bits of my FLAG_ATTIVAZIONI in the asm function AVVIA_CONN in the file "Protocollo_SPI.asm"
AVVIA_CONN: nop push.b R13 clr.b R13 mov.b #0x80, &UCA0TXBUF bit.b #FLAG_FILTRO5060, FLAG_ATTIVAZIONI jeq FILTRO_50HzAA nop mov.b #CONREG_MAX60, R13 br #TRASMETTI_AA
But the Code Composer shows me this error: "Unexpected trailing operand(s)" at the line where I wrote --> bit.b #FLAG_FILTRO5060, FLAG_ATTIVAZIONI.
I really don't understand why...
Is there something wrong in my code? Which is the best way to resolve this problem?
I hope someone might help me sort things out and give me some helpful piece of advice.
Thank You for your attention,
Kind Regards
Maria Angela