Let's start this article with some basics of flip-flops before moving onto discuss their triggering methods. Flip-Flops in Digital Electronics In digital circuits, a flip-flop is a sequential logic circuit which is used to store 1-bit of information. A flip-flop has one or more inputs and two outputs. It also has an input for provide a clock signal. Flip-flop is a fundamental building block of digital circuits. Hence, flip-flop is also referred to as an elementary memory element in digital systems. Flip-flops find their applications in computer memory, registers, counters, and many other digital systems and circuits. A flip-flop ... Read More
In digital circuits, a latch is a sequential logic circuit which has two stable states. Hence, a latch is also called as a bistable-multivibrator. A latch has capacity to store 1-bit of information. A latch has one or more inputs and two outputs. The outputs of a latch are specified by Q and Q'. Where, Q is the normal output of the latch and Q' is the inverted output. The block diagram of a latch is shown in Figure-1. In this article, we will discuss about the edge triggered latches, their types, applications. So, let us start with the ... Read More
Let's start this article with a brief overview of basic flip-flops before moving onto discuss a special type of flip-flop called edge-triggered flip-flop, how it works, its types and applications. What is a Flip Flop? In digital electronics, a flip-flop (FF) is a sequential logic circuit which is used for storing 1-bit of information. As we know, in digital systems, information is represented in binary form, i.e. in terms of 0 and 1. Where, a binary 0 and a binary 1 is referred to as a bit. The flip flop is a 1-bit memory cell that stores information in terms ... Read More
In digital electronics, a set of flip-flops that changes its states in response to pulses applied at the input is called a digital counter. In the digital counter circuit, the flip flops are connected in such a way that their combined state at any time is the binary equivalent of the total number of pulses that have occurred up to that time. Therefore, as its name implies, a counter is used to count pulses in a digital system. Digital counters are classified into the following two types namely, Asynchronous Counter − The type of counter in which the flip ... Read More
What is SR Flip-Flop? SR flip-flop is a simple 1-bit storage element which has two inputs namely S and R, and two outputs, i.e. Q and Q'. Where, S specifies Set input and R specifies Reset input. The output Q is the normal output and the Q' is the complemented or inverted output. In addition to SR inputs, the SR flip flop also has a clock input which is used for triggering the circuit. The block diagram of SR flip flop is shown in Figure-1 below. The operation of the SR flip flop can be analyzed using its truth ... Read More
What is a JK Flip-Flop? JK flip flop is also a 1-bit storage device having two inputs similar to SR flip flop, but it has inputs denoted by J and K instead of S and R. It has two outputs viz. Q (normal output) and Q' (inverted output). The clock signal is used for synchronization of the circuit. The block diagram of the JK flip flop is shown in Figure-1 below. The operation of the JK flip flop can be understood with the help of its truth table which is given below − Inputs Output ... Read More
In Swift, you can easily call a method along with parameters on the main thread through GCD. You can use the DispatchQueue.main.async method to execute a method on the main thread. Let's learn how to achieve this in Swift. Also, you can call a method with parameters after a delay using the DispatchQueue.main.asyncAfter method. Grand Central Dispatch (GCD) In iOS, macOS, and other Apple operating systems, Grand Central Dispatch (GCD) is a low-level C API that offers effective, system-wide control of concurrent processes. It is constructed on top of the dispatch queues and thread management primitives at a lower level. ... Read More
In Swift, you can remove subviews of a view by using a loop to iterate through each subview. Swift provides a method called removeFromSuperview() to remove a view from its superview. In this article, you will learn how to use this method with some examples. removeFromSuperview() This method belongs to the UIView class in Swift. This can be used to remove a view object from its superview. To call this method, you need to call it from a view object which needs to be removed from the superview. When you run removeFromSuperview() on a view, it sends a message to ... Read More
In Swift, there is a framework called AVFoundation that provides flexibility to play audio files. This framework provides you with a class called AVAudioPlayer to manage audio play and pause. In this article, you will learn how to play a sound using the AVAudioPlayer class in Swift. AVFoundation This framework is a very powerful multimedia framework in Swift. This provides you with most of the features to work with media files like audio, video, and other types of media files. This framework uses some common classes to manage media files. AVPlayer − This is a class that supports high-quality ... Read More
In Swift, you can use the UIDevice class to get a unique device ID. In this article, you will learn how to get a unique device ID using the identifierForVendor property in Swift. What is the UIDevice Class? Swift's UIDevice class gives access to device information like as name, model, system version, and unique identifier. Here's a rundown of some of the most significant attributes and methods of the UIDevice class − current − The current device object is returned by this class attribute. name − This property returns the device's name. model − The model of the device, ... Read More