Simple program in assembly using Tiva C launchpad?

  • Thread starter Thread starter jean28
  • Start date Start date
  • Tags Tags
    Assembly Program
Click For Summary
SUMMARY

The discussion focuses on programming in assembly language for the Tiva C series microcontroller, which utilizes ARM architecture. A user seeks guidance on converting a simple MSP430 assembly program to ARM assembly, specifically for the Tiva C Launchpad. Key differences highlighted include the handling of directives such as ORG, RESET, and END, which differ from MSP430 syntax. Participants recommend consulting the ARM Programmer's Reference Manual for a comprehensive understanding of ARM's register, memory, and ALU architecture.

PREREQUISITES
  • Familiarity with ARM architecture and assembly language programming
  • Basic understanding of Tiva C series microcontroller features
  • Knowledge of MSP430 assembly language syntax
  • Access to the ARM Programmer's Reference Manual
NEXT STEPS
  • Study ARM assembly language syntax and conventions
  • Explore Tiva C series specific assembly programming examples
  • Learn about ARM branch instructions and their usage
  • Review the ARM Programmer's Reference Manual for detailed architecture insights
USEFUL FOR

Embedded systems developers, students learning assembly language, and engineers transitioning from MSP430 to ARM architecture programming.

jean28
Messages
83
Reaction score
0
Hey guys!

I just got a new Tiva C MCU. It's architecture is ARM, and I have no experience programming in assembly using said architecture. To start, I'm trying to run a simple program that puts a value in a register. In an MSP430, the project I'm trying to do would look something like this:

Code:
#include 	"msp430.h"
;---------------------------------------
	ORG	0f800h	; Program Start
;---------------------------------------
RESET 	mov 	#0280h,SP	; Stack Pointer Initialized
StopWDT	mov	#WDTPW+WDTHOLD,&WDTCTL	; Stop WDT

	mov	#5, R15	; Delay to R15z

	ORG	0FFFEh		; MSP430 RESET Vector
	END

Would somebody be kind enough to show me the code of how to write this in ARM architecture (specially with the Tiva C series Launchpad)? I think I know how to write the mov, but the other parts (such as the ORG, RESET, and END) don't seem to work the same way that they do in the MSP.

Thank you all very much!
 
Engineering news on Phys.org
I can't help you, but you need to read the ARM programmers reference manual so that you understand the register/memory/alu architecture. Also, the branch instructions, how you test alu results, etc. Every processor is different.
 

Similar threads

Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K