Difference Between Byte Stuffing and Bit Stuffing

Nitya Raut
Updated on 27-Jun-2020 13:15:24

20K+ Views

The differences between byte stuffing and bit stuffing can be done under the following heads −What are byte stuffing and bit stuffing?Byte stuffing is a mechanism to convert a message formed of a sequence of bytes that may contain reserved values such as frame delimiter, into another byte sequence that does not contain the reserved values.Bit stuffing is the mechanism of inserting one or more non-information bits into a message to be transmitted, to break up the message sequence, for synchronization purpose.Purposes of byte stuffing and bit stuffingIn Data Link layer, the stream of bits from physical layer are divided ... Read More

Character Oriented Framing and Bit Oriented Framing

Nancy Den
Updated on 27-Jun-2020 13:15:01

13K+ Views

Framing is a Data Link layer function whereby the packets from the Network Layer are encapsulated into frames. The data frames can be of fixed length or variable length. In variable - length framing, the size of each frame to be transmitted may be different. So, a pattern of bits is used as a delimiter to mark the end of one frame and the beginning of the next frame.The two types of variable - sized framing are −Character-oriented framingBit - oriented framingCharacter - Oriented FramingIn character - oriented framing, data is transmitted as a sequence of bytes, from an 8-bit ... Read More

Internal RAM Organization of Intel 8051

Arjun Thakur
Updated on 27-Jun-2020 13:12:22

22K+ Views

Internal RAM of the 8051microcontroller has two parts. First one for register banks, bit addressable memory locations, stacks etc. Another part is the SFR(Special function register) area. Only 21 addresses in the SFR area can be used in this microcontroller. Out of these 21 locations, 11are bit-addressable SFR locations.The bit addressable SFRs are like below -RegisterByte addressBit-addressP0 (Port 0)80H80H to 87HP1 (Port 1)90H90H to 97HP2 (Port 2)A0HA0H to A7HP3 (Port 3)B0HB0H to B7HPSWD0HD0H to D7HRegister A (Accumulator)E0HE0H to E7HRegister BF0HF0H to F7HTCON (Timer Control)88H88H to 8FHSCON (Serial Control)98H98H to 9FHIE (Interrupt Enable)A8HA8H to AFHIP (Interrupt Priority)B8HB8H to BFHNow let us ... Read More

2's Complement Notation

Ankith Reddy
Updated on 27-Jun-2020 13:12:13

5K+ Views

This is one of the methods of representing signed integers in the computer. In this method, the most significant digit (MSD) takes on extra meaning.If the MSD is a 0, we can evaluate the number just as we would any normal unsigned integer.If the MSD is a 1, this indicates that the number is negative.The other bits indicate the magnitude (absolute value) of the number.If the number is negative, the other bits signify the 2'scomplement of the magnitude of the number.Thus a positive number has the same representation in SM, 1's complement, and 2's complement notations. Only negative numbers are represented ... Read More

Programmer's View of 8051

Ankith Reddy
Updated on 27-Jun-2020 13:11:32

3K+ Views

Now let us see the internal registers, memory and other details from the Programmer’s point of view.There are these componentsEight registers(8-bit) R0 to R7Register A and B.These are also 8-bit registersPSW, Stack Pointer(SP), four ports (P0 to P3). These are also 8-bitDPTR register of 16-bit. This is divided into two 8-bit registers, these are DPH and DPLData RAM from location 08H to 7FHProgram memory from location 0000H to FFFFHProgram Counter (PC) of 16-bit

Representation of Fractions

Chandu yadav
Updated on 27-Jun-2020 13:11:24

1K+ Views

To represent fractions may be necessary quite often inside the computer. For example, it may be needed to represent inside a computer a value like +0.610 or -0.610. To represent signed fractions, it is necessary to assume the binary point just after the MSB in the bit sequence. Such numbers where the binary point is assumed to be at a fixed position in the bit sequence are called fixed-point numbers.Unsigned fractions will have the assumed binary point at the extreme left. SM, 1's complement, and 2's complement fractions will have this imaginary binary point just to the right of the ... Read More

2's Complement Fractions

George John
Updated on 27-Jun-2020 13:10:42

6K+ Views

As an example, the value of 1 001, if the interpretation is that it is a 2's complement fraction will be as follows -It is 1.001 assuming the binary point after the MS bit. As the MS bit is 1, it is a negative number. Then the remaining bits do not specify the magnitude directly. The 2's complement of 1 001 is 0110+ 1 = 0 111. This is a positive fraction with the value 1 × 2−1 +1 × 2−2 +1 × 2−3 = 0.5 + 0.25 + 0.125 = 0.875 decimal. Thus, -0.875 is the value of 1001.If ... Read More

Instruction Set of 8051

Chandu yadav
Updated on 27-Jun-2020 13:10:26

26K+ Views

The instructions of 8051 Microcontroller can be classified into five different groups. These groups are like belowData Transfer GroupArithmetic GroupLogical GroupProgram Branch GroupBit Processing GroupThis Bit-Processing group is also known as Boolean Variable Manipulation.Like 8085, some instruction has two operands. The first operand is the Destination, and the second operator is Source.In the following examples, you will get some notations. The notations are like −Rn = Any register from R0to R7 Ri = Either R0 or R1 d8 = Any 8-bit immediate data (00H to FFH) d16 = 16-bit immediate data a8 = 8-bit address bit = 8-bit address of ... Read More

Signed Floating Point Numbers

Arjun Thakur
Updated on 27-Jun-2020 13:10:04

2K+ Views

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

Data Transfer Group in 8051

Arjun Thakur
Updated on 27-Jun-2020 13:08:12

13K+ Views

In 8051 Microcontroller there is 28 different instructions under the Data Transfer Group. In total there are 79 opcodes. The flags are not affected by using the data transfer instructions, but the P (Parity) flag may change if the value of A register is changed using Data Transfer Instruction. Similarly, when a data is transferred to the PSW register, the flags will change.In the following table, we will see the Mnemonics, Lengths, Execution Time in terms of the machine cycle, Number of Opcodes etc.MnemonicsByte CountExecution TimeOpcode CountMOV A, Rn118MOV A, a8211MOV A, @Ri112MOV A, #d8211MOV Rn, A118MOV Rn, a8228MOV Rn, ... Read More

Advertisements