Question: ORG CODE Main: LDS #STACK LDAA #%00100000 STAA DDRT LDAA #$90 STAA TSCR1 LDAA #$05 STAA TSCR2 BSET TIOS, %00100000 LDAA #$04 STAA TCTL1 Over

ORG CODE

Main:

LDS #STACK

LDAA #%00100000

STAA DDRT

LDAA #$90

STAA TSCR1

LDAA #$05

STAA TSCR2

BSET TIOS, %00100000

LDAA #$04

STAA TCTL1

Over LDD TCNT

ADDD #30000

STD TC5

Here BRCLR TFLG1,mTFLG1_C5F, Here

BRA Over

The instruction

The action performed by this instruction

The purpose of this instruction

LDAA #$10

Load A with the hex number $10

Provide a specific value to A

STAA TCTL2

Store %00010000 to TCTL2 so that OM2=0, and OL2 =1

Make pin PT2 toggle every time when there is a match between TC2 and TCNT

Please fill out the following table:

The Instruction

The action performed by this instruction

The purpose of this instruction

ORG CODE

LDS #STOCK

LDAA #%00100000

STAA DDRT

LDAA #$90

STAA TSCR1

LDAA #$05

STAA TSCR2

BSET TIOS, %00100000

LDAA #$0C

STAA TCTL1

Over LDD TCNT

ADDD #30000

STD TC5

Here BRCLR TFLG1,

mTFLG1_C5F, Here

BRA Over

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!