Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago