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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started