microcontroller Related Articles
Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips
- Electronic Components
- News Room
- General electronic semiconductor
- Components Guide
- Sort by
- Robots
- Transmitters
- Capacitors
- IC Chips
- PCBs
- Connectors
- Amplifiers
- Memory
- LED
- Diodes
- Transistors
- Battery
- Oscillators
- Resistors
- Transceiver
- RFID
- FPGA
- Mosfets
- Sensor
- Motors, Solenoids, Driver Boards/Modules
- Relays
- Optoelectronics
- Power
- Transformer
- Fuse
- Thyristor
- potentiometer
- Development Boards
- RF/IF
- Semiconductor Information
- Sensors
- PCB
- transistor
IntroductionIn electronics, a pinout (sometimes written "pin-out") is a cross-reference between the contacts, or pins, of an electrical connector or electronic component. It describes the functions of transmitted signals and the circuit input/output (I/O) requirements. The number of pins is divided into 8-pin, 14-pin, 16-pin, etc. Every pin must be properly matched to a connector that has the same function. Pinout types include Universal Serial Bus (USB) pinout, PS/2 pinout, ATX power supply pinout, VGA pinout, and Digital Visual Interface (DVI).How to Read Pinouts?CatalogIntroductionⅠ Pinout Arrangement DescriptionⅡ Arduino Pinout and Raspberry Pi Pinout2.1 Arduino Nano Pinout and Arduino Uno Pinout2.2 Arduino Pinout Series2.3 Raspberry Pi Pinout and Diagram2.4 Difference between an Arduino and a Raspberry PiⅢ Example: AT89S52 PinoutsⅠ Pinout Arrangement DescriptionA pinout generally has descriptions in a diagram or table, which specifically indicates whether it is the back-side or front-side view, or if it is the mating face of the connector, or it stands for? Generally speaking, the more pins, the larger the size of the IC chip, the stronger the circuit function, and of course, the higher the price.What these pins stand for? Look at the following Common PIC Pin Descriptions:Pin NumberSymbolDescription1AUDIOAudio Signal Output2FM OUTFM Detection Output3IF AGCIF Signal Input4RF AGCRF AGC Voltage Output5IF INIF Signal Input6IF GNDIF Circuit Ground7IF VccIF Circuit Power Supply8FM FILTERFM Detector Filter Terminal9AFT OUTAFT Control Power Output10SDAI2C Bus Data Terminal11SCLI2C Bus Clock Terminal12ABLAutomatic Brightness Control13R INRed Character Input14G INGreen Character Input15B INBlue Character Input16BLACK INCharacter Blanking signal Input17RGB VccDecoding Circuit Power Supply18R OUTRed Primary Color Signal Output19G OUTGreen Primary Color Signal Output20B OUTBlue Primary Color Signal Output21IDWhite Balance Adjustment Signal Input22VER OUTField Sawtooth Wave Output23V RAMP ALCField Sawtooth Wave Formation24H/BUS VccLine Start Power25AFC FILTERLine AC Low-pass Filtering26HOR OUTLine Excitation Pulse Output27FBP INLine and Reverse Pulse Input28REFReference Current Formation29CLK OUT4MHz Clock Signal Output Pin NumberSymbolDescription301H DL VccBuilt-in Baseband Delay Line +5V Power Supply311H DL Vcc OUTBaseband Delay Line Boost Circuit Output Terminal321H DL GNDBaseband Delay Line Ground33SECAM INComponent Signal Input34C APC FILTERChroma Subcarrier Phasedetector (APC1) Low-pass Filter35SECAM INTERFACE4.43MHz CW Signal Output or SECAM Achromatic Signal Input36X TAL4.43MHz Crystal Terminal37SEL VIDEO OUTVideo Output38V/C/DEF GNDGround39EXT V IN/Y INAV Video or Y Signal Input Terminal40V/C/DEF VccVideo/Chroma/Scan Part Power41INT V IN/C INAV Video or C Signal Input Terminal42BLACK STECHFilter End of Black Level Extension Circuit43VIDEO OUTVideo Detector Output44VCO FILTERIF Lock Detection Filter45VCOExternal VCO Resonant Network46PIF APCIF APC Filter47EXT AUDIO INAV Audio Signal Input48SIF OUTAudio Accompanying Sound IF Output49SIF INAudio Accompanying Sound IF Input50SND APCAccompanying Sound Discrimination Filter Pin NumberSymbolDescription1BASSBass Control Output2MUTEMute (High Level) Control Output350/6050Hz/60Hz Identification Output4SECAMSECAM Recognition5VOLVolume Control6COMB.FDigital Filter on/off Control7POWERPower On/Standby Control8TUNEPWM Tuning Voltage Output9GNDGround10XTAL132kHz Crystal Connection Terminal11XTAL232kHz Crystal Connection Terminal12VDDPower Supply13KEY-IN1Key Scan Signal Input 114KEY-IN2Key Scan Signal Input 215AFT-INAFT Control Voltage Input16RESETReset Terminal17FILTERCharacter Oscillation Low Pass Filter18NCEmpty Pin19V-SYNCCharacter Vertical Positioning Pulse Input20H-SYNCCharacter Horizontal Positioning Pulse Input21OSD-BLKCharacter Blanking Pulse Output22SDAI2C Bus Data Terminal23SCLI2C Bus Clock End24SAFTYOverload Detection Terminal25CSProduction Debugging Chipselect Signal Input Terminal26REM INRemote Control Signal Input27SIFAudio IF Switching Control28TV/AV1AV/TV Switch29TV/AV2AV/TV Switch303.58/4.433.58/4.43 Control31UHFUHF Band Control32VHVHF-H Band Control33VLVHF-L Band ControlⅡ Arduino Pinout and Raspberry Pi Pinout2.1 Arduino Nano Pinout and Arduino Uno PinoutThe Arduino Nano is a small, complete, and breadboard-friendly board. It is based on the ATmega328 8-bit microcontroller by Atmel. It has a total of 36 pins. Out of these 8 are analog input pins and 14 digital input/output pins (of which 6 can be used as PWM outputs). Nano has a 16 MHz SMD crystal resonator, a mini USB-B port, an ICSP header, 3 RESET pins and, a RESET button. The Arduino digital pins can read/output only two states: when there is a voltage signal and when there is no signal.Figure 1. ATMEGA328 PinoutArduino UNO is based on the ATMEGA328 by Atmel. The Arduino UNO pinout consists of 14 digital pins, 6 analog inputs, a power jack, USB connection and ICSP header. The function of Analog pins is to read the value of the analog/digital input used in the connection.Figure 2. Arduino UNO Pinout2.2 Arduino Pinout SeriesDigital PinsPower: Mini USB VinICSP: MISO (Master In Slave Out) Vcc (Supply Voltage) SCK (Clock from Master to Slave) MOSI (Master Out Slave In) RST (Reset (Active Low) GND (Supply Ground)Serial Communication PinsPWM (Pulse Width Modulation) PinsExternal InterruptsSPI (Serial Peripheral Interface) pinsBlinking LED Analog PinsRESETI2C ProtocolAREF (Analog Reference) PinsPower2.3 Raspberry Pi Pinout and DiagramThe Raspberry Pi is a tiny and affordable computer that you can use to learn programming through fun, practical projects, which is the go-to microcomputer for all ages and abilities. You can plugs it into a computer monitor or TV, and uses a standard keyboard and mouse. Over the years the header has expanded from 26 pins to 40 pins while maintaining the original pinout. As you can see, the Pi not only gives you access to the bi-directional I/O pins, but also Serial (UART), I2C, SPI, and even some PWM ("analog output").Figure 3. Raspberry Pi GPIO PinoutRaspberry Pi is as small as the size of a credit card, and works as if a normal computer at a relatively low price. It is possible to work as a low-cost server to handle light internal or web traffic. What’s more, grouping a set of Raspberry Pi to work as a server is more cost-effective than a normal server. Although Raspberry Pi board has so many advantages, it also has the following disadvantages:1) Not able to run Windows Operating system2) Impractical as a Desktop Computer3) Graphics Processor Missing4) Missing eMMC Internal Storage2.4 Difference between an Arduino and a Raspberry PiThe main difference between them is: Arduino is microcontroller board, while Raspberry Pi is a microprocessor based mini computer (SBC). The Microcontroller on the Arduino board contains the CPU, RAM and ROM. ... Raspberry Pi needs an Operating System to run. Arduino doesn't need any operating system.If you're coming to the Raspberry Pi as an Arduino user, you're probably used to referencing pins with a single, unique number. Programming the Pi's hardware works much the same, each pin has its own number...and then some.Ⅲ Example: AT89S52 PinoutsThe pin functions of AT89S52 are diverse. For example, the intermediate frequency signal can be demodulated from the pin to the internal FM circuit in an unbalanced manner. At the same time, it is also the control pin for AVTV conversion and PAL, NTSC, SECAM chroma system conversion in the block, and its input impedance is about 3.4K.Figure 4. AT89S52 Pinouts1) For Recognition OutputThe pin outputs image recognition signal in OC gate mode. When the video TV signal has been received, this pin presents high impedance to the outside, and a high level signal can be obtained through an external pull-up resistor; when no signal is received, this pin presents a low impedance and outputs a low level.2) As APC1 Filter TerminalThe chip generates a 38MHz switching signal in an oscillating manner to complete the demodulation of the image IF signal. Whether the generated switching signal is accurate depends on the automatic phase control circuit (APC) control. Among them, the filtering of the APC1 error signal is completed on this pin.3) As APC2 Filter TerminalThe filter terminal of the second-stage APC circuit4) An external pin for the quartz crystal oscillatorThe external quartz crystal and internal circuit will oscillate in the form of series resonance. The oscillation frequency is a quarter of the carrier frequency of the image intermediate frequency signal. The frequency of the quartz crystal required is different under different signal systems.5) For AFT Signal OutputThe image IF signal compare with the internal frequency, and then the pin outputs AFT error signal.6) Full TV Signal OutputThe signal in the image is demodulated, and finally the video signal and the accompany audio intermediate frequency signal are output from the pin, and the output signal level is 2V.7) Radio Frequency AGC Delay AdjustmentBy adjusting the external potentiometer, the AGC delay amount can be adjusted.8) For the Input of Internal and External Video SignalsThe signal input needs to be separated from the DC. The coupling capacitor capacity is 1uF. When the internal input level is the peak, the max value is 2V. And when the external input is the peak and the peak is 1V. The input impedance is about 50kΩ. Inside the integrated circuit, the blanking level is fixed at 4.5V.9) The Output of Contrast Control Voltage can also be used to control ACL.10) The pin is the standard level of the built-in filter and the switch of S-VHS. It needs a 1Uf capacitor to be grounded to set the standard level. When it is in the S-VHS mode, the pin voltage must be led by an external circuit is set below 2V. When it is in the normal AV state, the voltage level should be set above 2V.11) Input Pin for S-VHS Chroma Signal and DC ControlWhen inputting chroma signal, a 0.01Uf capacitor should be used to cut off the DC input. At PAL format, the chroma signal level should be 300mV peak-to-peak, and should be 286mV peak-to-peak under the NTSC system.12) As a Delayed Video Signal OutputIt can also achieve ABL control. The output video signal level is 2V peak-to-peak, and a current of 0.5mA or more is necessary.13) The Output of the Decolorization ControlAfter the internal decolorization circuit is activated, a low-level signal will be output from the pin.14) Address Input for Analog Bus Control15) Data Input of Analog Bus Control16) The Output of the Internal Field Scanning PulseThe external resistance value can set the sensitivity of the internal field synchronization separation. If you don't need the internal field pulse, you can also input other field pulse signals from the pin, and the internal field output is automatically cut off at this time. The pin can also be an automatic trigger mode release switch and a row AFC strobe release switch.17) To connect the oscillating quartz crystalThe crystal frequency should be 500Hz.18) Separate power supply pins for line oscillation and line pre-excitation circuits. A higher voltage provides a DC voltage to the pin through a resistor, which is stabilized to 7V by the internal voltage regulator circuit for use by the above circuits. The selection calculation of resistance is: R1=(+B1-7.0V)/13mA.19) The output of line pre-excitation pulse is output in push-pull mode.20) Line and Reverse Pulse InputThe line and reverse pulse signal is output from this pin after forming a sand castle pulse internally. As a unified working sequence of some circuits, this pin is also the output of the integrated circuit pulse in the SECAM system.21) Character Background Blanking Pulse InputThe standard control voltage is 1V, when the input voltage is higher than 1V, the image display stops, and the character is displayed at the current position. When the pin voltage is lower than 1V, the image is displayed at the current position.22) The input of the three-color signal of the on-screen character display (OSD). When using the analog character display mode, the DC input needs to be cut off. When using the digital character display mode, the high level needs to be set to a certain value.23) Negative brightness signal output, and at the same time the input of the de-trap signal.24) Color difference signal output, respectively output the R-Y, G-Y, B-Y of the TV image or the R, G, B three-color screen character display dot matrix after character display conversion.25) After the input of the ALC amplifier (CCD delay adjustment) is delayed and calculated by the integrated one-line delay line, the two color difference signals return to the LA7687 from these two lead pins.26) Output the Color Difference Signal to the Integrated Delay Line.In the PAL system, the two incompletely demodulated color difference signals are output from two pins to the delay line for further processing. When in the SECAM system, the color difference signal does not come from LA7687. Therefore, the two pins present a high impedance state under this system, and the output dc voltage is 3.6V.27) The subcarrier recovery circuit needs to be connected to 4.43MHz and 3.58/MHz quartz crystals.28) For the Color Demodulation Circuit APC FilterThe filter composed of the external resistance container can set the synchronization range of the subcarrier oscillation.29) The AGC Filter Pin of the First Stage Mid AmplifierThe AGC detection circuit separates the synchronization signal by detecting the peak value of the video signal, and filters it into the AGC voltage at the pin. The second stage AGC filter is hidden inside the integrated circuit.30) Image IF Signal InputThrough the surface acoustic filter to form a specific image IF signal, in a balanced way from two lead pins amplify the collector circuit. Inside the integrated circuit, there are a total of three amplifiers, and the total amplification gain is above 60dB.31) The output of the radio frequency AGC is output in an open-collector mode.32) Audio Signal OutputThe integrated circuit completes the demodulation of the FM signal, and the audio signal is output from the pin, and there should be a de-emphasis circuit composed of resistive components on the outside.33) Audio Filter PinIt is used to eliminate the DC feedback of the preamplifier, in addition, a 1uF capacitor is required to be connected externally. In addition, when this pin is set to high level, the image IF gets into the SECAM mode. Frequently Asked Questions about Electronic Pinout1. What does pinout mean?In electronics, a pinout (sometimes written "pin-out") is a cross-reference between the contacts, or pins, of an electrical connector or electronic component, and their functions. "Pinout" now supersedes the term "basing diagram" that was the standard terminology used by the manufacturers of vacuum tubes and the RMA. 2. What is pin configuration?Devices support both analog input and digital I/O line modes on several configurable pins. The following table provides typical parameters for the pin configuration commands (D0 - D9, P0 - P2). 3. What is a pinout cable?Pinout or pin-out is a term used in electronics to describe how an electrical cable is wired, or the function of each wire (pin) in a connector. An electrical connector typically consists of several electrical contacts or pins that can be used to carry electrical power or signals. 4. What are the pins on Arduino Uno?Arduino/Genuino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button. 5. How many digital and analog pins are in Arduino Uno?Microcontrollers
kynix On 2021-04-07
Ⅰ IntroductionIn an analog world surrounded by digital devices, we exist in a fascinating intersection of two domains. In nature, everything we observe, feel, or measure is analog—such as light, temperature, speed, pressure, and sound. However, most electronic devices around us are digital, ranging from basic digital watches to sophisticated supercomputers and AI systems. Therefore, for microcontrollers, microprocessors, and modern computing systems to understand and process real-world phenomena, we need devices that can convert these analog parameters into digital values. This conversion is performed by an ADC (Analog-to-Digital Converter), and in this comprehensive guide, we will explore their functionality, types, and applications in modern electronics.Ⅱ Definition of ADC (Analog-to-Digital Converter)An Analog-to-Digital Converter (ADC) is a circuit that converts continuous voltage values (analog signals) into binary values (digital data) that can be interpreted and processed by digital computers and microcontrollers. These ADC circuits can be found as standalone integrated circuits (ICs) or embedded within microcontrollers, system-on-chip (SoC) designs, and digital signal processors (DSPs). The conversion process involves sampling the analog signal at discrete time intervals and quantizing the amplitude into digital codes.Modern ADCs are fundamental components in virtually all electronic systems that interface with the physical world, from smartphones and IoT devices to medical equipment and automotive sensors.Ⅲ The Reasons for Using ADCsToday's electronics ecosystem is predominantly digital; the era of analog computers has long passed. However, the physical world we inhabit remains inherently analog and continuous. Digital systems can only process discrete values—essentially ones and zeros—which creates a fundamental incompatibility with analog signals.For example, a temperature sensor such as the LM35 outputs a temperature-dependent voltage—specifically, 10 mV per degree Celsius. If we connect this directly to a digital input pin, the microcontroller will only register it as either HIGH or LOW based on threshold voltages (typically around 0.8V for LOW and 2V for HIGH in 5V systems), which provides no useful temperature information. Instead, we use an ADC to convert the analog voltage input into a multi-bit digital value that can be directly processed by the microprocessor's data bus, enabling precise calculations, data logging, and control decisions.Key reasons for using ADCs include:Enabling digital processing of real-world analog signalsFacilitating data storage and transmission in digital formatAllowing complex mathematical operations on sensor dataEnabling machine learning and AI applications with sensor inputsProviding noise immunity through digital signal processingⅣ Working Principles of ADCUnderstanding ADC operation is best approached by viewing it as a mathematical mapping function. The ADC maps continuous analog voltage values to discrete binary numbers within a defined range. This process involves three fundamental steps: sampling, quantization, and encoding.The ADC needs to bridge the gap between the analog voltage domain and the digital logic domain. Since digital registers can only accept discrete logic levels (HIGH/LOW), directly connecting an analog signal would produce unreliable results. The ADC acts as an intelligent interface that periodically samples the analog input and converts each sample into a binary representation.Figure 1: Analog to Digital Conversion ProcessHere are the essential characteristics of ADCs that determine their performance and suitability for different applications:4.1 Reference VoltageNo ADC operates in absolute terms; instead, it requires a reference voltage that defines the full-scale range. The reference voltage represents the maximum analog input that corresponds to the highest possible digital output value. For example, in a 10-bit converter with a 5V reference voltage, the binary value 1111111111 (1023 in decimal—the highest possible 10-bit number) corresponds to 5V, while 0000000000 (0 in decimal) corresponds to 0V.Since 10 bits provide 210 = 1024 possible values (0-1023), each binary step represents approximately 5V / 1024 ≈ 4.88 mV. This measure is called the resolution or LSB (Least Significant Bit) voltage of the ADC. The formula is:Resolution (V) = VREF / 2nwhere VREF is the reference voltage and n is the number of bitsIf the analog voltage changes by less than one LSB (4.88mV in this example), the ADC cannot detect the change—this creates a quantization error. To minimize this error and improve measurement precision, you can either use an ADC with higher resolution (more bits) or reduce the reference voltage to match your signal range more closely.Modern ADCs are available with resolutions ranging from 8 bits (256 levels) for simple applications to 32 bits (over 4 billion levels) for precision scientific instruments, though 12-bit and 16-bit converters are most common in embedded systems.4.2 Sample Rate (Sampling Speed)The sample rate, also called sampling frequency, refers to the number of analog-to-digital conversions the ADC performs per second, measured in samples per second (S/s or SPS). High-performance ADCs can achieve sample rates exceeding 1 GS/s (giga-samples per second, or one billion samples per second), while precision ADCs might operate at just a few samples per second.According to the Nyquist-Shannon sampling theorem, to accurately reconstruct a signal, the sampling rate must be at least twice the highest frequency component in the signal. For example, to digitize audio signals with frequencies up to 20 kHz, you need a sampling rate of at least 40 kHz (which is why CD audio uses 44.1 kHz).The sampling speed depends on the ADC architecture and the required accuracy. Generally, there's a trade-off between speed and resolution: high-speed ADCs (like flash ADCs) typically have lower resolution (8-10 bits), while high-resolution ADCs (like sigma-delta ADCs) operate at lower speeds. This is because achieving higher precision requires more time to accurately measure and convert the analog signal.4.3 Additional Key SpecificationsSignal-to-Noise Ratio (SNR): Measures the ratio of the desired signal power to background noise, typically expressed in decibels (dB). Higher SNR indicates better performance.Effective Number of Bits (ENOB): Accounts for real-world imperfections and indicates the actual resolution achieved in practice, which is typically less than the nominal bit count.Input Impedance: The electrical resistance presented by the ADC input, which affects how it loads the source circuit. High input impedance is generally desirable to minimize signal distortion.Ⅴ Types of ADCsVarious ADC architectures have been developed to optimize for different combinations of speed, resolution, power consumption, and cost. Here are the most common types:5.1 Flash ADCs (Parallel ADCs)Flash ADCs are the fastest type of analog-to-digital converter, capable of conversion rates exceeding 1 GS/s. They consist of a resistor ladder voltage divider and an array of comparators—one for each quantization level. For an n-bit flash ADC, 2n - 1 comparators are required.Figure 2: Flash ADC ArchitectureAll comparators operate simultaneously (in parallel), comparing the input voltage against their respective reference levels. The comparator outputs are then fed through a priority encoder that converts the thermometer code into binary format. The conversion speed is limited only by the propagation delays of the comparators and encoder, making flash ADCs ideal for high-speed applications like video processing and radar systems.Advantages: Extremely fast, simple operationDisadvantages: High power consumption, large chip area, limited resolution (typically 8-10 bits due to exponential growth in component count), expensive for high-resolution designs5.2 Successive Approximation Register (SAR) ADCsSAR ADCs are among the most popular and widely used converters, offering an excellent balance between speed, resolution, and power consumption. They consist of a sample-and-hold circuit, a comparator, a Digital-to-Analog Converter (DAC), and successive approximation logic.The conversion process uses a binary search algorithm. Starting with the most significant bit (MSB), the SAR sets each bit to '1' and compares the DAC output with the input voltage. If the DAC output exceeds the input, the bit is cleared to '0'; otherwise, it remains '1'. This process repeats for each bit from MSB to LSB, requiring n clock cycles for an n-bit conversion.SAR ADCs are ubiquitous in microcontrollers (including Arduino, STM32, ESP32, and most ARM Cortex-M devices) and can achieve resolutions from 8 to 18 bits with sampling rates from 100 kS/s to several MS/s.Advantages: Good resolution, moderate speed, low power consumption, cost-effectiveDisadvantages: Slower than flash ADCs, requires n clock cycles for n-bit conversion5.3 Sigma-Delta (ΣΔ) ADCsSigma-delta ADCs achieve very high resolution (16 to 32 bits) by using oversampling and noise-shaping techniques. They sample the input at a rate much higher than the Nyquist rate and use digital filtering to achieve high effective resolution at lower output data rates.These converters are ideal for precision measurement applications such as digital scales, industrial sensors, audio recording equipment, and medical instrumentation where accuracy is paramount and speed is less critical.Advantages: Excellent resolution and linearity, good noise rejection, simple analog circuitryDisadvantages: Slow conversion rate, complex digital filtering required, higher latency5.4 Dual-Slope (Integrating) ADCsDual-slope ADCs integrate the input signal for a fixed period, then integrate a reference voltage of opposite polarity until the integrator returns to zero. The time required for the second integration is proportional to the input voltage. A counter measures this time, providing the digital output.While slow, dual-slope ADCs offer excellent noise rejection (especially for 50/60 Hz line frequency noise) and are commonly used in digital multimeters and panel meters.Advantages: High accuracy, excellent noise rejection, low costDisadvantages: Very slow conversion speed, typically limited to a few conversions per second5.5 Pipeline ADCsPipeline ADCs divide the conversion into multiple stages, with each stage resolving a few bits. The residue from each stage is amplified and passed to the next stage. This architecture allows for high sampling rates (10-100 MS/s) with moderate resolution (8-16 bits), making them popular in video processing, communications, and imaging applications.Ⅵ Applications of ADCs6.1 Digital Oscilloscopes and MultimetersWhile analog oscilloscopes provide real-time display with minimal processing delay, they cannot store waveforms, perform automated measurements, or conduct advanced signal analysis. Digital oscilloscopes solve these limitations by employing high-speed, high-resolution ADCs (typically 8-12 bits at sampling rates up to several GS/s).Modern digital oscilloscopes can capture transient events, perform FFT analysis, decode serial protocols, and store thousands of waveforms for later analysis. Similarly, digital multimeters use precision ADCs (often dual-slope or sigma-delta types) to provide accurate voltage, current, and resistance measurements with 3½ to 8½ digit resolution.6.2 Microcontrollers and Embedded SystemsNearly all modern microcontrollers include integrated ADCs, making them essential for IoT devices, sensor interfaces, and embedded control systems. Common examples include:Arduino (ATmega328P): 10-bit SAR ADC, 6 channels, up to 15 kS/sSTM32 series: 12-bit SAR ADC, multiple channels, up to 5 MS/s (varies by model)ESP32: 12-bit SAR ADC, 18 channels, up to 2 MS/sRaspberry Pi Pico (RP2040): 12-bit SAR ADC, 4 channels, 500 kS/sNordic nRF52 series: 12-bit SAR ADC for low-power wireless applicationsThe Arduino IDE provides a convenient analogRead() function that reads an analog voltage on any analog input pin and returns a 10-bit integer value (0-1023), making ADC usage accessible even for beginners.6.3 Digital Power Supplies and Battery ManagementModern programmable power supplies and battery management systems rely heavily on ADCs to monitor output voltage, current, and temperature. These measurements enable precise regulation, protection features, and user interfaces displaying real-time parameters. High-resolution ADCs (16-24 bits) are often used in precision laboratory power supplies to achieve millivolt-level accuracy.6.4 Audio Recording and ProcessingProfessional audio equipment uses high-quality sigma-delta ADCs with 24-bit resolution and sampling rates of 44.1 kHz, 48 kHz, 96 kHz, or even 192 kHz. These converters enable digital recording, processing, and storage of audio signals with exceptional fidelity. Consumer devices like smartphones and laptops also incorporate audio ADCs for voice recording and communication.6.5 Medical InstrumentationMedical devices such as ECG monitors, pulse oximeters, blood glucose meters, and patient monitoring systems all depend on precision ADCs to convert physiological signals into digital data for analysis, display, and storage. These applications demand high accuracy, low noise, and often require specialized ADCs designed for biomedical signals.6.6 Automotive and Industrial SensorsModern vehicles contain hundreds of sensors monitoring engine parameters, emissions, tire pressure, temperature, acceleration, and more—all requiring ADCs for digital processing. Industrial automation similarly relies on ADCs for process control, quality monitoring, and predictive maintenance applications.Ⅶ How to Use External ADC ICsWhen the built-in ADC of a microcontroller doesn't meet your requirements—whether due to insufficient resolution, speed, or channel count—external ADC ICs provide a solution. Popular external ADC modules include the ADS1115, MCP3008, AD7606, and ADS1256, which can be interfaced with microcontrollers, Raspberry Pi, and other digital systems.Let's examine the Texas Instruments ADS1115, a popular 16-bit ADC with advanced features and excellent performance:Figure 3: ADS1115 16-bit ADC Module7.1 Key Features of Modern ADC ICsI²C/SPI Interface: The ADS1115 uses the I²C bus for communication, making it easy to interface with Arduino, Raspberry Pi, ESP32, and other platforms. Extensive libraries are available in multiple programming languages, simplifying implementation. The I²C interface also allows multiple ADCs to share the same bus using different addresses.Low Power Consumption: Modern ADC ICs are designed for efficiency, with the ADS1115 consuming only 150 µA in continuous conversion mode and less than 1 µA in power-down mode. The operating voltage range of 2.0V to 5.5V makes it compatible with both 3.3V and 5V systems.Programmable Gain Amplifier (PGA): The ADS1115 includes a built-in PGA with selectable gain settings (±6.144V, ±4.096V, ±2.048V, ±1.024V, ±0.512V, ±0.256V), allowing you to optimize the measurement range for your signal amplitude and maximize resolution.Flexible Input Configuration: The four analog inputs can be configured as four single-ended inputs or two differential pairs, providing versatility for different measurement scenarios. Differential inputs are particularly useful for rejecting common-mode noise.Programmable Comparator: An integrated comparator with programmable thresholds can generate interrupts when the input exceeds specified limits, enabling efficient event-driven programming without continuous polling.High Resolution: With 16-bit resolution, the ADS1115 provides 65,536 discrete levels, offering significantly better precision than typical 10-bit or 12-bit microcontroller ADCs. At the ±4.096V range, this translates to approximately 125 µV per step.Ⅷ Limitations and Considerations of ADCsWhile ADCs are essential components, they do have inherent limitations that designers must consider:Conversion Time: ADCs require finite time to perform conversions, ranging from nanoseconds (flash ADCs) to milliseconds (high-resolution sigma-delta ADCs). This introduces latency that may be problematic in real-time control systems.Quantization Error: The discrete nature of digital representation means that analog values between quantization levels cannot be precisely represented, introducing an inherent error of up to ±½ LSB.Aliasing: If the input signal contains frequency components above half the sampling rate (Nyquist frequency), aliasing occurs, causing high-frequency signals to appear as lower frequencies in the digital output. Anti-aliasing filters are required to prevent this.Noise and Interference: ADCs are sensitive to electrical noise, which can degrade measurement accuracy. Proper PCB layout, grounding, filtering, and shielding are essential for optimal performance.Input Impedance Effects: The ADC input impedance can load the source circuit, potentially affecting the signal being measured. Buffer amplifiers may be necessary for high-impedance sources.Cost and Complexity: High-performance ADCs (high resolution and high speed) are expensive and may require complex supporting circuitry, including precision voltage references, low-noise power supplies, and sophisticated digital signal processing.Power Consumption: High-speed ADCs can consume significant power, which may be problematic in battery-powered or energy-constrained applications.Ⅸ Frequently Asked Questions (FAQ)1. Why do we need an ADC converter?The physical world is inherently analog—sound waves, light, temperature, pressure, and other phenomena exist as continuous values. However, digital computers and microcontrollers can only process discrete binary numbers (ones and zeros). ADCs bridge this gap by sampling analog signals and converting them into digital representations that computers can store, process, and analyze. This enables applications ranging from digital audio recording and sensor data logging to medical diagnostics and industrial automation. Without ADCs, modern digital systems would be unable to interact with or measure real-world phenomena.2. What is the slowest type of ADC?Dual-slope (integrating) ADCs are among the slowest, typically performing only a few conversions per second. However, this slow speed is often intentional—these ADCs integrate the signal over a long period, which provides excellent noise rejection, particularly for 50/60 Hz power line interference. They're commonly used in digital multimeters where accuracy is more important than speed. Sigma-delta ADCs can also be quite slow when configured for maximum resolution, though they offer superior performance compared to dual-slope designs.3. What is the difference between 8-bit, 10-bit, and 12-bit ADCs?The bit count determines the resolution—how finely the ADC can divide the voltage range. An 8-bit ADC provides 256 discrete levels (2⁸), a 10-bit ADC provides 1,024 levels (2¹⁰), and a 12-bit ADC provides 4,096 levels (2¹²). With a 5V reference: an 8-bit ADC has ~19.5 mV per step, a 10-bit ADC has ~4.9 mV per step, and a 12-bit ADC has ~1.2 mV per step. Higher resolution allows detection of smaller voltage changes, making the measurement more precise. However, higher resolution often comes with trade-offs in speed, cost, and complexity. Choose the resolution based on your application's accuracy requirements.4. What is the difference between ADC and DAC?An ADC (Analog-to-Digital Converter) is an input device that converts continuous analog signals into discrete digital values for processing by digital systems. A DAC (Digital-to-Analog Converter) performs the opposite function—it's an output device that converts digital values into continuous analog signals. For example, when recording audio, an ADC converts sound waves (analog) into digital data; when playing back that audio, a DAC converts the digital data back into analog signals that drive speakers. Both are essential for digital systems to interact with the analog world.5. How does the ADC inside a microcontroller work?Most microcontrollers use SAR (Successive Approximation Register) ADCs due to their good balance of speed, resolution, and power efficiency. The process involves: (1) A sample-and-hold circuit captures and holds the input voltage stable during conversion; (2) The SAR logic performs a binary search, testing each bit from MSB to LSB by comparing the input against a DAC output; (3) After n clock cycles (for n bits), the final binary value is stored in a register where the CPU can read it. The entire process typically takes a few microseconds, and many microcontrollers can perform conversions automatically in the background using DMA (Direct Memory Access).6. How do you convert analog to digital?The conversion process involves three main steps: (1) Sampling: The continuous analog signal is measured at discrete time intervals determined by the sampling rate; (2) Quantization: Each sampled voltage value is mapped to the nearest discrete level based on the ADC's resolution; (3) Encoding: The quantized level is represented as a binary number. The sampling rate must be at least twice the highest frequency in the signal (Nyquist theorem) to avoid aliasing, and the resolution must be sufficient to capture the required detail in the amplitude.7. Why do we need to convert analog to digital?Digital representation offers numerous advantages: (1) Processing: Digital signals can be easily manipulated using algorithms, filters, and mathematical operations; (2) Storage: Digital data can be stored indefinitely without degradation; (3) Transmission: Digital signals are less susceptible to noise and interference during transmission; (4) Accuracy: Digital systems can perform precise calculations and measurements; (5) Integration: Digital data can be easily shared between different systems and processed by computers; (6) Advanced Features: Digital signals enable machine learning, pattern recognition, and sophisticated analysis impossible with analog systems.8. What are common applications of ADCs?ADCs are used in countless applications: digital oscilloscopes and multimeters for test equipment; microcontrollers and embedded systems for sensor interfaces; audio recording and playback equipment; medical devices (ECG, pulse oximeters, blood pressure monitors); automotive sensors (engine management, safety systems); industrial process control; telecommunications equipment; digital cameras and imaging systems; touchscreen interfaces; battery management systems; smart home devices and IoT sensors; scientific instrumentation; and data acquisition systems. Essentially, any application requiring a digital system to measure or respond to analog phenomena requires an ADC.9. What's the difference between analog and digital signals?Analog signals are continuous in both time and amplitude—they can take any value within a range and change smoothly over time. Examples include sound waves, temperature variations, and light intensity. Digital signals are discrete in both time and amplitude—they exist only at specific time intervals (samples) and can only take specific values (quantization levels). Digital signals are typically represented as binary numbers (sequences of 1s and 0s). While analog signals directly represent physical phenomena, digital signals are representations that approximate the analog world in a form that computers can process.10. What factors should I consider when choosing an ADC?Key selection criteria include: (1) Resolution: How many bits are needed for your accuracy requirements? (2) Sampling Rate: How fast must you sample to capture your signal's frequency content? (3) Input Range: Does it match your signal amplitude? (4) Number of Channels: How many signals need to be measured? (5) Interface: SPI, I²C, parallel, or integrated? (6) Power Consumption: Critical for battery-powered applications; (7) Cost: Balance performance with budget; (8) Package Size: PCB space constraints; (9) Input Type: Single-ended or differential? (10) Additional Features: Built-in PGA, reference, comparator, etc. Consider your application's priorities—speed, accuracy, power, or cost—and choose accordingly.Ⅹ ConclusionAnalog-to-Digital Converters are fundamental building blocks of modern electronics, serving as the essential bridge between our analog physical world and the digital systems that process information. From the simplest temperature sensor in a home thermostat to the sophisticated signal processing in medical imaging equipment, ADCs enable digital systems to perceive, measure, and respond to real-world phenomena.Understanding ADC specifications—resolution, sampling rate, input range, and architecture—is crucial for selecting the right converter for your application. Whether you're using the built-in ADC in a microcontroller for a hobby project or designing a precision measurement system with external high-resolution ADCs, the principles remain the same: sample the analog world accurately and convert it to digital form for processing.As technology advances, ADCs continue to improve in resolution, speed, and power efficiency while decreasing in cost and size. This ongoing evolution enables new applications in IoT, wearable devices, autonomous vehicles, and countless other fields where the digital and analog worlds intersect.Last Updated: November 2025
Kynix On 2021-01-19
In this article, you will learn what is AVR microcontroller, what are its features, how to choose a suitable AVR microcontroller, and how to program AVR microcontroller in software and so on. Catalog I. What is a AVR Microcontroller? II. AVR Microcontroller Features III. Selection of AVR Series Single-chip Microcomputer IV. AVR Microcontroller Application Field V. Introduction to the experimental tools and equipment used in AVR VI. AVR Microcontroller Programming Software FAQ I. What is AVR Microcontroller? AVR microcontroller is an enhanced 8-bit and built-in Flash RISC order set developed by ATMEL. Compared with CISC, RISC is not just to reduce the command simply, but make the structure of the computer more simple and reasonable to improve the speed of the operation. The design absorbs the advantages of the 8051 and PIC microcontroller and has the ability to execute one instruction in a single clock cycle. The speed can reach 1Mips/MHz. AVR microcontrollers are widely used in the outside devices of the computers, industrial real-time control, instrumentation, communication equipment, home appliances, and other fields. This vedio shows you how to build your own AVR development board and how to use it in your projects. The hardware structure of AVR adopts a compromise strategy of 8-bit and 16-bit computer, that is, the local register memory stack (32 register files) and the single high-speed input/output scheme (i.e. input capture register, the output compares matching registers and corresponding control logic) are adopted, improving the execution speed of instruction, overcoming the bottleneck phenomenon, and enhancing the function. At the same time, it reduces the cost of external equipment management, simplifies the hardware structure, and reduces the cost. Therefore, the AVR microcontroller is a high-performance-price single-chip microcomputer, which has achieved an optimized balance in hardware/software development, speed, performance, and cost. The introduction of the AVR microcontroller breaks this old design pattern completely, abolishes the machine cycle, and gives up the complex instruction computer (CISC) to pursue the instruction complete method; Reducing instruction set, taking words as the unit of instruction length, arranging the rich operands and opcodes in one word (the majority of single-cycle instructions in the order set are the same), and the reference period is short and the instruction can be prefetched, realizing flow operation, so you can execute instructions at high speed. Of course, high reliability must be required. II. AVR Microcontroller Features 1. High-quality embedded Flash program memory, can be repeatedly written and erased, supporting ISP and IAP, which is easy to have product debugging, development, production, update. Long service-life EEPROM, can save key data for a long time and avoid power loss. High-capacity RAM in chips supports the development of system programs in high-level languages. 2. High speed, low power consumption, with SLEEP (power saving when sleeping) function. Each instruction can be executed at 50ns/ 20MHz, while power consumption is between l~2.5mA (typical power consumption, when WDT turned off, is 100nA), AVR (with prefetching instruction function) based on Harvard structure concept. That is, there are different memories and buses for program storage and data, when an instruction is executed, the next instruction is pre-removed from the program memory. This allows instructions to be executed within each clock cycle. The AVR microcontroller can operate at a wide voltage (2.7V~5V), has the strong anti-jamming ability, and reduces the general 8-bit computer software anti-interference design and hardware usage. 3. All the I/O lines of the AVR single-chip computer have an adjustable pull-up resistor. The input and output characteristics of parallel I/O port are similar to those of PIC's HI/LOW output and three-state high impedance H1-Z input, also be set similar to the 8051 series of internal high resistance as input function. It can be set as an input/output or can be set as high resistance input initially. So that I/O resources are flexible, powerful, and fully utilized. AVR's I/ O can accurately reflect the input/output of I/O. 4. AVR microcontroller has a variety of independent clock dividers for URAT, IIC, SPI. The Prescaler with up to 10 bits when matching with the 8 / 16-bit timer, can set the frequency division coefficient through software to provide a variety of timing times. The timer/counter (single) in the AVR microcontroller can be counted bidirectionally to form a triangle wave, then matched with the output comparison matching register, the output PWM of pulse width modulation with variable duty cycle, variable frequency, and variable phase square wave is generated. 5. For industrial products, with high current (irrigation current) lO=20mA~40mA (single output), can directly drive SSR or the relay. The built-in watchdog timer (WDT) is used to avoid the faulty program and improve the anti-interference ability of the product. 6. Superfunctional streamlined instruction. There are 32 general working registers (equivalent to 32 accumulators in 8051 single-chip computers), which overcomes the data processing problems caused by the single accumulator. 7. AVR microcontroller has analog comparator, I/O port can be used for A/D conversion, can form cheap A/D converter. 8. Byte-oriented high-speed hardware serial interface TWI and SPI. TWI is compatible with the I2C interface, with ACK signal hardware transmission and recognition, address recognition, bus arbitration, and other functions, It can realize all four kinds of multi-machine communication from one to another. SPI has the same function. It also looks like the 8051, AVR has multiple fixed interrupt vector entry addresses, so it can respond to interrupts quickly, and it will interrupt like PIC at the same vector address. 9. AVR microcontroller has an automatic power-up reset circuit, an independent watchdog circuit, low voltage detection circuit BOD, multiple reset sources (automatic up and down reset, external reset, watchdog reset, BOD reset). It can set up a delay operation program after running the system, enhancing the reliability of the system. And meanwhile, the AVR microcomputer has many power-saving sleep modes, wide voltage operation(2.7V-5V), strong anti-interference ability. So it is used widely in the electrical industry due to its advantages. 10. Enhanced high-speed synchronous/asynchronous serial port has the functions of generating checking code based on hardware, hardware detecting and debugging, two-stage receiving buffering, baud rate automatically adjusting position (when receiving), shielding data frame, and so on. They improve the reliability of communication and help write the program easily. It also makes up the distributed network and to realize the complex application of multi-computer communication system. The function of the serial port is much more than the serial port of the MCS-51/96 microcontroller. In addition, the AVR single-chip microcomputer has a high-speed operation, and the interrupt service time is short, therefore, high baud rate communication can be realized. Serial asynchronous communication UART does not occupy timer and SPI transmission function, because of its high speed, it can work in a standard integer frequency, while baud rate can reach 576Ko11, with multi-channel 10-bit AID converter and real-time clock RTC. III. Selection of AVR Series Single-chip Microcomputer AVR microcontroller technology embodies a variety of devices (including FLASH program memory, watchdog, EEPROM, synchronous/asynchronous serial port, TWI/ SPI/ AID/ A/D converter, timer, counter, etc.) and various functions (enhanced reliability of reset system, reduced power-consumption and anti-interference sleep mode, various interrupt systems, timer/counter with input capture and match output, replaceable I/O port. It fully reflects the modern single-chip technology develops into the "on-chip" SoC system. AVR series microcontroller is complete, can be applied to different occasions. In order to make good use of it, it is necessary to know its classification based on different standards and functions. And here are introducing three grades and their models as examples. AVR microcontroller has three grades: Low-grade Tiny series: this type of microcontroller has Less memory, small in size, apt only for simpler applications, the applying model like Tiny11/12/13/15/26/28, etc.; Midrange-grade AT90S series: this microcontroller is used commercially for compound applications, it requires large program memory and also high speed, such as AT90S1200/2313/8515/8535, etc.; High-grade ATmega: this type of microcontroller is the most popular one which has a good amount of memory up to 256KB, higher built-in peripherals, and fit for modest to difficult applications, the applying model like the ATmega8/16/32/64/128 (storage capacity is 8/16/32/64/128KB) and ATmega8515/8535. AVR device pins range from 8 to 64, with a variety of packages available. IV. AVR Microcontroller Application Field Air conditioning control panel Printer control board(PRCB) Intelligent meter Intelligent flashlight LED control screen Medical equipment GPS V. Experimental tools and equipment used in AVR IC-CAVR6.31AC Language Compiler Integrated Development Environment(ATMEL AVR Studio) PonyProg2000 Download Software AVR Microcontroller Integrated Test Board AVR-JTAG Simulator Parallel Port Loader High Stability Power Supply Multifunctional TOP2004 USB Programmer PC VI. AVR Microcontroller Programming Software ICCAVR6.31AC Language Compiler ICCAVR6.31A is a C programming language compiler developed by ImageCraft for AVR MCU. It is a pure 32-bit with an integrated development environment, also consists of an editor and project manager. ICCAVR has been widely used because of its powerful function, simple operation, good technical support, and reasonable price. The following figure is the working interface of ICCAVR. AVRStudio Integrated Development Environment AVRStudio is an integrated development environment that integrates project management, program assembly, program debugging, program download, JTAG simulation, and so on. However, AVRStudio does not support the C programming language. Therefore, when we develop an AVR microcontroller with the C programming language, we should first compile the C programming language with ICCAVR, then open the compiled code file with AVRStudio to debug the program. The following figure is the workspace of SVRAStudio. PonyProg2000 software It is mainly used for AVR MCU and PIC MCU program download, can be used in Windows95/98/ME/NT/20001XP operating systems. The following figure is the working interface of PonyProg2000. Attention Write with PORTx, read with PINx During the experiment, try not to connect the pin directly to the GND/VCC. When it is not set properly, the I/O port will output/fill the high current of 80mA (Vcc=5V), resulting in device damage. As Input 1.The suspension (high resistance state) will be susceptible to interference if the internal pull-up resistor is usually allowed(generally, it seems that 51 has a strong anti-interference ability because 51 always has internal resistance to pull up). 2.Try not to let input suspended or analog input level close to VCC/2, because it will consume too much current, especially in low power applications of CMOS circuits. 3.The pin level provided by the reading software usually requires a clock cycle interval between the assignment instruction “out” and the read instruction “in”, such as the nop order. 4.The input of the functional module (interrupt, timer) can be triggered by a low level, also it can be the rising edge trigger or the falling edge trigger. 5.For high-resistance analog signal input, remember not to allow internal pull-up resistor to affect accuracy, such as ADC digital-analog converter input, analog comparator input, and so on. As Output Taking the necessary current limiting measures, for example, drive the LED to serialize the current-limiting resistor. Reset The internal pull-up resistor will be disabled when to reset. If strict level control is required in an application, such as motor control, it is necessary to use an external resistor to fix the level. Dormant As output, it is still in the same state Input is generally invalid, but the input function is valid if the second function is interrupted. For example, the wake-up function of an external interrupt FAQ 1. What is meant by AVR microcontroller? AVR is a family of microcontrollers developed since 1996 by Atmel, acquired by Microchip Technology in 2016. These are modified Harvard architecture 8-bit RISC single-chip microcontrollers. AVR was one of the first microcontroller families to use on-chip flash memory for program storage, as opposed to one-time programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time. 2. How does AVR microcontroller work? AVR is an 8-bit microcontroller belonging to the family of Reduced Instruction Set Computer (RISC). In RISC architecture the instruction set of the computer are not only fewer in number but also simpler and faster in operation. ... The input/output registers available are of 8-bits. 3. What does AVR stand for in electronics? An automatic voltage regulator (AVR) is an electronic device that maintains a constant voltage level to electrical equipment on the same load. 4. What are the types of AVR? In general, there are two types of an Automatic Voltage Regulator. One is the Relay Type and the other is the Servo Motor type. A Relay type AVR makes use of electronic circuitry like relays and semi-conductors to regulate the voltage. 5. Is Arduino AVR or ARM? Arduino uses AVR- or ARM-based microcontrollers, depending on board. PIC is the oldest of the lot. There's no such thing as an “Arduino microcontroller”. 6. What is full form of AVR? The Full form of AVR is Aortic Valve Replacement. An AVR is a type of open heart surgery used to treat problems with the heart's aortic valve. 7. What happens if AVR fails? When AVR fails a protection called Field Failure protection will come into picture and trip the generator. ... If Failure of field is associated with under voltage which might happen due to severe fault near the generator and AVR might trip not able to maintain the voltage, the generator is tripped instantaneously. 8. What is AVR and ARM? ARM is a microprocessor or CPU architecture while AVR is a microcontroller. ARM can be used similar to a microcontroller when combined with ROM, RAM and other peripherals to a single chip like LPC2148. ... Microcontroller has build in RAM, ROM and other peripherals in a single chip. While microprocessor has only the CPU. 9. What are the applications of AVR and ARM? AVR and ARM comes under the family of micro-controller. But ARM can be used as both Microcontroller or as Microprocessor. ARM micro-controller and AVR micro-controller differs from each other in terms of different architecture and different sets of instruction, speed, cast, Memory, Power Consumption, Bus Width etc. 10. What is AVR microcontroller architecture? AVR is a 8-bit RISC architecture (Reduced Instruction Set Computing) microcontroller in market since 1996 which is having on-chip programmable flash memory, SRAM, IO data space & EEPROM. AVR is the first MCU in market which has on-chip flash storage. You May Also Like A Complete Guide to Solid State Drive (SSD) Brief introduction to the Application of some IC chips in Maxim Integrated Product Recommendation KY32-AT49BV162AT(T) KY32-K9T1G08U0M-YIBO KY32-CY7C131E-55NXI
kynix On 2018-12-07
DescriptionIt's not weird to discover that applications are becoming more complex,with connectivity just one of the drivers. And,as it become more complex.the number of sensors grows,as does the need for more capable user interfaces. At the same time,algoriths need more processing power,wireless stacks mandate larger memories and power budgets are shrinking.In order to coping with the growing list of demands, a great number of leading MCU manufacturers have recently launched Micro Controller Unit built around the ARM Cortex-M4 core. BodyThe M3 is general purpse and the M0+is low cost but the M4 is a more capable core in general if look at the Cortex range. Oivind Loe,a senior strategic marketing manager with Sillicon Laboratories said. Microchip's product marketing manager--Anand Rangara commented:“Something that sat around without the need to communicate now needs connectivity. When that happens, you need more flash and RAM, as well as graphics capability and perhaps the ability to support a touch interface. All this has to be offered at good power/performance and an attractive price.” 'Industrial Strength' MCUsSilicon Labs has expanded its EFM32 Gecko portfolio with what it calls ‘industrial strength’ MCUs. It says the EFM32GG11 Giant Gecko MCU family offers the ‘most advanced’ feature set available in the low-power MCU market.Loe noted that MCU development isn’t just about power. “It’s also about executing tasks efficiently. A simple program with a few clocks will run efficiently on an M0+ core. But if the workload is larger, the M4 core has some special instructions that can allow it to use less energy than the M0+ and more efficiently than some larger cores – and that's crucial for a range of application.” GG11 Geckos offer up to 2Mbyte of flash and 512kbyte of RAM to accommodate more code and comms stacks, such as a 10/100 Ethernet MAC and a dual CAN interface. Looking to meet power budgets, the parts boast an active power consumption of 77μA/MHz, while drawing 1.6μA in deep sleep mode. FPU to Increase System EffiencyMicrochip’s SAM D5x/E5x MCUs also take advantage of the Cortex-M4’s floating point unit (FPU) to increase system efficiency. Running at up to 120MHz, the D5x and E5x MCUs come with up to 1Mbyte of dual-panel flash and up to 256kbyte of SRAM. Rangarajan noted: “We’ve listened to our customers, so we’ve included more connectivity in these MCUs. But it's not just about adding memory , it’s also about more performance and the ability to provide more flexible peripherals, interfaces and connectivity options.” Meanwhile,he pointed out that the original SAM D MCUs – developed by Atmel prior to its acquisition by Microchip – were based on the Cortex-M0+. “But we’ve always wanted to take the product line to the next level of performance. This allows Microchip to address a broader range of consumer and industrial automation applications.” Limited the Clock RateBucking the trend to a certain extent, both Silicon Labs and Microchip have limited the clock rate in their latest MCUs. Giant Geckos, for example, have a maximum clock of 72MHz. “These products are focused on energy efficiency,” Loe claimed. “If you build an MCU to run at 200MHz, for example, then each clock cycle will consume more energy than in an MCU running at 72MHz. A lot of MCUs will be used in battery powered apps, so we need to be energy efficient and to enable the CPU to sleep a lot.” Rangarajan agreed that clock rate is not always the primary factor when it comes to developing MCU portfolios. “We hear our customers saying don’t give me faster clock rates, make sure the MCUs meet my requirements. An app that runs from a battery requires a power efficient MCU. If you want a fast MCU, then you have to make trade offs.” In Loe’s views, MCU selection is all about the ability to perform certain tasks at a particular power efficiency. “That is always going to involve trade offs, but an M4 based MCU will generally be good for embedded applications with challenging energy consumption requirements.” Adopt the Concept of Smart PeripheralsBoth companies have adopted the concept of smart peripherals in their recent products. Loe explained: “Twenty years ago, most MCUs saw the CPU doing everything. That took a lot of CPU cycles, which meant you couldn’t do as much as you might have liked.“Today, most apps will take advantage of DMA, which offloads the CPU. In turn, this allows the CPU to do more.” Rangarajan said Microchip provides what he called ‘sleepwalking’ peripherals. “If there’s a requirement for them to do small numbers of transactions, this can be done without waking the CPU.” On the other hand,Sillicon Loe Noted that It’s all about when you have to wake up the M4 core. We’re trying to allow it to sleep for as much as possible. More than half of the peripherals in a Giant Gecko can run autonomously in deep sleep mode. Both Companies are Keen to Highlight Their Provision Silicon Labs has launched a starter kit to support Giant Gecko based application development(following picture) With this approach, a Giant Gecko’s A/D converter can operate while the CPU is in deep sleep mode. “It can sample and use DMA to pull the data into RAM,” Loe continued.Loe highlighted a couple of aspects. “We have included a cyrotimer that runs in shut off; the lowest energy mode. It’s a simple timer that’s useful when you need the CPU to be asleep for minutes. there’s the Peripheral Reflex System, which allows peripherals to talk. For example, the real time clock could tell the A/D converter to take a sample. It gives a level of determinism which you don’t get from a CPU. Microchip's Product brings better power efficiency How does an MCU developer differentiate their products from similar devices with an M4 core? Rangarajan pointed to the integration of a buck regulator. “This brings better power efficiency,” he claimed, “which means lower active power consumption; as little as 65µA/MHz. The parts also support flexible pin options.”“We’re offering the best integrated security features,” Rangarajan contended. “SAM Dx/Ex MCUs have crypto hardware acceleration – symmetrical and asymmetrical – and public key encryption, amongst other features. It’s something Microchip has taken to heart and has made sure it’s all in the MCU.“We’re offering the best integrated security features,” Rangarajan contended. “SAM Dx/Ex MCUs have crypto hardware acceleration – symmetrical and asymmetrical – and public key encryption, amongst other features. It’s something Microchip has taken to heart and has made sure it’s all in the MCU. EndLoe pointed to the security management unit (SMU) as an ‘upgrade’ to the memory protection unit (MPU) associated with the M4’s core. “While the MPU allows you to segment memory into eight regions, the SMU takes that further. The MPU is restricted to eight regions, so there is limited granularity. The SMU allows you to selectively say which pieces of code can access each peripheral.” “All of this is important,” Rangarajan concluded, “as security will become standard in the next few years.”
kynix On 2017-11-24
A software called DesignDRIVE Fast Current Loop that makes C2000 microcontrollers (MCUs) the first devices to push current-loop performance to less than 1 microsecond, has been introduced by Texas Instruments. Together, TI's C2000 MCU portfolio and DesignDRIVE software delivers System-on-Chip (SOC) functionality which simplifies drive control system development. The DesignDRIVE Fast Current Loop software out performs traditional microcontroller (MCU)-based current-loop solutions and can simplify designs by eliminating the Field-Programmable Gate Array (FPGA) typically used for external current-loop control. Fast Current Loop software is a free update available for C2000 controlSUITE software. TI's DesignDRIVE technology is a unified hardware and software platform that makes it easier for engineers to develop and evaluate solutions for a variety of industrial drive and servo topologies. As a key part of DesignDRIVE solutions, the Fast Current Loop software enables developers to achieve higher control performance while saving valuable board space and simplifying thermal considerations. Features and benefits of TI's DesignDRIVE Fast Current Loop software · Innovative subcycle Pulse-Width Modulation (PWM) update techniques significantly improve control-loop bandwidths to potentially triple the motor torque response. · A novel cycle-scavenging C2000 MCU needs only 460 nanoseconds for field-oriented control processing. · A new complex controller replaces traditional proportional integration control and facilitates greater stability at higher speeds. · Industrial drive systems designed with Fast Current Loop software on a C2000 MCU, like the TMS320F28379, delivers SOC functionality to reduce board space, complexity and overall cost. Ref. KY32-TMS320F28379 KY362-C2000
kynix On 2017-07-03
The CC2640R2F SimpleLink ultra-low-power wireless microcontroller from Texas Instruments (TI) is in stock at Mouser Electronics. Part of TI’s CC26xx SimpleLink family of 2.4GHz devices, the CC2640R2F microcontroller features a small, single-chip system that integrates a flash-based microcontroller and Bluetooth Smart radio to target Bluetooth 4.2 and Bluetooth 5 low-energy applications. The microcontroller combines a 61μA/MHz ARM Cortex-M3 microcontroller and a rich peripheral set that includes an 8.2μA/MHz sensor controller. The 48MHz ARM microcontroller offers 128 kBytes of flash and 28 kBytes of SRAM and supports over-the-air (OTA) updates. The sensor controller is ideal for interfacing external sensors and for collecting analog and digital data autonomously while the rest of the system is in sleep mode. The device includes a 12-bit analogue-to-digital converter, up to 31 general-purpose inputs and outputs (GPIOs), and built-in robust security on chip with one of the simplest radio frequency (RF) and antenna designs available. Minimal RF expertise is required to implement the device, which helps make development and layout extremely easy. The wireless microcontroller is available in 2.7×2.7 mm WCSP and 4×4, 5×5 and 7×7 mm QFN packages, and is designed for a board array of wireless Internet of Things (IoT) applications, including health and fitness, industrial, and home and building automation. With ready-to-use protocol stacks (including the SIMPLELINK-CC2640R2-SDK software development kit for Bluetooth 5), the SimpleLink portfolio of wireless connectivity solutions not only offers designers maximum flexibility and support but also delivers multi-standard capabilities with code- and pin-compatibility across Bluetooth Smart, 6LoWPAN, ZigBee and ZigBee RF4CE. Ref: KY32-MB91F376GPMCR-GS KY32-MB90F548GSPFV-G KY32-HD6417604SVF20
kynix On 2017-06-14
Join our mailing list!
Be the first to know about new products, special offers, and more.
Feature Posts
How Resistors Work: From Basic Principles to Advanced Applications2025-07-30
DC Switching Regulators: Principles, Selection, and Applications2025-05-30
FPGA vs CPLD: In-depth Analysis of Architecture, Performance and Application2025-05-07
MOSFET Technology: Essential Guide to Working Principles & Applications2025-05-04
SMD Resistor: Types, Applications, and Selection Guide2025-04-30