This document discusses program flow instructions, also called branch or jump instructions, in the 8051 microcontroller. It describes both unconditional jumps, which always change the program execution order, and conditional jumps, which test a condition before branching. Specific jump instructions covered include short jumps within 128 bytes, long jumps to any address, absolute jumps within a 2KB page, and bit, byte, and register comparison jumps. Decrement and jump instructions are also summarized.
This presentation discusses the support for interrupts in 8051. The interrupt types, interrupts versus polling etc are discussed. The register formats of IE, IP register are discussed. The concept of priority among the interrupts is discussed.
This presentation discusses the support for interrupts in 8051. The interrupt types, interrupts versus polling etc are discussed. The register formats of IE, IP register are discussed. The concept of priority among the interrupts is discussed.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
1. Program flow instructions in 8051
(Conditional and
Unconditional jump
Instructions)
A.Usha Rani
Faculty,
Department of Physics and Electronics
St.Ann’s College for Women.
2. Program flow instructions
These instructions are used to control the flow of
execution of the program or to change the sequence of
program execution.
They are also called Branch instructions or Jump
Instructions.
Change the content of program counter to change
the program execution order.
3. Unconditional Jumps
Do not test any condition and Jump is taken always.
Short Jump
The program can jump to an instruction within 127 bytes
in forward direction or 128 bytes in reverse direction.
Also called relative jump because the address where the
jump can be taken is relative to the address where the
instruction is written.
The instruction is SJMP rel (Jump to relative address rel)
4. Long Jump
Used to jump to any location within entire program
address space i.e., anywhere from 0000H to FFFFH.
3 byte instruction and is mostly used in large programs.
The instruction is LJMP address
Absolute Jump
The entire program memory is divide into 32 pages each
of 2K bytes each.
AJMP can be used to jump within a page of 2K.
The instruction is AJMP address
5. Conditional Jumps
Test the condition before taking a jump. Jump is taken
only if the condition given in the instruction is satisfied.
Bit Jumps
Check the status of a bit specified in the instruction
before taking the jump.
Jump is taken only if the condition specified in the
instruction is satisfied.
Used to monitor the status of a specified bit.
6. JC rel // Jump to relative address rel if C=1(Jump if
Carry)
JNC rel // Jump to relative address rel if C=0(Jump if
No Carry)
JB rel // Jump to relative address rel if bit =1(Jump
if Bit)
JNB rel // Jump to relative address rel if bit=0
(Jump if No Bit)
JBC bit, rel // Jump to relative address rel if bit =1 and
then clear bit (Jump if bit then clear)
7. Byte Jumps
Check the byte of a data to make jump.
JZ rel //Jump to relative address rel if A is
0(Jump if Zero)
JNZ rel // Jump to relative address rel if A is
not 0(Jump if Not Zero)
CJNE A, direct,rel //Compare A with the contents
of address direct and jump to relative
address rel if they are not equal. If the
contents of A are less than contents of
address direct, set carry =1 otherwise
clear carry(Compare and Jump if Not Equal)
8. CJNE A, #data,rel //Compare A with immediate
value data and jump to relative
address rel if they are not equal. If the
contents of A are less than immediate
value data, set carry =1 otherwise
clear carry
CJNE Rn, #data,rel //Compare Rn with the immediate
value data and jump to relative
address rel if they are not equal. If
the contents of Rn are less than
immediate value data, set carry =1
otherwise clear carry
9. CJNE @Ri, #data,rel //Compare contents of
address in Ri with immediate
value data and jump to relative address
rel if they are not equal. If the contents
of address in Ri are less than
immediate value data, set carry =1
otherwise clear carry
DJNZ Rn,rel //decrement register Rn by 1 and jump
to relative address rel if the contents of
Rn are not zero after decrement
operation.(Decrement and Jump if Not Zero)
10. DJNZ direct,rel //decrement contents of address
direct by 1 and jump to relative
address if the contents of address
direct are not zero after decrement operation.