Phone

    00852-6915 1330

embedded Related Articles

Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips

IC Chips

STM32 vs ESP32: Which MCU Is Right for Your Project?

Technical Analysis: This definitive guide covers STM32 vs ESP32 for senior embedded engineers and technical founders transitioning from prototype to mass production. The leap from a breadboard proof-of-concept to a certified, mass-produced device exposes the critical flaws in generic microcontroller comparisons. Engineers frequently fall into the "Prototyping Trap" with highly abstracted wireless chips, or face "Hardware Paralysis" navigating complex industrial toolchains. This analysis bypasses basic clock-speed metrics to evaluate driver maturity, FCC certification costs, deep sleep power budgets, and 2026 silicon advancements, providing a definitive framework for selecting the correct firmware ecosystem.The 2026 Silicon Reality: The Lines Have CrossedESP32 is a pure-compute processor because Espressif removed wireless capabilities from its flagship to target Edge AI, while STM32 is a wireless SoC because STMicroelectronics integrated Bluetooth to dominate secure IoT. This shift demonstrates how ST Grows STM32 MCU Family capabilities to meet modern demands.Most tutorials still claim ESP32 is exclusively for cheap Wi-Fi devices and STM32 is the only option for industrial processing. According to 2026 technical specs, this premise is entirely obsolete.Espressif has aggressively pivoted into high-performance Edge AI and Human-Machine Interfaces (HMI). According to Espressif Systems Official ESP32-P4 Specifications, the ESP32-P4 features a dual-core RISC-V CPU running at 400 MHz, an integrated H.264 video encoder, and MIPI-CSI/DSI interfaces. Notably, it lacks built-in wireless connectivity entirely, requiring a companion chip like the ESP32-C6 for Wi-Fi or Bluetooth.Conversely, STMicroelectronics is closing the wireless gap. According to the STMicroelectronics STM32WBA Product Overview, the STM32WBA series is built on an ARM Cortex-M33 core running at 100 MHz and supports Bluetooth 5.4 alongside 802.15.4 (Zigbee/Thread/Matter). It targets SESIP Level 3 certification, ensuring compliance with the US Cyber Trust Mark for smart home security.Counter-Intuitive Fact: You can no longer assume an ESP32 has Wi-Fi out of the box. The newest flagship ESP silicon requires external network coprocessors, mirroring the traditional STM32 architecture it originally disrupted.Software Ecosystems: Abstraction vs. DeterminismThe ESP-IDF is a software-first RTOS wrapper because it prioritizes rapid network deployment, whereas STM32's CubeIDE is a hardware-first environment because it enables bare-metal deterministic control. This architectural focus ensures STM32 Microcontrollers Versatile Solutions for Modern Embedded Systems remain the standard for high-reliability applications.You are not choosing between two pieces of silicon; you are choosing between two fundamentally different engineering philosophies.Espressif’s ESP-IDF (IoT Development Framework) provides a robust API with a web-connected RTOS out-of-the-box. This enables fast time-to-market. However, the heavy wrapper layers create career anxiety among junior developers. Users on community forums often report a fear of getting "pigeonholed" into Arduino/ESP wrappers, asking, "If I want to learn true embedded systems concepts, will ESP32 teach me bad habits?"STMicroelectronics utilizes CubeMX and CubeIDE. STM32 purists value the ability to write "bare-metal" code directly to registers without an OS. For example, when configuring a matrix keypad in STM32, the developer interacts closely with the hardware. The ecosystem forces developers into the HAL vs. LL (Hardware Abstraction Layer vs. Low-Layer) driver debate. Engineers choose STM32 when they require strict determinism—the ability of a system to respond to an event within an exact, guaranteed timeframe, which is mandatory for motor control and robotics.ESP32 vs STM32 vs NRF52 vs RP2040 - Which is Best for Your Product?Pro Tip: If your device requires a web dashboard, the ESP-IDF saves months of development. If your device controls a physical motor, the abstraction of the ESP-IDF introduces unacceptable latency, making STM32's Low-Layer drivers mandatory.The Hidden Costs of Mass Production: Modules, Certs, and Power TrapsRegulatory and power consumption costs for mass production.Pre-certified modules are cost-effective because they bypass intentional radiator testing, saving tens of thousands in FCC certification fees compared to bare silicon.The transition from a prototype to a legal, mass-produced product introduces hidden engineering costs that spec sheets ignore. Experts point out that the physical difference between an ESP32 bare chip and a pre-certified module (like the WROOM-32) dictates your regulatory budget.According to Compliance Testing and Sunfire Testing FCC Cost Guides, FCC "intentional radiator" certification for a bare, uncertified RF chip design costs between $20,000 and $30,000. Using a pre-certified module downgrades the requirement to "unintentional radiator" testing, which costs approximately $3,000 to $6,500.Furthermore, engineers frequently fall into the ESP32 deep sleep trap. While the ESP32 features deep sleep modes, its wireless subsystem is inherently power-hungry. According to official datasheets, the ESP32's deep sleep current typically ranges from 10 μA to 150 μA. In stark contrast, the STM32L4 in Stop 2 mode draws ~1.5 μA, and the Nordic nRF52840 in System OFF mode draws between 0.4 μA and 1.5 μA.Experts point out that the RP2040 presents another hidden cost trap; while it features 264KB of SRAM, it contains zero internal flash memory. Every RP2040 design requires an external flash chip, increasing the Bill of Materials (BOM) cost and PCB complexity.Counter-Intuitive Fact: A $1 bare wireless chip costs significantly more to bring to market than a $3 pre-certified module due to the $20,000+ penalty of intentional radiator FCC testing.Navigating STM32’s "Alphabet Soup" vs ESP32's Singular FocusThe STM32 ecosystem is highly fragmented because it offers specialized silicon for exact power budgets, whereas the ESP32 ecosystem is centralized around a few versatile chips.In visual stress tests of microcontroller selector tools, we observed a logic-gate-style UI that categorizes the massive STM32 family into distinct branches: Mainstream (F1/G0), Ultra-low-power (L4), High Performance (H7), and Wireless. This "Alphabet Soup" creates a steep barrier to entry, but it provides exact I/O and power matching for commercial products.The primary advantage of this fragmentation is industrial stability. According to the STMicroelectronics Product Longevity Program, ST provides a formal 10-year rolling longevity commitment for its STM32 microcontrollers. Commercial hardware cannot risk unexpected End of Life (EOL) notices common in cheaper consumer-grade chips.Pro Tip: Do not over-spec your STM32. Using an H7 series for a task an L4 can handle destroys your battery life. Use ST's MCU selector tool to match your exact power source and compute intensity.Advanced Architecture: Designing a Dual-MCU SystemOptimized system architecture using both STM32 and ESP32.A dual-MCU architecture is optimal for complex robotics because it isolates deterministic motor control on an STM32 while offloading asynchronous network tasks to an ESP32.When a project requires both pinpoint hardware control and heavy web connectivity, forcing a single MCU to handle both compromises performance. The industry standard solution is a Dual-MCU Architecture.The Deterministic Controller: Deploy an STM32 as the primary hardware controller. It runs bare-metal code to manage motor drivers, read sensor arrays, and maintain strict timing loops without RTOS interruptions.The Network Coprocessor: Connect an ESP32 via UART or SPI. The ESP32 handles the messy, asynchronous tasks: maintaining Wi-Fi connections, hosting web servers, and downloading Over-The-Air (OTA) updates.This architecture prevents network latency spikes from crashing physical hardware operations.Which MCU Is Right for Your Project?The optimal microcontroller is project-dependent because consumer IoT requires rapid wireless deployment while industrial automation demands strict hardware determinism and longevity.The Scenario-Based Decision FrameworkIf you prioritize rapid IoT prototyping, audio/video streaming, and modular FCC compliance, choose the ESP32 ecosystem.If you prioritize strict motor determinism, coin-cell battery longevity, and 10-year supply chain stability, then STM32 is the strategic winner.If you prioritize learning bare-metal embedded systems for a career, choose STM32. It forces you to understand memory maps and registers without RTOS hand-holding.Entity Comparison TableAttributeESP32 EcosystemSTM32 EcosystemPrimary FrameworkESP-IDF (Software-First)CubeIDE / HAL / LL (Hardware-First)Deep Sleep Power10 μA - 150 μA~1.5 μA (STM32L4 Stop 2)Supply LongevityStandard Consumer Lifecycle10-Year Rolling CommitmentDeterminismLow (RTOS Overhead)High (Bare-Metal Capable)2026 Flagship FocusEdge AI / HMI (ESP32-P4)Secure Wireless IoT (STM32WBA)Community Consensus: What Users SayEngineering communities are polarized because software developers prefer ESP32's rapid deployment while hardware purists demand STM32's register-level control.Users on community forums often report that transitioning from ESP32 to STM32 feels like hitting a brick wall due to the complexity of clock configuration and linker scripts.A common consensus among enthusiasts is that ESP32 is unmatched for hobbyist home automation, but STM32 remains the undisputed standard for automotive and medical device design.Real-world testing suggests that relying on ESP32 for battery-powered remote sensors results in frequent battery replacements, driving engineers back to STM32L or nRF52 series chips.Conclusion & Technical FAQsFinal architecture decisions are critical because migrating firmware between fundamentally different hardware ecosystems mid-production causes severe budget overruns and delayed launches. Match your MCU to your production constraints, power budget, and certification strategy, not just the clock speed on the spec sheet.Can I write bare-metal code on an ESP32?Yes, but it fights the design intent of the ESP-IDF. Bypassing the RTOS on an ESP32 disables its primary advantages, making an STM32 a more logical choice for bare-metal applications.Why would anyone pay more for STM32 when ESP32 has more processing power?Engineers pay for determinism, ultra-low deep sleep power consumption, exact I/O matching, and a guaranteed 10-year supply chain.Is ESP32 reliable enough for industrial control?Yes, but it requires extensive watchdog timer configurations, strict RTOS task management, and physical module shielding compared to the native robustness of an STM32.
Kynix On 2026-06-10   191
Transmitters

UART(Universal Asynchronous Receiver Transmitter): A Comprehensive Guide

IntroductionThink about the modern embedded systems around you—your smartphone, smartwatch, or even the smart appliances in your home. These devices are constantly exchanging information in the background, working together to deliver the seamless experiences we have all come to expect. At the core of this communication lies the Universal Asynchronous Receiver Transmitter, or UART.UART is a key player in serial communication for many embedded applications. It converts parallel data into serial form for transmission and then back to parallel form for processing. This guide will walk you through everything you need to know about UART, from its basics to its real-world applications, advantages, and limitations.Whether you're an engineer working on embedded system designs, a hobbyist tinkering with microcontrollers, or simply someone interested in understanding serial communication, this guide will help you get to grips with the fascinating world of UART. What is a UART?The Universal Asynchronous Receiver Transmitter (UART) is a hardware component or module that facilitates serial communication by converting parallel data into serial form. Unlike synchronous protocols, UART doesn’t need a clock signal to synchronize data transmission between devices. Instead, it relies on start and stop bits to signal the beginning and end of a data transmission, making it both simple and versatile.UART is composed of two main parts: the transmitter and the receiver. The transmitter takes parallel data and sends it serially over a communication line, while the receiver collects the incoming serial data and converts it back into parallel form for the device to process. How Does UART Work?To understand how UART works, we need to explore how it transmits and receives data. UART works by breaking down parallel data into a sequence of bits, which are then transmitted serially. Each byte of data is preceded by a start bit, followed by the data bits, an optional parity bit for error checking, and concluded with one or two stop bits.The start bit signals the beginning of a transmission, usually involving a transition from a high voltage (idle state) to a low voltage. The data bits are then transmitted—generally 5 to 9 bits, depending on the configuration. The optional parity bit helps detect errors during transmission, while the stop bit marks the end of the data packet.On the receiving end, the UART module interprets these bits by identifying the start bit, reading the data bits, verifying the parity, and checking for the stop bit. This process enables reliable communication between devices with minimal complexity. Key Features of UARTAsynchronous Communication: Unlike SPI or I2C, UART does not need a clock signal, which makes it easier to implement and less resource-intensive.Simple Interface: UART requires just two signal lines for communication—one for transmitting data (TX) and one for receiving data (RX).Configurable Baud Rate: The speed of communication, defined as the baud rate, is adjustable. Common baud rates include 9600, 115200, and others, making UART flexible for different applications.Error Detection: The optional parity bit allows for basic error detection, which is useful in environments where data integrity is crucial. Applications of UARTUART is extensively used in embedded systems and serves as a communication bridge between microcontrollers and peripherals. Here are some common applications of UART:Microcontroller to PC Communication: UART is often used to establish communication between microcontrollers and PCs. This is commonly done through USB-to-UART converters, which are great for debugging or data logging purposes.Bluetooth Modules: Many Bluetooth modules, like the HC-05 and HC-06, use UART to communicate with microcontrollers, providing an easy way to add wireless capabilities to projects.GPS Modules: GPS modules typically use UART to output serial data, which microcontrollers can then read to get location information.Debugging and Diagnostics: UART is a popular choice for debugging in embedded systems. By connecting the UART port to a serial console, developers can monitor the system’s behavior, making it easier to diagnose issues. Comparing UART with Other Serial Communication ProtocolsUART is just one type of serial communication protocol, and it’s important to know when to use it compared to other options like SPI and I2C.SPI (Serial Peripheral Interface): SPI is a synchronous communication protocol that requires a clock signal. It’s faster than UART and ideal for high-speed data transfer, but it requires more signal lines and doesn’t easily support multiple devices on the same bus.I2C (Inter-Integrated Circuit): I2C is another synchronous protocol that uses two lines (SCL and SDA) for communication. It supports addressing, which makes it better suited for connecting multiple devices. However, it has more overhead compared to UART and requires careful timing.In summary, UART is simpler to implement and well-suited for point-to-point communication where speed isn’t a critical factor. It’s a great choice for applications with minimal device connections. Advantages of UARTEase of Implementation: UART is straightforward to set up, with simple hardware requirements and minimal software configuration.Low Cost: With only two wires needed for communication, UART is cost-effective in terms of both hardware and design complexity.Flexible Baud Rate: UART allows for adjustable baud rates, providing flexibility when connecting devices with different communication speed requirements. Limitations of UARTShort Distance Communication: UART is not ideal for long-distance communication as the signal can degrade over extended cables, leading to data corruption.Point-to-Point Limitation: UART is generally limited to point-to-point communication. It’s not designed for multi-device communication without additional hardware.Speed Constraints: Compared to protocols like SPI, UART operates at slower speeds, making it unsuitable for high-speed data transfers. Choosing the Right UART ConfigurationChoosing the right UART configuration for your project involves several considerations:Baud Rate: Ensure that both devices use the same baud rate to prevent data errors.Parity Bit: Determine whether error detection is needed. Adding a parity bit can help detect transmission errors, enhancing reliability.Number of Stop Bits: Depending on the required reliability, you can choose between one or two stop bits. Two stop bits provide greater reliability but reduce the overall data rate.Flow Control: For higher data rates, consider implementing hardware flow control (RTS/CTS) to prevent data loss when the receiver cannot keep up with the incoming data. Real-World Example: UART in Microcontroller ProjectsA common use of UART is in microcontroller projects involving peripheral modules like GPS, Bluetooth, or Wi-Fi. For example, when building a GPS tracker, the GPS module typically communicates its location data to a microcontroller via UART. The microcontroller can then process this data and send it to another module, such as a Bluetooth transmitter, to relay the location to a smartphone.Another practical application is debugging firmware for IoT devices. By connecting the UART to a USB-to-serial converter, debug messages can be sent from the device to a PC terminal, helping developers understand what the firmware is doing in real-time and diagnose any issues. ConclusionThe Universal Asynchronous Receiver Transmitter (UART) is an essential component in embedded systems, providing a reliable, low-cost means for serial communication. Its ease of use and flexible baud rate make it a popular choice for a wide range of applications, including debugging, data transmission, and peripheral integration.While UART has its limitations—such as being point-to-point and having slower data transfer speeds compared to other protocols—its simplicity and effectiveness make it indispensable in many embedded projects. By understanding how UART works and knowing when to use it, you can design better, more reliable systems and appreciate the intricacies of serial communication.Ready to explore more? At Kynix Electronic, we offer a range of components, including UART modules and integrated circuits, to meet your embedded system needs. Visit our site today and discover the perfect components to kickstart your next project with confidence!
Allen On 2024-11-27   73
IC Chips

Real Time Clocks: A Comprehensive Guide for Every Application

Introduction to Real Time Clocks (RTCs)In a world increasingly reliant on precision and synchronization, Real Time Clocks (RTCs) have become indispensable components in countless devices. From smartphones and computers to industrial machines and embedded systems, RTCs ensure accurate timekeeping, critical for both functionality and security. This guide aims to demystify RTCs, their function, types, and applications, giving engineers and hobbyists alike the knowledge to choose the right clock for their projects. What Are Real Time Clocks?A Real Time Clock is an integrated circuit (IC) designed to keep track of the current time and date, even when the main system is powered off. It typically uses a crystal oscillator to generate a stable signal that counts the passage of time.Unlike a typical system clock, which stops when the device powers down, RTCs are equipped with a backup power source, often a small battery or capacitor, ensuring that timekeeping continues uninterrupted. This feature is especially crucial in applications like embedded systems, data logging, and security devices, where time continuity is essential. Importance of Real Time ClocksRTCs serve a dual purpose in modern electronics: accurate timekeeping and power efficiency.Timekeeping:Devices rely on RTCs for consistent time management. This is crucial for functions such as event scheduling, logging activities, or simply providing timestamps for files and messages.Power Efficiency:In systems where the main processor is frequently put into sleep mode to save energy, the RTC keeps time without consuming significant power. This makes RTCs particularly valuable in battery-powered devices such as wearables and IoT devices. Common RTC TypesNot all RTCs are the same. Depending on the specific application and environmental conditions, various types of RTCs offer different levels of performance and functionality. Let’s explore some of the most common RTC types:1. IC-based RTCsIntegrated circuit-based RTCs are found in most modern electronics, such as laptops, smartphones, and embedded systems. These devices are small, efficient, and often include a crystal oscillator and a backup battery. Examples include popular models like the DS1307 and DS3231, each offering different features like temperature compensation and programmable alarms.2. Software-based RTCsSome systems use software to simulate an RTC by periodically syncing with an external time server or using the system’s own clock. While this can be a cost-effective solution, it is not as reliable as hardware-based RTCs, especially in devices that need to maintain time through power outages.3. Microcontroller-integrated RTCsIn many embedded systems, the microcontroller itself may include an integrated RTC module, which uses the system clock or an external oscillator to track time. This is common in microcontroller families like STM32 and ESP32. Integrated RTCs reduce the need for additional components and can simplify design, but they might lack the precision of standalone IC-based RTCs. How RTCs WorkAt the core of an RTC is an oscillator, often based on a quartz crystal, which generates a stable frequency. This frequency is used to increment a series of counters that represent seconds, minutes, hours, and so on. Here’s a breakdown of how an RTC operates:Crystal Oscillator:The quartz crystal oscillates at a specific frequency, usually 32.768 kHz, to provide accurate timing.Counters:These oscillations are counted to keep track of time. For example, once the oscillator counts 32,768 cycles, the RTC knows that one second has passed.Backup Power:To ensure continuous operation during power loss, RTCs are equipped with backup power, either in the form of a battery, capacitor, or supercapacitor.Registers:Time and date are stored in internal registers, which can be accessed by the host system via standard communication protocols like I²C or SPI. Choosing the Right RTC for Your ApplicationSelecting the right RTC depends on several factors, including precision, power consumption, and communication interface. Here’s how to choose the best fit for your project:1. PrecisionFor applications like data logging or industrial automation, time precision is critical. RTCs with temperature compensation, such as the DS3231, ensure accuracy even under fluctuating environmental conditions. On the other hand, non-compensated RTCs may drift over time, requiring periodic recalibration.2. Power ConsumptionIf your device is battery-powered, like an IoT sensor or wearable device, you’ll want an RTC with low power consumption. RTCs like the DS1307 have a standby current in the microamp range, ensuring minimal battery drain over extended periods.3. Communication InterfaceMost RTCs communicate with the host system via I²C or SPI interfaces. If your system has limited I/O pins or requires low-speed communication, I²C might be the better choice. SPI, however, is faster and may be necessary for high-speed applications.4. Backup Power SourceConsider the backup power source available in your design. If space is limited, a supercapacitor may be preferable over a battery. Some RTCs are designed to operate with very low voltage, ensuring they can function with minimal power during outages. Applications of Real Time ClocksRTCs are used in a wide variety of applications, from consumer electronics to industrial systems. Below are a few key areas where RTCs play a critical role:1. Embedded SystemsIn embedded systems, RTCs ensure that time-sensitive operations, such as data logging or event scheduling, are accurate and reliable. RTCs in microcontroller-based systems enable features like real-time monitoring and timed wake-ups.2. Wearable TechnologyWearables, like fitness trackers and smartwatches, require accurate timekeeping for tracking activities and events. RTCs ensure that these devices continue to function properly, even when the main processor is asleep.3. Security SystemsIn security applications, time synchronization is vital for logging access events, triggering alarms, and coordinating between multiple sensors. RTCs ensure that even in the event of power failure, the system keeps track of time, preserving the integrity of security logs.4. Networked DevicesIn devices that communicate over networks, such as routers or IoT hubs, RTCs ensure accurate timestamps for messages and logs. This is essential for tracking system events, ensuring data consistency, and troubleshooting errors. Key Specifications of RTCsWhen selecting an RTC, it's important to understand its key specifications to match your application’s needs:Accuracy (ppm):The accuracy of an RTC is typically specified in parts per million (ppm). Lower ppm values mean more accurate timekeeping.Standby Current (µA):This indicates how much current the RTC consumes when the system is powered down.Backup Power Voltage (V):RTCs require a specific backup voltage range, which can vary between models. Ensure your backup power supply matches this requirement.Operating Temperature Range:Some RTCs are designed to function in extreme temperatures, making them suitable for industrial or outdoor applications. ConclusionReal Time Clocks are essential components for maintaining accurate time in modern electronic systems. Whether you're designing a low-power wearable or an industrial logging device, understanding RTCs and their specifications can help you make the right choice for your project. From selecting the right type to optimizing for power and performance, this guide provides the insights needed to integrate RTCs into your design successfully.
Allen On 2024-10-21   149
IC Chips

How Embedded Controllers are Changing the World

  With the evolving times and fast-advancing technologies, smart devices, computerized systems and other industrial applications are heavily relying on miniature computing.  In today’s world, embedded systems are a critical part of the daily average person ranging from their application in homes, offices, industries and even personal gadgets.   These embedded systems have become a crucial part of real life partly due to their ease of use, minimal intervention and availability. The engineering behind these systems is to meet the requirements while being efficient, low powered and meeting essential demands. Some of the devices that we used daily with smart devices include microwaves, smart ovens, refrigerators, washing machines, and smart lighting, to mention but a few.   Artificial intelligence and machine learning in recent days have been in the limelight with many investors and a major key player in the world of technology contributing to its growth. The application of machine learning and artificial intelligence is virtually limitless. The heart of most devices using this technology are embedded systems. As the use of embedded systems continues to grow within every industry and sector, so does technology.   Embedded systems and embedded controllers are often used interchangeably and for the most part, can pass for each other. However, there is a slight difference in meaning. Embedded Systems vs Embedded Controllers An embedded system is a combination of hardware and software designed for a specific purpose, often with real-time constraints. It typically consists of a microcontroller, memory, input/output peripherals, and sometimes additional hardware such as sensors or actuators. Embedded systems are used in a wide range of applications, including consumer electronics, automotive, aerospace, and industrial automation.   An embedded controller is a type of microcontroller, often just referred to as a microcontroller, that is specifically designed for controlling a specific device or system. It is typically used in embedded systems that require precise control over the operation of mechanical or electrical components. Embedded controllers often have specialized features such as analogue-to-digital converters, timers, and communication interfaces that make them well-suited for controlling a specific system.   In general, an embedded controller is a specific type of microcontroller that is designed to perform a specific function within an embedded system. Meanwhile, an embedded system can consist of various components, including microcontrollers, and is designed to perform a specific task or set of tasks. Thus, an embedded system is the device and interface that we interact with daily while the microcontroller is the control unit that gives life to the technology.   Over the years, embedded controllers have evolved significantly with major improvements and advancements from the earliest microprocessors and iterations of a microcontroller to the advanced microcontrollers we use today. Why embedded controllers Embedded controllers are found in a wide variety of devices, products and systems from household appliances and medical devices to industrial machinery and automotive systems. Their application also can be vastly diverse from simple automation applications such as light control to entire industrial automation setups. With the rise of IoT and industrial application of IoT (IIoT), applications in the industrial sector have rapidly expanded.   Aside from their simplicity, inexpensiveness and a vast array of applications, embedded systems are chosen for their other advantages. Compared to traditional computers and microprocessors, embedded controllers are the key enablers of modern automation.   Here are a few key indicators of how embedded systems have evolved and changed the world of automation and modern miniaturized computing: Improved efficiency  Embedded controllers are helping to improve efficiency in a variety of applications, from smart homes to industrial automation. By automating routine tasks and optimizing processes, these controllers can help reduce waste, save energy, and streamline operations.   Enhanced functionality  Embedded controllers are enabling new and innovative features in a wide range of products, from cars and smartphones to medical devices and appliances. These controllers are making it possible to deliver new levels of performance, functionality, and convenience to consumers and businesses.   Increased automation Embedded controllers are helping to drive the automation of many industries, from manufacturing and logistics to agriculture and healthcare. By automating routine tasks, these controllers can help increase productivity, reduce costs, and improve quality control.   Greater precision and accuracy Embedded controllers are enabling greater precision and accuracy in many applications, from medical devices and scientific instruments to automotive systems and consumer electronics. By controlling and monitoring specific functions, these controllers can help ensure that products and systems operate reliably and accurately.   Advancements in technology Embedded controllers are driving advancements in technology, from the Internet of Things (IoT) to autonomous vehicles and smart cities. These controllers are enabling the development of new technologies and systems that are transforming the way we live, work, and interact with the world around us.   Integration of communication interfaces In the mid-2000s, microcontrollers began to integrate communication interfaces, such as Ethernet, Wi-Fi, and Bluetooth, which made it possible to connect devices to the internet and other devices. This paved the way for the development of the Internet of Things (IoT).   Advancements in power efficiency In recent years, microcontrollers have become more power-efficient, with the development of low-power processors, sleep modes, and power management systems. This has enabled the development of battery-powered devices that can operate for extended periods.   Advanced functionality and security Today's microcontrollers offer advanced functionality, such as real-time operating systems, graphics processing, and machine learning capabilities. They also incorporate advanced security features to protect against cyber threats.   Embedded controllers are shaping the world we live in, enabling new levels of efficiency, functionality, and automation across a wide range of industries and applications. As technology continues to advance, microcontrollers are likely to continue to evolve and play an increasingly important role in our lives.   Exploring Embedded Controllers in Real Life As earlier said, the application of embedded controllers has become immense and the potential of further exploration is still underway. With these advancements and vast applications, the impact of this technology is revolutionary and is shaping the future.   Embedded controllers are changing the world in several ways, thanks to their ability to improve efficiency, increase productivity, and enhance functionality in a wide range of applications. Here are a few examples:   Smart Home Automation and Home Appliances In terms of vast applications and the most widely explore uses of embedded controllers, home automation carries the day. This is perhaps due to the simplicity of using embedded controllers and embedded systems, enabling small applications, simple smart devices, DIY projects of automation and other reliable solutions to smart monitoring and even security systems. Embedded controllers are a key component of the smart home revolution, enabling homeowners to remotely monitor and control their appliances, heating and cooling systems, security systems, and more. This allows for greater energy efficiency, convenience, and comfort.   Health Management Systems Embedded controllers are playing an important role in healthcare, enabling the development of advanced medical devices that can monitor and administer medication with greater accuracy and precision. This improves patient outcomes and reduces the risk of errors.   Medical Devices Over the longest time, medical devices and other healthcare-related systems have tried to incorporate embedded systems. This allows for easier monitoring, management and even automation of simple processes. The systems can gather and collect data on a patient’s condition and monitor progress in treatment by monitoring heart rate, pulse rate and other vitals. The information can be relayed to caregivers or doctors via the cloud.   Medical devices, such as pacemakers and insulin pumps, rely on embedded controllers to monitor vital signs and even administer medication. These controllers are designed to operate reliably and accurately in a wide range of conditions Automobiles and Autonomous Vehicles With the advent of the booming exploration in autonomous and self-driving vehicles, such as self-driving cars, autonomous submarines and unmanned drones, the use of embedded controllers has played a key role. Providing navigation systems, IoT modules, battery management systems and other subsystems that relay all the needed data to the users. Embedded controllers are a critical component of autonomous vehicles, enabling them to monitor their surroundings, make decisions, and take action without human intervention. This has the potential to revolutionize transportation and make it safer and more efficient.   In modern automobiles, embedded systems are designed and fitted to provide a better customer experience whilst also providing enhanced safety on the road. The result of this has been realized with lower traffic fatalities over the years.Adaptive speed control, automobile breakdown warning, pedestrian detection, merging assistance, airbags, and other active safety systems are some prominent examples. These are a few of the characteristics that are expected to reduce the risk of accidents and increase demand for embedded systems throughout the world.   Industrial automation With Industry 4.0 on the cusp of fruition, embedded controllers are playing a vital role in its realization being the link between modern technology, IoT and industrial systems. Most industrial systems and setups are adopting machine learning and artificial intelligence to improve work efficiency, accuracy, repeatability, and safety and reduce the cost of labour. This is possible since machines using sophisticated algorithms can identify defects, reduce downtime and diagnose systems before failure.   Embedded controllers are used in industrial automation systems to control machinery and monitor production processes. These controllers can operate in harsh environments and are designed to withstand high temperatures, vibrations, and other stresses. In such applications robots are designed to perform tasks that are considered dangerous. Robots are equipped with embedded systems, employing the use of sensors actuators and feedback from other systems to perform the tasks safely.   Consumer electronics Devices like smartphones, tablets, and smart speakers use embedded controllers to manage their complex functions and interfaces. These controllers help to optimize battery life, reduce power consumption, and enhance user experiences.   Overall, the evolution of microcontrollers has enabled the development of a wide range of devices and systems, from simple household appliances to complex industrial machinery and the Internet of Things. As technology continues to advance, microcontrollers are likely to continue to evolve and play an increasingly important role in our lives.   FAQs What is an embedded controller? An embedded controller, also known as a microcontroller, is a small computer system that is designed to control and manage specific tasks within electronic devices.   Embedded controllers are changing the world in several ways, such as improving efficiency, enhancing functionality, increasing automation, and enabling new technologies and systems.   What are some examples of applications that use embedded controllers? Examples of applications that use embedded controllers include smart homes, medical devices, automotive systems, industrial automation, and the Internet of Things (IoT).   Embedded controllers are playing an important role in healthcare, enabling the development of advanced medical devices that can monitor and administer medication with greater accuracy and precision, leading to improved patient outcomes and reduced risk of errors.   Embedded controllers are a critical component of the IoT, enabling devices to communicate with each other and with the internet, and enabling the development of new technologies and systems that are transforming the way we live and work.   What are some future developments in embedded controllers? Future developments in embedded controllers are likely to include advancements in processing power and memory, integration of communication interfaces, improvements in power efficiency, and advanced functionality such as machine learning and artificial intelligence          
Karty On 2023-03-27   315
Resistors

Types of Flash Memory Comparison: NAND vs NOR

IntroductionFLASH is a type of non-volatile memory that retains data even when power is disconnected. Unlike RAM, which can rewrite data at the byte level, flash memory operates differently. A flash memory chip consists of an array of data storage cells organized into blocks, with each block containing multiple pages (typically 64 to 256 pages in modern devices, though older devices used 32 pages). A page is usually 2KB, 4KB, 8KB, or 16KB in modern NAND flash, though the original specification was 512 bytes plus spare area, as flash was initially developed as a disk replacement technology.What Is Flash Memory?Ⅰ Types of Flash MemoryFlash memory is widely used as a storage medium in digital cameras, smartphones, tablets, USB drives, SSDs, and various consumer electronics. Flash memory cards come in various form factors depending on manufacturers and applications, including USB flash drives, CompactFlash (CF card), MultiMediaCard (MMC card), Secure Digital (SD card, microSD), Memory Stick, and XD-Picture Card (XD card). Note that SmartMedia (SM card) and Microdrive have been discontinued. While these flash cards have different physical formats and specifications, their underlying technical principles remain similar.Flash memory includes two main architectural types: NOR Flash and NAND Flash. NOR Flash is a random access device with dedicated address and data lines (similar to SRAM), allowing byte-level read and write operations and direct access to any memory location, making it an excellent ROM alternative, such as in computer BIOS chips. NAND Flash, however, lacks dedicated address lines and cannot be directly addressed. It is controlled by sending commands and addresses through an I/O interface, meaning NAND Flash can only be accessed in pages, making it more suitable for sequential data storage.Ⅱ NAND Flash MemoryNAND Flash is extensively used in high-capacity storage devices such as memory cards, USB drives, SSDs, eMMC, and UFS storage. NAND Flash cells are categorized by the number of bits stored per cell: SLC (Single-Level Cell), MLC (Multi-Level Cell), TLC (Triple-Level Cell), and QLC (Quad-Level Cell). SLC stores 1 bit per cell, MLC stores 2 bits, TLC stores 3 bits, and QLC stores 4 bits per cell.As more bits are stored in a single cell, the read/write performance decreases, endurance diminishes, but cost per gigabyte is reduced, making higher-density options more economical for consumer applications.ItemsSLCMLCTLCQLCBits Per Cell1234P/E Cycles50,000-100,0003,000-10,0001,000-3,000100-1,000Read Time (μs)255075100Program Time (μs)200-300600-900900-13501350-2000Erase Time (ms)1.5-234.56-8SLC is primarily used in enterprise, industrial, and military applications due to its high-speed writing, low error rate, and exceptional durability.MLC is targeted at consumer and prosumer applications, offering twice the capacity of SLC at lower cost. It's suitable for USB drives, smartphones, digital cameras, and consumer-grade SSDs.TLC has become the mainstream choice for consumer SSDs and SD cards due to its balance of cost, capacity, and acceptable performance for everyday use.QLC, introduced more recently, offers even higher density and lower cost per gigabyte, making it increasingly popular in budget SSDs and high-capacity storage solutions, though with reduced endurance.As a practical solid-state storage medium, NAND Flash has unique physical characteristics requiring specialized management. Designers face several key challenges:1) Erase-before-write requirement: Data cannot be overwritten directly; blocks must be erased before new data can be written2) Wear mechanism: Limited program/erase (P/E) cycles impose durability constraints3) Read/write interference: Operations can cause data errors in adjacent cells4) Data retention: Charge leakage over time can cause data loss5) Bad block management: Both factory defects and runtime failures must be managedKey technologies addressing these challenges include:1) Cell type selection: Choosing appropriate NAND type (SLC/MLC/TLC/QLC) based on application requirements2) Wear leveling algorithms: Distributing write operations evenly across all blocks to maximize lifespan3) Bad block management: Identifying and mapping out defective blocks to ensure data integrity4) Error Correction Code (ECC): Detecting and correcting bit errors using advanced algorithms like BCH or LDPC5) Write amplification mitigation: Minimizing unnecessary write operations to extend device life6) Garbage collection: Consolidating valid data and reclaiming space from partially used blocksData is stored as electrical charge in Flash memory cells. The amount of stored charge depends on the voltage applied to the Control Gate, which controls whether charge is injected or removed from the floating gate.1) For programming (writing) NAND Flash, voltage is applied to the Control Gate to inject electrons into the floating gate. When charge exceeds the threshold voltage (Vth), the cell represents a logical 0.2) For erasing NAND Flash, electrons are removed from the floating gate. When charge falls below the threshold voltage (Vth), the cell represents a logical 1. Ⅲ NOR Flash MemoryNOR Flash, similar to conventional memory, supports random access, enabling XIP (eXecute In Place) functionality. This allows code execution directly from the flash without copying to RAM, making it ideal for boot code, BIOS/UEFI firmware, and embedded system applications requiring immediate code execution.NOR Flash is categorized into two types based on host interface: Parallel NOR Flash and Serial NOR Flash.Parallel NOR Flash connects directly to the host controller with its contents mapped into the CPU address space, eliminating the need to copy to RAM. Early BIOS implementations used the FWH (Firmware Hub) interface, a parallel connection that has been largely obsoleted due to pin count and speed limitations.Serial NOR Flash is more cost-effective than Parallel NOR Flash and typically connects to the host processor or Platform Controller Hub (PCH) via SPI (Serial Peripheral Interface), Quad-SPI (QSPI), or Octal-SPI interfaces. Modern implementations support higher speeds through multi-lane configurations.Today, virtually all UEFI/BIOS firmware, embedded systems, IoT devices, and many consumer electronics use NOR Flash. Typical capacities range from 1MB to 256MB, with 16MB-128MB being common for modern UEFI implementations. While more expensive per gigabyte than NAND, NOR Flash offers superior reliability and random access performance.NOR Flash has slower erase speeds and lower erase cycle counts compared to NAND, but these limitations rarely impact BIOS/firmware performance or cause device failures due to the infrequent update nature of firmware. Ⅳ NAND Flash vs NOR FlashCompared with NOR flash memory, NAND flash memory requires fewer transistors per cell to store the same amount of data, resulting in smaller die size and higher storage density. This architectural difference makes NAND significantly more cost-effective for high-capacity storage applications.In terms of read speed, NOR flash memory offers faster random access than NAND flash memory, with typical access times of 50-100ns compared to NAND's page-based access. However, NAND flash memory significantly outperforms NOR in sequential write and erase operations. NAND's block-based erase operation is simpler and faster, erasing entire blocks (typically 128KB-4MB) at once.NOR flash memory requires all bits to be set to 1 during erase operations before programming. While NOR flash memory provides faster random access and simpler byte-level operations, its lower storage density and higher cost make it more suitable for code storage and execution. NAND flash memory provides extremely high cell density (modern single chips can exceed 1TB capacity), making it ideal for mass data storage with fast write and erase speeds. Additionally, NAND flash operates on page-based read/write units (typically 4KB-16KB) and block-based erase units, making it functionally similar to traditional disk drives.NAND Flash is more susceptible to bit errors than NOR Flash, necessitating robust Error Detection and Correction (EDC/ECC) algorithms. Modern NAND implementations use advanced ECC schemes like BCH (Bose-Chaudhuri-Hocquenghem) or LDPC (Low-Density Parity-Check) codes. Additionally, NAND Flash develops bad blocks over its lifetime. File systems like FAT on SD cards experience frequent rewrites of the file allocation table, and the P/E cycle count per block is critical to NAND Flash longevity. Balancing erase cycles across all blocks and managing bad blocks requires specialized firmware-level functionality including bad block management, wear leveling, ECC, and garbage collection. This management layer is called the FTL (Flash Translation Layer). Based on FTL implementation location, Flash Memory is categorized as Raw Flash or Managed Flash.Raw Flash requires the host system to implement FTL functionality, giving designers complete control but requiring significant software development. Managed Flash (such as eMMC, UFS, SD cards) includes an integrated controller that handles FTL operations transparently, simplifying host system design at the cost of reduced low-level control.Ⅴ Universal Flash Storage Versions ComparisonStorage performance significantly impacts device responsiveness and user experience. Universal Flash Storage (UFS) has become the dominant standard for high-performance mobile and embedded storage, replacing the older eMMC standard. UFS provides a standardized flash storage specification optimized for smartphones, tablets, automotive systems, and other performance-critical applications. Version numbers indicate generational improvements, with higher versions offering substantially better performance, features, and efficiency.✔️Version Comparison (Main Parameters)UFS Version1.01.12.02.13.03.14.0Introduced2011-02-242012-06-252013-09-182016-04-042018-01-302020-01-302023-09-14Bandwidth per lane300 MB/s600 MB/s1450 MB/s (HS-G3)2900 MB/s (HS-G4)5800 MB/s (HS-G5)Max. number of lanes12Max. total bandwidth300 MB/s1200 MB/s2900 MB/s (HS-G3)5800 MB/s (HS-G4)11600 MB/s (HS-G5)M-PHY version1.03.04.15.0UniPro version1.41.61.82.0✔️UFS 2.1 vs UFS 2.2The primary enhancement in UFS 2.2 over UFS 2.1 is the Write Booster feature, which significantly improves write performance. Write Booster uses SLC (Single-Level Cell) cache to accelerate write operations, providing faster application launches, improved browser cache loading, reduced video encoding times, and enhanced overall system responsiveness. This feature is particularly beneficial for burst write scenarios common in mobile devices.As eMMC has been phased out from mainstream consumer devices and NAND flash prices have decreased, UFS adoption has accelerated. UFS 2.2 briefly served as a transitional standard before UFS 3.x became mainstream in flagship devices.✔️UFS 3.0 vs UFS 3.1UFS 3.1 introduces three significant enhancements over UFS 3.0:1) Write Booster (Enhanced)Write Booster in UFS 3.1 is an enhanced version that increases device write speed substantially. This feature can boost write speeds up to 700 MB/s, compared to UFS 3.0's typical sequential write performance of around 500 MB/s. The mechanism works similarly to SLC caching in SSDs: a portion of TLC/QLC storage is dynamically configured to operate in SLC mode, providing faster write performance. Data is initially written to this high-performance buffer, then migrated to standard storage during idle periods, freeing the cache for subsequent operations.2) Deep Sleep ModeDeep Sleep enables the flash memory to enter an ultra-low-power state during extended idle periods, significantly reducing standby power consumption. This feature helps extend battery life during device standby and contributes to overall device thermal management. Deep Sleep can reduce idle power consumption by up to 40% compared to standard sleep modes.3) Host Performance Booster (HPB)HPB addresses long-term performance degradation by improving random read performance. As devices are used over time, file system fragmentation and the need to frequently reload the Logical-to-Physical (L2P) mapping table can cause performance degradation. HPB leverages the host device's RAM to cache portions of the L2P mapping table, reducing latency for random read operations. This is particularly effective at maintaining consistent performance after extended use, preventing the "slowdown over time" phenomenon common in storage devices. HPB can improve random read IOPS by up to 70% in fragmented scenarios.✔️UFS 4.0 - The Latest GenerationReleased in September 2023, UFS 4.0 represents the latest advancement in mobile storage technology. Key improvements include:• Doubled bandwidth: Up to 11.6 GB/s (5800 MB/s per lane with dual-lane configuration) using HS-G5 gear• Improved power efficiency: Lower power consumption per bit transferred compared to UFS 3.1• Enhanced thermal management: Better heat dissipation characteristics for sustained performance• Advanced features: Builds upon Write Booster, Deep Sleep, and HPB with further optimizationsUFS 4.0 is designed for next-generation flagship smartphones, tablets, and high-performance mobile devices requiring extreme storage bandwidth for 8K video recording, advanced computational photography, and AI workloads. Frequently Asked Questions about Flash Memory1. What are the different types of flash memory?Flash memory comes in two fundamental architectural types: NOR and NAND. NOR flash offers random access and execute-in-place capabilities, making it ideal for code storage. NAND flash provides higher density and faster write speeds, making it suitable for data storage. Within NAND flash, there are further subdivisions based on bits per cell: SLC (1 bit), MLC (2 bits), TLC (3 bits), and QLC (4 bits), each offering different trade-offs between performance, endurance, and cost. 2. What are the characteristics of flash memory?Flash memory has several distinctive characteristics: it is significantly less expensive than EEPROM and doesn't require batteries for data retention unlike SRAM. It is non-volatile, meaning data persists without power. Flash offers fast read access times (microseconds), high resistance to physical shock compared to hard disk drives, low power consumption, and silent operation. However, it has limitations including finite write/erase cycles, block-level erase requirements, and potential for bit errors requiring ECC. 3. What is the purpose of flash memory?Flash memory serves as a non-volatile storage solution widely used in embedded systems, consumer electronics, and enterprise storage. It retains data without power, can be electrically erased and reprogrammed, and offers advantages over traditional magnetic storage including faster access times, lower power consumption, better durability, and compact form factors. Flash memory evolved from EEPROM technology and has become the dominant storage technology for mobile devices, SSDs, USB drives, memory cards, and embedded systems. 4. What is the difference between NAND flash and NOR flash?NOR flash provides faster random read access and supports execute-in-place (XIP), allowing direct code execution without copying to RAM, making it ideal for firmware and boot code. However, it's more expensive and has slower erase/write operations. NAND flash offers higher storage density, lower cost per gigabyte, and much faster sequential write and erase speeds, making it ideal for mass storage applications. NAND is accessed serially through a shared I/O interface, while NOR has parallel address and data buses allowing random access. NAND requires more complex error correction due to higher bit error rates. 5. What is the difference between UFS and eMMC?UFS (Universal Flash Storage) is the successor to eMMC (embedded MultiMediaCard) and offers several significant advantages: UFS supports full-duplex operation allowing simultaneous read and write operations, while eMMC is half-duplex. UFS uses a faster serial interface with higher bandwidth (up to 11.6 GB/s in UFS 4.0 vs. 400 MB/s in eMMC 5.1). UFS also features command queuing for better multitasking performance, lower latency, and improved power efficiency. These advantages make UFS the preferred choice for modern flagship smartphones and high-performance mobile devices. 6. How does wear leveling work in flash memory?Wear leveling is a technique used to extend flash memory lifespan by distributing write and erase cycles evenly across all memory blocks. Since flash memory has a limited number of program/erase cycles per block, repeatedly writing to the same blocks would cause premature failure. Wear leveling algorithms track the erase count of each block and preferentially use blocks with lower erase counts for new writes. This ensures all blocks wear out at approximately the same rate, maximizing the overall device lifespan. Modern flash controllers implement sophisticated wear leveling algorithms as part of the Flash Translation Layer (FTL). 7. What is 3D NAND technology?3D NAND (also called V-NAND) is a flash memory architecture that stacks memory cells vertically in multiple layers, rather than arranging them in a single planar layer. This technology allows for higher storage densities without requiring smaller manufacturing process nodes. Modern 3D NAND implementations can have over 200 layers, significantly increasing capacity while improving performance and endurance compared to planar NAND. 3D NAND also offers better power efficiency and can achieve higher performance due to reduced cell-to-cell interference. This technology has become the standard for modern SSDs and high-capacity storage devices.
Kynix On 2021-07-19   5049
General electronic semiconductor

What is A MCU’s internal Structure: Single Chip Micro-Computer

This article would introduce MCU in details, including analysis its internal structure, and elaborate some important concepts, especially would put emphasis on the concept of memory decoding.   Catalog I. What is MCU? II. Some Basic Concepts 2.1 The Meaning of Rom 2.2 The Meaning of Bit 2.3 The Meaning of Bytes III. The Working Principle of Memory IV. MCU Circuit v. Memory Decoding FAQ   I. What is MCU?   MCU(microcomputer) is an integrated circuit chip. It integrates the microprocessor(CPU), which has data-handling technology such as arithmetic, logic and data transfer, etc, random access data memory(RAM), read-only program memory(ROM), input and output circuit (I/O port) that using the very large scale processing-data technology and may also include a timing counter, serial communication port (SCI), display drive circuit (LCD or LED drive circuit), pulse width modulation circuit (PWM), analog multiplexer and A/D converter, which form a minimum but perfect computer system.   Under the control of software, these circuits can complete the tasks specified by the program designer accurately, quickly, and efficiently. From this point of view, the single-chip microcomputer has the function which the microprocessor does not have, it has intelligent control functions which the modern industry control request separately. And this is the single-chip microcomputer's biggest characteristic.       II. Some Basic Concepts   2.1 The Meaning of Rom Let's think about a problem: when we write instruction in a programmer into an MCU and then take off it, the MCU can execute the instruction, so the instruction must be stored somewhere in the MCU. And this place can still maintain this instruction not to be lost after it power-off. What place is this? This place is the internal ROM of MCU, which is the read-only program memory. Why do you call it read-only memory? We use the programmer, external equipment, to write to the ROM operation under special conditions. In the MCU normal working conditions,  the data can only read but can’t write in, so we call it ROM.   2.2 The Meaning of Bit From the experiment above, we already know that the level of a lamp or a line can represent two states: 0 and 1. In fact, this is a binary bit, thus we call a line a bit, expressed in BIT.   2.3 The Meaning of Bytes A line can represent 0 and 1, two lines can express 00, 01, 10, 11 four states, that is, it can express 0 to 3, and three can express 0 to 7. The computer usually put with eight lines together, counting at the same time, can represent 0 to 255, for a count of 256 states. These eight lines or 8-bit is called a byte (BYTE).   III. The Working Principle of Memory   Structure All the instructions that a single-chip microcomputer can execute are the instructional systems of it. Different kinds of single-chip computers have different instructional systems. In order for a single-chip microcomputer to automatically complete a specific task, the problems to be solved must be programmed into a series of instructions (these instructions must be recognized and executed by the selected single-chip microcomputer). These instructions integrated into the program, and the program needs to be stored in memory—a storage unit.    The memory consists of many storage units (the smallest unit of storage), just as a building has many rooms, each room in a large building is assigned a unique room number. Each storage unit must also be assigned a unique address number, which is known as the address of the storage unit so that the address of the storage cell is known. The instructions are stored in these units. The storage unit can be found, where the stored instructions can be taken out and then executed.   Memory is the place where data is stored. It uses the electricity level to store the data, that is, it actually stores the electrical level, not the number of 1234 that we are used to thinking of. A memory is like a small drawer. If there are eight small drawers in a small drawer, each one is used to store the "charge," and the charge is passed in or released through the wire attached to it. You can think of a wire as a pipe, and the charge in the grid is like water, so it's easy to understand it. Each small drawer in memory is a place for data, which we call a ''bit''.   With this structure, we can start storing data. If we want to put in a data 12, that is 00001100, and we just have to fill the second and third squares with the charge, and the other cells are free of the charges. But the problem is that memory has a lot of cells, and the lines are parallel, and when you put the charge in it, you put the charge in all the cells, and when you release the charge, you release the charge from each cell. In the case of it, no matter how many cells the memory has, it can only be put in the same number, which is certainly not what we want.    A little bit to change structurally,  there's a control line on each unit, and if you want to put the data in the unit, give a signal to the control line of the unit. Therefore, the control line turns on the switch so that the charge can flow freely. And there is no signal on the other unit control lines, so the switch turns off and will not be affected, so that if you handle the control lines of different units, you can write different data to each unit. Similarly, if you want to take data from one unit, just turn on the corresponding control switch.     IV. MCU Circuit   A circuit is always made up of components connected by wires. In analog circuits, wiring is not a problem, because there is usually a serial relationship between the devices, and there are not many connections between the devices, but the computer circuits are different. The microprocessor is the core for it, each device must be connected to the microprocessor, the work of each device must be coordinated, so it needs a lot of connections.   If still like analog circuits, there will be an amazing number of lines between microprocessors and devices, so the concept of a bus has been introduced into the microprocessor, and each device has shared the connection. All 8 data lines are connected to eight common lines, that is, the equivalent of each device is in parallel, but this is not enough. If there are two devices delivering data at the same time, one is 0 and the other is 1, what exactly does the receiver get? This situation is not allowed, so control through the control line to make the device working time-sharing, at any time there can be only one device to send data ( multiple devices can receive at the same time).      V. Memory Decoding   So how do we control the control lines of each unit? It is not that simple to lead the control lines of each unit out of the integrated circuit. There are 65,536 units in a model 27512 memory, and if each line is drawn out, the integrated circuit must have more than 60,000 feet, so it is necessary to find a way to reduce the number of lines. We have a way called decoding, briefly introduce: one line can represent two states and two lines can represent four states and three lines can represent eight kinds, and so on, thus we only need 16 lines to represent 65536 states.   Since the decoding problem solved, let's focus on another problem. Where did the eight lines in each unit come from? Actually, it is connected to the computer, in general, the eight wires not only for memory but also connected to other devices. The problem arises in this way. Because these eight wires are not dedicated to the memory and the computer, it is not good if a unit is always connected to the eight wires. For example, if the value in this memory cell is 0FFH but there one unit is OOH, then what the line set at a high level or a low level?   Thus we have to separate them. The solution is: when the outside wire is connected to the pin of the integrated circuit, it does not directly attach to the units, but a set of switches is added to the middle. Normally we leave the switch off, and if we really want to write data to this memory, or read the data out of the memory, just turn the switch on. This set of switches is selected by three leads: read control, write control, and chip selector.    To write data into the chip, select the chip first, then send a write signal, the switch turns on, and the incoming data (charge) is written into the film chip. If you want to read, select the film chip first, and then send out the read signal, the switch turns on, and the data is sent out. The read and write signals are also connected to another memory at the same time, but the chip selector ends are different.   Although there is a read or write signal, there is no chip selection signal, so the other memory will not "misunderstand" and result in a conflict. What will happen if you pick two chips at the same time? Actually, this can’t be happening because the system is designed and controlled by computer, not by the human. If any, there’s something wrong with the circuit.     From the introduction above, we have seen that the eight lines used to transmit data are not dedicated, but shared by many devices, so we call it data bus. The data line of the device is called the data bus, and all the control lines of the device are called the control bus. There are memory cells in the internal or external memory and other devices of a single chip. Units must be assigned addresses before they can be used. Of course, the assigned addresses are also given in the form of electrical signals. Because there are too many memory cells, there are many lines for address allocation, which are called address buses. Sixteen address lines are also connected, called address buses.   FAQ   1. What are the characteristics of microcomputer? a. Small size and low cost. b. One user. c. Easy to use. d. Low computing power. e. Commonly used for personal application.   2. What are the advantages of microcomputer? a. This computer is widely used today. b. The microcomputer is small in size. c. The microcomputer is used to design different software and app. d. This type of computer is a low cost, so all the users can easily buy. e. No need for highly trained staff for operating microcomputer to office work.   3. Why microcontrollers are often called single chip computers? Single-chip computers are mainly of the form known as Microcontroller chips (the most commonly known are the PIC range by Microchip inc) and used in embedded devices. They provide much more basic functionality but are far simpler to work with as they don't require any external chips in order to function.   4. What is single chip microcomputer that has everything inbuilt? This is a microcomputer built using separate components (CPU, Memory, etc.). ... For some specific applications, we also have single chip computers in a VLSI chip. This single chip microcomputer will have a CPU, memory and I/O interfaces, timers, ADC/DACs etc. on a single chip itself.   5. What is difference between microprocessor and microcomputer? The main difference between Microprocessor and Microcomputer is that the Microprocessor is a computer processor contained on an integrated-circuit chip and Microcomputer is a small, relatively inexpensive computer. ... Microprocessors contain both combinational logic and sequential digital logic.   6. Is Raspberry Pi a microcomputer? The Raspberry PI is a microcomputer that's often used by hobbyists to create projects like animated LED displays or bird watchers.   7. Which is a feature of a single chip microcomputer? A single-chip microcomputer is a major branch of a microcomputer. The biggest feature of the structure is that the CPU, memory, timer and various input/output interface circuits are integrated on a very large-scale integrated circuit chip. In terms of its composition and function, a single chip is a computer.   8. What are the components of microcomputer? The main components are: (1) the central processing unit (CPU), (2) input devices, (3) output devices, and (4) memory. The CPU of a microcomputer performs all the arithmetic, logic, and data handling functions of the microcomputer.   9. Is microcontroller a microcomputer? A Microcontroller is a small and low-cost microcomputer, which is designed to perform the specific tasks of embedded systems like displaying microwave information, receiving remote signals etc.   10. What is the definition of microcomputer? Microcomputer, an electronic device with a microprocessor as its central processing unit (CPU). Microcomputer was formerly a commonly used term for personal computers, particularly any of a class of small digital computers whose CPU is contained on a single integrated semiconductor chip.   You May Also Like Transformers Basics: Construction, Types, Materials and Design Switched Mode Power Supply Tutorial: Principles & Functions of SMPS Circuits List of Basic Electronic Components Switching Power Supply Tutorial: 4V~16V
kynix On 2018-09-13   1433

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Follow us

Join our mailing list!

Be the first to know about new products, special offers, and more.

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.