Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below are portions of a UST file: 147 COCO4A F2E040002100 xor.b #LEDZGRN,&P1OUT 14800C050 need a delay so we can actually see the LED blink 149

image text in transcribed

Below are portions of a UST file: 147 COCO4A F2E040002100 xor.b #LEDZGRN,&P1OUT 14800C050 need a delay so we can actually see the LED blink 149 000050 B0126ECO call #Delay_long 150 00C054 F2E040002100 xorb #LEDZGRN,&PLOUT : >>>> 188 00006E Delay_long 189 00C06E OF12 push R15 save R15 since we use it here 190 000070 DelayTopl 191 000070 3F43 m ov #LONG DELAY, R15;load loop counter 192 000072 Loopilong 193 00C072 1783 dec R15 decrement loop counter 194 00C074 FE23 jnz Loopllong Zero yet?, no, dec again 196 000076 3F41 Pop R15 : restore R15 before returning 197 000078 3041 ret ; return >>>> 219 OOCO7A Port1_ISR 220 00C07A If we get to here, an interrupt occurred on the Port 1 221 OOCO7A F2822300 bitb #PUSHBUTTON, PLIFG was it the Pushbutton 222 OOCOTE 0424 jeg Done here :no, so don't do anything 223 OOCOBO D2E30002 xorb #1. & Pattern State Flag yes, toggle the flag 224 COCO84 C2432300 clr.b&PLIFG ; clear the flag 225 OOCOB8 Done_here 226 000088 0013 reti ;return from interrupt 227 OOCOSA 228 OOCOSA : end of Port1 ISR >>>> 188 00006E Delay_long 189 00C06E OF12 push R15 save R15 since we use it here 190 000070 DelayTopl 191 000070 3F43 m ov #LONG DELAY, R15;load loop counter 192 000072 Loopilong 193 00C072 1783 dec R15 decrement loop counter 194 00C074 FE23 jnz Loopllong Zero yet?, no, dec again 196 000076 3F41 Pop R15 : restore R15 before returning 197 000078 3041 ret ; return >>>> 219 OOCO7A Port1_ISR 220 00C07A If we get to here, an interrupt occurred on the Port 1 221 OOCO7A F2822300 bitb #PUSHBUTTON, PLIFG was it the Pushbutton 222 OOCOTE 0424 jeg Done here :no, so don't do anything 223 OOCOBO D2E30002 xorb #1. & Pattern State Flag yes, toggle the flag 224 COCO84 C2432300 clr.b&PLIFG ; clear the flag 225 OOCOB8 Done_here 226 000088 0013 reti ;return from interrupt 227 OOCOSA 228 OOCOSA : end of Port1 ISR

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Context, i.e. the context of the information presented and received

Answered: 1 week ago