I'm trying to build an assembler-only program in CCS v5.1 and I'm running into trouble with my definitions.
I want to create several constants which are located at specific, sequencial locations in RAM which I would like to define. I also want to initialize these addresses with values.
The code I have written is:
.cdecls C,LIST,
"msp430g2231.h"
BIN .equ 200h illegal mneumonic specified
.define 0x0202,EmergencyFlag
.define 0x0204,OpenValveTimer
.define 0x0206,Divisor
.define 0x0208,FullMeasurement
;------------------------------------------------------------------------------
.text ; Progam Start
.global INITIALIZE ; define entry point
;------------------------------------------------------------------------------
INITIALIZE
mov.w #0280h,SP ; Initialize stackpointer
StopWDT
mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
mov.w #TASSEL_2+MC_2,&TACTL ; Initialize the Timer A contol Register and set it to continuous mode with the Sub-Master Clock
;------------------------------------------------------------------------------
; Definitions set up specifically for Multi-Tasking Routine
;------------------------------------------------------------------------------
clr.w Bin illegal, un-relocatable operand
clr.w EmergencyFlag illegal, un-relocatable operand
clr.w OpenValveTImer undefined symbol
clr.w Divisor illegal, un-relocatable operand
clr.w FullMeasurement illegal, un-relocatable operand
I have noted the error messages beside the code. Any idea how to fix this issue?
Also, when using ".define" is the value given the address of the symbol, or the value of the symbol?
Thanks for any help
Joanna