Articles on Trending Technologies

Technical articles with clear explanations and examples

shiftIn() and shiftOut() in Arduino

Yash Sanghvi
Yash Sanghvi
Updated on 30-Jul-2021 3K+ Views

shiftIn() and shiftOut() commands in Arduino are, very loosely speaking, software implementations of SPI. Of course, SPI is much faster, but SPI can work only on some specific pins of Arduino. shiftIn() and shiftOut() can use any two GPIOs of Arduino (not some specific pins like SPI).Both shiftIn() and shiftOut() require two digital pins, one dataPin and one clockPin.The dataPin will shift in or shift out a byte (8 bits) of data, 1 bit at a time. The clockPin synchronizes the data transfer. It is generally kept low, and for each bit transfer, it goes HIGH and then back to ...

Read More

pulseIn() and pulseInLong() in Arduino

Yash Sanghvi
Yash Sanghvi
Updated on 30-Jul-2021 3K+ Views

If there is an incoming pulse on a pin, and you need to measure the duration of the pulse then the pulseIn() function comes in handy.SyntaxThe syntax is −pulseIn(pin, value)Where pin is the number of the pin on which you wish to measure the pulse. The value is the level of the pulse. It can be HIGH or LOW.For example, if you set the value to HIGH, it means that as soon as the voltage on the pin goes from LOW to HIGH, the measurement of the time will start. It will stop when the voltage on the pin goes ...

Read More

tone() and noTone() in Arduino

Yash Sanghvi
Yash Sanghvi
Updated on 30-Jul-2021 6K+ Views

The tone function can be used to generate a square wave (50% duty cycle) of a specific frequency on a pin.SyntaxThe syntax is −tone(pin, frequency)pin is the pin number on which to generate the tone. The frequency is specified in Hz.This function can also take in a third optional argument − the millisecond duration for which the tone should be generated on the pin.tone(pin, frequency, duration)If you don’t specify the duration, the tone will continue till the noTone() function is called on the same pin. The syntax of the noTone() function is −noTone(pin)where pin is the pin number on which ...

Read More

What happens if we try to extend a final class in java?

Maruthi Krishna
Maruthi Krishna
Updated on 29-Jul-2021 2K+ Views

In Java final is the access modifier which can be used with a filed class and a method.When a method if final it cannot be overridden.When a variable is final its value cannot be modified further.When a class is finale it cannot be extended.Extending a final classWhen we try to extend a final class that will lead to a compilation error saying “cannot inherit from final SuperClass”ExampleIn the following Java program, we have a final class with name SuperClass and we are trying to inherent it from another class (SubClass).final class SuperClass{    public void display() {       ...

Read More

final, finally and finalize in Java

Fendadis John
Fendadis John
Updated on 29-Jul-2021 12K+ Views

The final keyword can be used with class method and variable. A final class cannot be inherited, a final method cannot be overridden and a final variable cannot be reassigned.The finally keyword is used to create a block of code that follows a try block. A finally block of code always executes, whether or not an exception has occurred. Using a finally block allows you to run any cleanup-type statements that you just wish to execute, despite what happens within the protected code.The finalize() method is used just before object is destroyed and can be called just prior to object ...

Read More

What is Arithmetic Pipeline in Computer Architecture?

Ginni
Ginni
Updated on 29-Jul-2021 7K+ Views

Pipeline arithmetic units are generally discovered in very large-speed computers. It can execute floating-point operations, multiplication of fixed-point numbers, and the same computations encountered in mathematical problems.The inputs to the floating-point adder pipeline are two normalized floating-point binary numbers represented as −X = A x 2aY = B x 2bWhere A and B are two fractions that define the mantissa and a and b are the exponents. The floating-point addition and subtraction can be implemented in four segments, as a displayed figure. The registers labeled R is located between the segments to save intermediate outcomes. The suboperations that are implemented ...

Read More

What is Instruction Pipeline in Computer Architecture?

Ginni
Ginni
Updated on 29-Jul-2021 25K+ Views

An instruction pipeline reads consecutive instructions from memory while in the other segments the previous instructions are being implemented. Pipeline processing appears both in the data flow and in the instruction stream. This leads to the overlapping of the fetch and executes the instruction and hence simultaneous operations are performed.There is one possible more event associated with such a design is that instruction can generate a branch out of a sequence. In this method, the pipeline is clear and all the instructions that have previously been read from memory after the branch instruction should be rejected.A computer can be constructed ...

Read More

What is the division of binary numbers in Computer Architecture?

Ginni
Ginni
Updated on 29-Jul-2021 3K+ Views

The binary division is similar to division in decimals. The process involves successive comparison, shifting, and subtraction. The division of binary numbers is easy compared to the division of decimal numbers because the quotient is either 0 or 1. It is also not necessary to check the number of times the dividend (partial remainder) fits into the divisor.Divide OverflowIn a computer system, the division operation can lead to a quotient with an overflow because the registers cannot hold a number that exceeds the standard length. To understand this better, consider a system with a standard 5-bit register.One register is used ...

Read More

Know Your Client (KYC) – Outline, Process & Advantages

M S Faisal
M S Faisal
Updated on 29-Jul-2021 511 Views

Know Your Client (KYC) or Know Your Customer (KYC) is a crucial procedure used to validate the identification and other credentials of a financial services user before providing them with services. Identity and other information about a financial services user is verified via a regulatory procedure known as Know Your Customer (KYC).Key Points BrieflyKnow Your Customer (KYC) specifications are followed by the Government and financial services sector to check clients, especially their risk profiles, and to verify their presence as valid citizen in some cases.In the investing business, the Know Your Customer (KYC) regulations state that every broker-dealer must make ...

Read More

What is RISC Pipeline in Computer Architecture?

Ginni
Ginni
Updated on 29-Jul-2021 34K+ Views

RISC stands for Reduced Instruction Set Computers. It was introduced to execute as fast as one instruction per clock cycle. This RISC pipeline helps to simplify the computer architecture’s design.It relates to what is known as the Semantic Gap, that is, the difference between the operations provided in the high-level languages (HLLs) and those provided in computer architectures.To avoid these consequences, the conventional response of the computer architects is to add layers of complexity to newer architectures. This also increases the number and complexity of instructions together with an increase in the number of addressing modes. The architecture which resulted ...

Read More
Showing 48551–48560 of 61,297 articles
Advertisements