Answered step by step
Verified Expert Solution
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.
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
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