Skip to main content

Posts

Showing posts with the label MCU

How to choose single chip microcomputer or PLC in the field of industrial control

 Choosing between a single chip microcomputer and a PLC for industrial control applications depends on a number of factors, including the complexity of the control system, the required level of reliability and robustness, the cost constraints, and the required speed and accuracy of control. Here are some general guidelines to consider: Control system complexity: If the control system is relatively simple, with a limited number of inputs and outputs and basic logic requirements, a single chip microcomputer may be sufficient. However, if the control system is complex, with a large number of inputs and outputs, complex logic requirements, and the need for real-time operation, a PLC may be a better choice. Reliability and robustness: PLCs are designed for industrial control applications and are built to withstand harsh environments, including temperature extremes, humidity, and electrical noise. Single chip microcomputers may not be as robust and may not be able to withstand the same l...

The difference between PLC and microcontroller?

 PLCs and microcontrollers are both types of programmable electronic devices, but they are designed for different applications and have different characteristics. Application: PLCs are typically used in industrial control applications to automate manufacturing processes, while microcontrollers are used in a wide range of applications, including consumer electronics, robotics, and automotive systems. Programming language: PLCs are typically programmed using ladder logic or other programming languages that are specifically designed for industrial control applications. Microcontrollers are programmed using a wide range of programming languages, including C, C++, and assembly language. Input/output: PLCs typically have a large number of input/output (I/O) points, which allow them to interface with a wide range of sensors and actuators. Microcontrollers typically have a smaller number of I/O points, but can be used with external peripherals to expand their capabilities. Real-time operat...

Simple Programs in 8051 Assembly Language

 Here some simple assembly language programs for 8051 microcontroller are given to understand the operation of different instructions and to understand the logic behind particular program. First the statement of the program that describes what should be done is given. Then the solution is given which describes the logic how it will be done and last the code is given with necessary comments. Statement 1: – exchange the content of FFh and FF00h Solution: – here one is internal memory location and other is memory external location. so first the content of ext memory location FF00h is loaded in acc. then the content of int memory location FFh is saved first and then content of acc is transferred to FFh. now saved content of FFh is loaded in acc and then it is transferred to FF00h.                    Mov dptr, #0FF00h     ; take the address in dptr                     ...

8051 Microcontroller Assembly Language Programming

 In the previous 8051 Microcontroller Tutorial, we have seen about the 8051 Microcontroller Instruction Set and Addressing Modes. In this tutorial, we will take a look at the 8051 Microcontroller Assembly Language Programming, the structure of 8051 Assembly Language, example programs, etc. Before going into the details of the 8051 Microcontroller Assembly Language and Programming, let us get a brief idea about Programming Language in general (specific to Microcontrollers) and also types of Programming Languages. What is a Programming Language? Programming in the sense of Microcontrollers (or any computer) means writing a sequence of instructions that are executed by the processor in a particular order to perform a predefined task. Programming also involves debugging and troubleshooting of instructions and instruction sequence to make sure that the desired task is performed. Like any language, Programming Languages have certain words, grammar and rules. There are three types or leve...

Intel’s MCS-51 Microcontroller Family – It’s Here to Stay

 As I browse through many embedded electronics forums, I continue to see people making statements referencing Intel’s 8051 line of microcontrollers and how they are “obsolete”. However, nothing could be further from the truth. While Intel ceased production of the MCS-51 family in 2007, there are an abundance of manufacturers still making 8051-compliant microcontrollers under intellectual property license from Intel. Getting Better with Age Take for instance Atmel’s AT89S microcontroller series. These are not only 8051-compliant, they also come with many enhancements. While the original 8051 maxed out at an external clock speed of 12MHz, variants such as the AT89S8253 can run up to a 24MHz crystal and also have a x2 clock option, which effectively runs the instruction clock at 1/6th the crystal speed (versus the original 1/12th Fosc spec). While this only amounts to a 4MHz instruction clock — which may seem slow in comparison to modern micros such as a PIC18F4550 that can run a 12MH...

Intel 8051

 The Intel MCS-51 (commonly termed 8051, typically pronounced eight-oh-five-one) is a single chip microcontroller (MCU) series developed by Intel in 1980 for use in embedded systems. The architect of the Intel MCS-51 instruction set was John H. Wharton.[1][2] Intel's original versions were popular in the 1980s and early 1990s, and enhanced binary compatible derivatives remain popular today. It is an example of a complex instruction set computer (but also possessing some of the features of RISC architectures, such as a large register set and register windows) and has separate memory spaces for program instructions and data. Intel's original MCS-51 family was developed using N-type metal-oxide-semiconductor (NMOS) technology, like its predecessor Intel MCS-48, but later versions, identified by a letter C in their name (e.g., 80C51) use complementary metal–oxide–semiconductor (CMOS) technology and consume less power than their NMOS predecessors. This made them more suitable for ba...

What is ON/OFF Valve ?

 An ON/OFF Valve is the fluid equivalent of an electrical switch, a device that either allows unimpeded flow or acts to prevent flow altogether. These valves are often used for routing process fluid to different locations, starting and stopping batch processes, and engaging automated safety (shutdown) functions. What is ON/OFF Valve ? Valve styles commonly used for on/off service include ball, plug, butterfly (or disk), gate, and globe. Large on/off valves are generally of such a design that the full-open position provides a nearly unimpeded path for fluid to travel through. Ball, plug, and gate valves provide just this characteristic: A plug valve is very much like a ball valve, the difference being the shape of the rotating element. Rather than a spherical ball, the plug valve uses a truncated cone as the rotary element, a slot cut through the cone serving as the passageway for fluid. The conical shape of a plug valve’s rotating element allows it to wedge tightly into the “closed...