Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Intro Microprocessor System (CDA 3331C) MSP430G2553 Microprocessor Used **TYPE T

ID: 3722064 • Letter: I

Question

Intro Microprocessor System (CDA 3331C)

MSP430G2553 Microprocessor Used

**TYPE THE SOLUTION PLEASE**

7.17 is given below:

.cdecls C,LIST,"msp430.h"

.text
.retain
.retainrefs

RESET
mov.w #WDTPW|WDTHOLD,WDTCTL
mov.w #__STACK_END,SP

mov.w #007Dh,&0200h ;the first number
mov.w #00B5h,&0202h ;the second number
mov.w #00E8h,&0204h ;the third number

jmp $

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

;-------------------
;Interrupt Vectors
;-------------------
.sect RESET_VECTOR
.short RESET
.end

Three numbers are written in the designated memory locations with the code given in Listing 7.17. 7.16 Listing 7.17 The assembly code for Prob. 7.16.

Explanation / Answer

ASSEMBLY PROGRAM CODE:

.cdecls C,LIST,"msp430.h"

.text

.retain

.retainrefs

RESET

mov.w #WDTPW|WDTHOLD,WDTCTL

mov.w #__STACK_END,SP

mov.w #007Dh,&0200h ;the first number

mov.w #00B5h,&0202h ;the second number

mov.w #00E8h,&0204h ;the third number

jmp $

;------------------------

;Stack Pointer definition

;------------------------

.global __STACK_END

.sect .stack

;-------------------

;Interrupt Vectors

;-------------------

.sect RESET_VECTOR

.short RESET

.end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote