Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Arjun Thakur
Page 40 of 75
How to check android mobile supports LOW LATENCY OFFBODY DETECT sensor?
This example demonstrate about How to check android mobile supports LOW LATENCY OFFBODY DETECT sensorStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. In the above code, we have taken text view to show LOW LATENCY OFFBODY DETECT sensor information.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; public class MainActivity extends AppCompatActivity ...
Read MoreOverview of the working of 8259
The interrupt requests are accepted by 8259 from many interrupting devices IR0 to IR7 pins. After that, it identifies the highest priority interrupt request from those inputs that are already active. To configure the 8259 for fixed priority mode of operation, among them IR0 has the highest and IR7 has the lowest priority. If the inputs IR2, IR4, and IR6 are active, thenIR2 has the highest priority interrupt request among the active requests than the other. The details of the interrupt requests those are active are stored in the Interrupt Request Register (IRR).By loading the Interrupt Mask Register (IMR), it ...
Read MoreInstructions to rotate Accumulator in 8085 Microprocessor
In 8085 Instruction set, there a set of instructions which can Accumulator contents left orright. It is to be noted here that rotate operation can be performedonly on Accumulator contents. These instructions set is listed below– Mnemonics, OperandOpcode(in HEX)BytesRAL171RAR1F1RLC071RRC0F1Mnemonic RLC stands for “Rotate Left Accumulator”. It rotates the Accumulator contents to the left by 1-bit position. The following Fig. shows the operation explicitly – In this fig. it has been depicted that the mostsignificant bit of the Accumulator will come out and left rotate willcreate an empty space at the least significant bit place and thiscome out bit will be copied at ...
Read MoreUnconditional call and return instructions in 8085 Microprocessor
Sometimes in 8085assembly language coding, we require to repeat a certain program segment for multiple times. In those situations, we can define sub-routines. In those subroutines, we can enclose our repeatedly reusable Instruction set or code. And then as when required we shall call those sub-routines accordingly. Sub-routines can also be called as procedures.Whenever the instructions in a subroutine are required to be executed, we branch program control to the subroutine using th CALL instruction. CALL is a 3-Byte instruction, with 1 Byte for the opcode, and 2 Bytes for the address of the subroutine. CALL mnemonics stands for “call ...
Read MoreOUT a8 instruction in 8085 Microprocessor
In 8085 Instruction set, OUT is a mnemonic that stands for OUTput Accumulator contents to an output port whose8-bit address is indicated in the instruction as a8. It occupies 2 Bytes in the memory. First Byte specifies the opcode, and the next Byte provides the 8-bit port address. Mnemonics, OperandOpcode(in HEX)BytesOUT Port-AddressD32OUT F0H is an example instruction of this type. The result of execution of this instruction is shown below with an example.BeforeAfter(A)ABHABHOutput Port F0HAny ValueABHOUT instruction is the only instruction using whichAccumulator contents can be sent out to an output port. A possible chip select circuit to connect an output ...
Read MoreMotorola M6800 Microprocessor
The Motorola M6800 is 40pin DIP IC. It is an 8-bit Microprocessor. It was introduced in 1974 by Motorola. It was designed nearly at the same time when the 8080 was introduced. Like 8080, it also had 16-bit address bus to handle 64KB of data, and 8-bit data bus to read and write data. The M6800 has very few registers. It has two Accumulators A and B, and the Index Register. This Microprocessor only supports the memory mapped IO because there is no instruction regarding IO operations in its instruction set.The M6800 has six addressing modes, 72 instructions and at least ...
Read MoreAddressing modes of 6800
We have seen the Internal structure and registers of Motorola M6800 Microprocessor. In this section we will see the addressing modes of M6800.There are six addressing modes in M6800 MPU. These modes are −Immediate Addressing ModeImplied Addressing ModeDirect Addressing ModeExtended Addressing ModeIndexed Addressing ModeRelative Addressing ModeNow Let us see some basic syntax of M6800 Assembly Language Programming.If a number is 8CH in hexadecimal, then we have to use $ sign before it. So it will be $8C. A number without $ is treated as decimal number. Similarly, an immediate data is denoted by # symbol. #50FF is a data, but ...
Read MoreIO/M* PIN in 8085 Microprocessor
In Intel 8085 microprocessor I/O and memory operation are differentiated by IO/m` status signal.IO/M` stands for ‘input-output/memory`’. When IO/M` is logic 0, it means that the address sent out by the processor is for addressing a memory location. When IO/M` is logic 1, it means that the address sent out by the processor is for addressing an I/O port.Fig: Pin diagram of 8085Let us consider this following example and also the voltage level at IO/M* pin. If we consider instruction MVI E, ABH then it means that ABH will be moved or copied to the register E. And as a ...
Read MoreRegisters of 8085 Microprocessor
It has eight addressable 8-bit registers: A, B, C, D, E, H, L, F, and two 16-bit registers PC and SP. These registers can be classified as −General Purpose RegistersTemporary Registers: a) Temporary data register b) W and Z registersSpecial Purpose Registers: a)Accumulator b) Flag registers c) Instruction registerSixteen-bit Registers: a) ProgramCounter (PC) b) Stack Pointer (SP)General Purpose RegistersRegisters B, C, D, E, H, and L are general purpose registers in 8085 Microprocessor. All these GPRS are 8-bits wide. They are less important than the accumulator. They are used to store data temporarily during the execution of the program. For ...
Read MoreSigned floating point numbers
Were present real numbers in our daily life is not convenient for representing very small numbers, like +0.00000012347650. This same number can be more conveniently represented in scientific notation as +1.23476× 10−07. But this actually stands for +0.000000123476. So there is an error of 0.00000000000005, which forms a very small percentage error.Floating-point representation is similar in concept to scientific notation. Logically, a floating-point number consists of:A signed (meaning positive or negative) digit string of a given length in a given base(or radix).This digit string is referred to as the significand, mantissa, or coefficient.A signed integer exponent which modifies the magnitude of ...
Read More