Question: Use the MSP 4 3 0 seven - segment daughter board ( available in the IEEE office ) to implement a hexadecimal up - down
Use the MSP sevensegment daughter board available in the IEEE office to implement a
hexadecimal updown counter on a single digit of the sevensegment display. The counter should
start at x count up to xF count down to x and repeat indefinitely. The counter should update
every ms
Engineering Constraints
Your implementation must:
Make use of the timerperipherals.
Utilize a lookup table for the sevensegment values. I am using the MSPEXPFR with TI Code Composer Studio, the project is a empty assembly only project. I have attached a schematic of the daughter board along with the connections. Below is the structure of a empty assembly only project. Written code should only be placed in the "Main loop here" section. ;
; MSP Assembler Code Template for use with TI Code Composer Studio
;
;
;
cdecls CLIST,"msph ; Include device header file
;
def RESET ; Export program entrypoint to
; make it known to linker.
;
text ; Assemble into program memory.
retain ; Override ELF conditional linking
; and retain current section.
retainrefs ; And retain any sections that have
; references to current section.
;
RESET mov.w #STACKEND,SP ; Initialize stackpointer
StopWDT mov.w #WDTPWWDTHOLD&WDTCTL ; Stop watchdog timer
;
; Main loop here
;
;
; Stack Pointer definition
;
global STACKEND
sect stack
;
; Interrupt Vectors
;
sect reset" ; MSP RESET Vector
short RESET
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
