Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to add custom lines to initialization lines for a fully initialized CCS Project in CCS v5.3 in ASM only project ?

$
0
0

I want to add a few customized lines to the default "fully initialized assembly only" project. Is this possible? Below I have written the already initialized lines:

;-------------------------------------------------------------------------------
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file

;-------------------------------------------------------------------------------
.text ; Assemble into program memory
.retain ; Override ELF conditional linking
; and retain current section
.retainrefs ; Additionally retain any sections
; that have references to current
; section
;-------------------------------------------------------------------------------
RESET                     mov.w #__STACK_END,SP ; Initialize stackpointer
StopWDT                 mov.w #WDTPW|WDTHOLD,&WDTCTL ; Stop watchdog timer

;-------------------------------------------------------------------------------
; Main loop here
;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
.global __STACK_END
.sect .stack

;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".reset" ; MSP430 RESET Vector
.short RESET

I want to add the the following lines, to be added automatically to a "fully initialized assembly only project":

mov.b CALDCO_1MHZ,&DCOCTL ; Use CALDCO_xMHZ for preconfigured clocks
mov.b CALBC1_1MHZ,&BCSCTL1 ; Use CALBC1_xMHZ for preconfigured clocks

Please suggest how to do this.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>