Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Embedded Programming Need to convert the code from the first picture to look like that in the second picture. the below program is in assembly

Embedded Programming

Need to convert the code from the first picture to look like that in the second picture.

image text in transcribedimage text in transcribed

the below program is in assembly language so, for compiling the program you need the KEIL or any other same kind of software. When PIR motion sensor will get the O signal at that same time program line will jump directly to ISR (interrupt service routine) and that will execute the ISR contained program and it will give 1 signal at any of output pins for alerting another system for backup or quick response. **PIN 3.2 IS THE PIN FOR INTERRUPT O MEANS PIR SENSOR OUTPUT PIN 0.0 IS THE INPUT FOR THE OTHER SYSTEM FOR ALERTING OR FOR BACK UP ORG 0000H WAKE UP THE CONTROLLER AND GO TO MAIN LJMP MAIN **THE ISR FOR THE INTERRUPT INTO** ORG 0003H SETB PO.0 RET *MAIN PROGRAM FOR INITIALIZATION MAIN : MOV IE, #81H ; ENABLE EXTERNAL INTERRUPT HERE: SJMP HERE END So, form program when pin 3.2 get interrupt at that time it goes to location 0003H and execute program and return to main program the below program is in assembly language so, for compiling the program you need the KEIL or any other same kind of software. When PIR motion sensor will get the O signal at that same time program line will jump directly to ISR (interrupt service routine) and that will execute the ISR contained program and it will give 1 signal at any of output pins for alerting another system for backup or quick response. **PIN 3.2 IS THE PIN FOR INTERRUPT O MEANS PIR SENSOR OUTPUT PIN 0.0 IS THE INPUT FOR THE OTHER SYSTEM FOR ALERTING OR FOR BACK UP ORG 0000H WAKE UP THE CONTROLLER AND GO TO MAIN LJMP MAIN **THE ISR FOR THE INTERRUPT INTO** ORG 0003H SETB PO.0 RET *MAIN PROGRAM FOR INITIALIZATION MAIN : MOV IE, #81H ; ENABLE EXTERNAL INTERRUPT HERE: SJMP HERE END So, form program when pin 3.2 get interrupt at that time it goes to location 0003H and execute program and return to main program

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago