Українською
  In English
Feed aggregator
I made a display out of 16-segments displays
![]() | build + demo: https://youtu.be/7fNYj0EXxMs [link] [comments] |
Viper RF joins WIN Alliance Program
Infineon to supply power modules for EV traction inverters in Rivian’s R2 platform
EEVblog 1686 - Electronex 2025 Melbourne - Walkaround
Adaptive resolution for ADCs

Engineers always want to get all they can from their circuits; this holds for analog-to-digital converters (ADCs). To maximize performance from an ADC, resolution is perhaps the primary spec to focus on. However, the sad fact is that we have defined the maximum single-read resolution once we pick the ADC and its reference. For example, let’s say we use a 10-bit ADC with a 5-V reference. This means that our reading resolution is 5 V / (1023) or 4.888 mV per digital step. But what if we had this ADC system and had to apply it to a sensor that had an output of 0 to 1 V? The ADC resolution stays at 4.888 mV, but that means there are only 1 V /4.888 ms, or ~205 usable steps, so in essence, we have lowered the sensor’s resolution to 1 part in 205.
What if we were designing a device to measure the voltage across an inductor when a DC step voltage is applied through a series resistor? You can see in the curve below (Figure 1), in the first couple of seconds we probably would get decent data point readings, but after that, many of the data points would have the same value since the slope is shallow. In other words, the relative error would be high.
Figure 1 Sample inductor voltage versus time curve for a circuit measuring the voltage across an inductor when a DC step voltage is applied through a series resistor. Note the flat slope after 3 seconds, which will increase the relative error of the measurement.
Wow the engineering world with your unique design: Design Ideas Submission Guide
There are two basic ways to change this:
- Change the ADC to one with more bits (such as 12, 14, or 16 bits) or,
- Change the ADC’s reference voltage.
(There are also more exotic ways to change resolution, such as using delta-sigma converters.) Changing the number of bits would mean an external ADC or a different microcontroller. So, what if we designed a system with an adjustable reference? This resolution could change automatically as needed—let’s call this adaptive resolution.
Adaptive resolution demoLet’s look at an easy method first. The Microchip ATMEGA328P has three settings for the internal ADC reference: the Vcc voltage, an internal 1.1-V reference, and an external reference pin (REF). So, for demonstration, the simplest setup is to use an Arduino Nano, which uses the ATMEGA328P.
The demonstration uses one of the analog inputs, which can connect to a 10-bit ADC, to measure voltage or the sensor output. The trick here is to set the reference to Vcc (+5 V in this design) and take an ADC reading of the analog input.
If the reading, after being converted to a voltage, is greater than 1.1 V, use that value as your measurement. If it is not greater than 1.1 V, change the reference to the internal 1.1-V band-gap voltage and retake the reading. Now, assuming your sensor or measured voltage is slow-moving relative to your sample rate, you have a higher-resolution reading than you would have had with the 5-V reference.
Referring to our inductor example, Figure 2 illustrates how this adaptive resolution will change as the voltage drops.
Figure 2 Change in adaptive resolution using the Microchip ATMEGA328P’s internal ADC with either reference Vcc voltage of 5 V or internal reference of 1.1 V.
Adaptive resolution codeThe following is a piece of C code to demonstrate the concept of adaptive resolution.
[An aside: As a test, I used Microsoft Copilot AI to write the basic code, and it did a surprisingly good job with good variable names, comments, and offered a clean layout. It also converted the ADC digital to the analog voltage correctly. As I was trying to get Copilot to add some logic changes, it got messier, so at that point, I hand-coded the modifications and cleanup.]
// Define the analog input pin const int analogPin = A0; // Variable to store the reference voltage (in mV) const float referenceVoltage5V = 4753.0; // Enter the actual mv value here const float referenceVoltage1p1V = 1099.0; // Enter the actual mv value here // Types and variable to track reference state enum ReferenceState {Ref_5, Ref_1p1}; ReferenceState reference = Ref_5; void setup() { // Initialize serial communication at 9600 bits per second Serial.begin(9600); // Set the analog reference to 5V (default) analogReference(DEFAULT); reference = Ref_5; // Set reference state } void loop() { int sensorValue = 0; int junk = 0; float voltage = 0; sensorValue = analogRead(analogPin); // Take a reading using the current reference if (reference == Ref_5) { voltage = (sensorValue / 1023.0) * referenceVoltage5V; //Convert reading if (voltage < 1100) { // Check if the voltage is less than 1.1V // Change the ref voltage to 1.1v and take a new reading analogReference(INTERNAL); // Set the analog reference to 1.1V (internal) reference = Ref_1p1; // Set reference state junk = analogRead(analogPin); // Take a throw-away read after ref change sensorValue = analogRead(analogPin); // Take a new reading using 1.1v ref voltage = (sensorValue / 1023.0) * referenceVoltage1p1V; //Convert reading } } else // Reference is currently set to 1.1v voltage = (sensorValue / 1023.0) * referenceVoltage1p1V; //Convert reading if (sensorValue == 1023) { // Check if the ADC is at maximum (>= 1.1v) // Voltage is 1.1 volts or greater, so change to 5v ref and reread analogReference(DEFAULT); // Set the analog reference to 5V (default) reference = Ref_5; // Set reference state junk = analogRead(analogPin); // Take a throw-away read after reference change sensorValue = analogRead(analogPin); // Take a reading using the 5v reference voltage = (sensorValue / 1023.0) * referenceVoltage5V; //Convert reading } // Print the analog value and voltage to the serial monitor if (reference == Ref_5) Serial.print("Analog value with 5V reference: "); else Serial.print("Analog value with 1.1V reference: "); Serial.print(sensorValue); Serial.print(", Voltage: "); Serial.println(voltage / 1000,4); // Delay for a moment before the next loop delay(1000); }This code continuously reads the ADC connected to analog pin A0. It starts by using Vcc (~5 V) as the reference for the ADC. If the reading is less than 1.1 V, the ADC reference is switched to the 1.1-V internal reference. This reference is continued to be used until the ADC returns its maximum binary value of 1023, which means the A0 voltage must be 1.1 V or greater. So, in this case, the reference is switched to Vcc again. After taking a valid voltage reading, the code prints the reference value used along with the reading.
The 5 V and 1.1 V references must be calibrated before use to get accurate readings. This should be done using a reasonably good voltmeter (I used a calibrated 5½ digit meter). These measured voltages can then be entered into the code.
Note that towards the top of the code, the 5-V reference voltage variable (“referenceVoltage5V”) is set to the actual voltage as measured on the REF pin of the Arduino Nano, when the input on A0 is greater than 1.1 V. The 1.1-V reference voltage variable (“referenceVoltage1p1V”) should also be set by measuring the voltage on the REF pin when the A0 voltage is less than 1.1 V. Figure 3 below illustrates this concept.
Figure 3 This code continuously reads the ADC connected to analog pin A0. If A0 voltage < 1.1 V, the ADC reference is switched to 1.1 V. If A0 > 1.1 V, the ADC reference is switched to Vcc.
Relative error between 1.1 V and 5 V referencesA few pieces of data showing the improvement of this adaptive resolution are as follows: Around 1.1-V, the 5-V referenced reading can have a resolution error of up to 0.41% while the 1.1-V reference reading can have up to a 0.10% error. At 100 mV, a reading that references 5 V could have up to a 4.6% error, while a 1.1-V referenced reading may have up to a 1.1% error. When we reach a 10-mV input signal, the 5 V reference may err by 46% while the 1.1 V reference reading will be 10.7% or less.
Expanding reference levels External DAC methodIf needed, this concept could be expanded to add more levels of reference, although I wouldn’t go more than 3 or 4 levels on a 10-bit ADC due to diminishing returns. The following are a few examples of how this could be done.
The first uses a DAC with its own reference tied to the Nano’s REF pin. The DAC controlled by the Nano could then be adjusted to give any number of reference values. An example of such a DAC is the MAX5362 DAC with I2C control (although its internal reference is 0.9xVcc, so the max reading would be roughly 4.5 V). In this design, the Nano’s REF pin would be set to “EXTERNAL.” See Figure 4 below for more clarity.
Figure 4 Using an external DAC (MAX5362) controlled by the Arduino Nano to provide more reference levels.
Nano’s PWM output methodAnother way to create multiple reference voltages could be by using the Arduino Nano’s PWM output. This would require using a high-frequency PWM and very good filtering to obtain a nice flat DC signal, which is proportional to the 5-V reference value. You would want a ripple voltage of about 1 mV (-74 dB down) or less to get a clean, usable output. The outputs would also need to be measured to calibrate it in the code. This technique would require minimal parts but would give you many different levels of reference voltages to use. Figure 5 shows a block diagram of this concept.
Figure 5 Using the Arduino Nano’s PWM output and a lowpass filter to obtain the desired DC signal to use as a voltage reference.
Resistor ladder methodAnother possibility for an adjustable reference is using a resistor ladder and an analog switch to select different nodes in the ladder. Something like the TI TMUX1204 may be appropriate for this concept. The resistor ladder values can be selected to meet your reference requirements. Figure 6 shows that two digital outputs from the Nano are also used to select the appropriate position in the resistor ladder.
Figure 6 Using a resistor ladder and an analog switch, e.g., TI TMUX1204, to select different nodes on the ladder to generate tailored voltage reference values.
You get the ideaThere are other ways to construct the reference voltages, but you get the idea. The bigger picture here is using multiple references to improve the resolution of your voltage readings. This may be a solution looking for a problem, but isn’t that what engineers do—match up problems with solutions?
Damian Bonicatto is a consulting engineer with decades of experience in embedded hardware, firmware, and system design. He holds over 30 patents.
Phoenix Bonicatto is a freelance writer.
Related Content
- Not all oscilloscopes are made equal: Why ADC and low noise floor matter
- Measure twice cut once: Choosing the correct ADC analog input type to reduce risk of redesign
- 15-bit voltage-to-time ADC for “Proper Function” anemometer linearization
- Building a low-cost, precision digital oscilloscope – Part 2
- Understanding noise, ENOB, and effective resolution in ADCs
- Create a DAC from a microcontroller’s ADC
- Designing antialias filters for ADCs
The post Adaptive resolution for ADCs appeared first on EDN.
Nexperia reports resilient annual performance and positive outlook amid market headwinds
Redefining Semiconductor Excellence: India Sets the Stage with 3nm Designs
With the launch of its very first 3nm chip design facilities in Noida and Bengaluru, India has made a significant leap in semiconductor technology. These cutting-edge facilities were inaugurated by the Ministry of Electronics & Information Technology (MeitY), led by Union Minister Ashwini Vaishnaw, marking a new era in India’s semiconductor sector.
A Notable Milestone in India’s Semiconductor Sector
Renesas Electronics India’s newly established 3nm chip design centres are a milestone for India’s semiconductor technology. Previously India worked on 7nm and 5nm chip designs, but with the change to 3nm technology, the country is among the global leaders in semiconductor technology.
Vaishnaw emphasized that designing at 3nm is truly next-generation, highlighting India’s growing expertise in semiconductor design. The Noida facility, in particular, is expected to play a crucial role on developing a pan- India semiconductor ecosystem, leveraging the country’s skilled workforce. He emphasized the industry’s increasing confidence by pointing to large investments firms like Applied Materials and Lam Research.
Government Strategy and Industry Investments
India’s chip roadmap stretches beyond design, to fabrication, advanced packaging (ATMP), equipment and material supply chains. In developing a self-dependent and globally competitive semiconductor ecosystem, the government is encouraging strategic collaborations, infrastructure development and home-grown innovation.
As part of further enhancing the talent pipeline, Vaishnaw launched a new semiconductor learning kit that was designed to impart engineering students with practical exposure in hardware design. More than 270 educational institutions that are already utilizing cutting-edge EDA (Electronics Design Automation) tools under the India Semiconductor Mission (ISM) will now be provided with these kits.
“Renesas Electronics, CEO, Hidetoshi Shibata, appreciated India’s growing influence in embedded systems as well as semiconductor innovation and said that Indo-Japan strategic partnership would be instrumental in shifting the semiconductor trend globally.”
Conclusion:
India’s opening of 3nm chip design hubs is a landmark moment in the country’s semiconductor journey, placing the country among the world leaders in the field of chip innovation. With its government-supported semiconductor strategy taking root, India is now moving beyond chip design to fabrication, advanced packaging (ATMP) and the materials supply chains, creating a sustainable semiconductor ecosystem.
The post Redefining Semiconductor Excellence: India Sets the Stage with 3nm Designs appeared first on ELE Times.
Pfeiffer Vacuum+Fab Solutions adds CNR series to CenterLine family of vacuum gauges
Seoul Semiconductor providing LED tunnel safety landscape lighting for Seoul City
POET appoints Ghazi Chaoui as senior VP – global manufacturing & digital transformation
Gelest opens new production plant
POET grows non-recurring engineering revenue in Q1
What you need to know about firmware security in chips

The rapid advancement of semiconductor technologies has transformed industries across the globe, from data centers to consumer devices, and even critical infrastructure. With the ever-growing reliance on interconnected devices, robust security systems are paramount. Among the unsung heroes in ensuring this security are the firmware systems that power these devices, particularly security firmware embedded within semiconductor components.
Secure firmware, especially in devices like self-encrypting drives (SEDs), is crucial in safeguarding sensitive data. As data breaches and cyberattacks become more sophisticated, ensuring that the foundation of technology—semiconductors—remains secure is critical. The secure firmware embedded in these systems enables the encryption and decryption of data in real time, ensuring that sensitive information remains protected without compromising performance.
Figure 1 SEDs provide hardware-based encryption for robust data protection. Source: Micron
While often invisible to the end user, this technology has a far-reaching impact. It secures everything from financial transactions to personal health data, laying the groundwork for secure, scalable, and efficient systems that are vital for industries in both the public and private sectors. In this context, the evolution of secure firmware can be seen as an essential pillar of digital safety, contributing to national and global security priorities.
Role of security protocols and standards
In the world of secure firmware, several protocols and standards ensure that systems remain resilient against evolving threats. These include advanced cryptographic algorithms, trusted platform modules (TPMs), and the implementation of standards set by organizations like National Institute of Standards and Technology (NIST) and Trusted Computing Group (TCG). These technical frameworks serve to safeguard sensitive data and build trusted systems from the hardware level up.
- Security Protocol and Data Model (SPDM)
SPDM is a protocol developed by the Distributed Management Task Force (DMTF) to provide a standardized framework for secure communication between devices, especially in scenarios involving trusted hardware such as TPMs and secure boot mechanisms.
Figure 2 The security standard enables system hardware components such as PCIe cards to have their identity authenticated and their integrity verified. Source: OCP Security
It ensures secure data exchange by supporting authentication, integrity checks, and confidentiality for devices in a distributed environment. By embedding SPDM into security firmware, semiconductor systems can ensure end-to-end security from device initialization to secure communication with other networked devices.
- NIST Cybersecurity Framework
NIST provides a comprehensive set of standards and guidelines that address the security requirements for information systems in various industries. The NIST Cybersecurity Framework, along with specific guidelines like NIST SP 800-53 and NIST SP 800-171, defines best practices for managing cybersecurity risks and ensuring system integrity.
Figure 3 The cybersecurity framework provides a structured approach to cybersecurity risk management, incorporating best practices and guidance. Source: NIST
These standards heavily influence the design and implementation of secure firmware within semiconductor systems, helping organizations meet regulatory compliance and industry standards. With strong encryption, secure boot processes, and robust key management, firmware embedded in semiconductor chips must comply with NIST standards to ensure that systems are protected against evolving threats.
- Trusted Computing Group (TCG)
TCG defines industry standards for hardware-based security technologies, including TPMs, which are widely used in semiconductor systems for secure authentication and encryption. TCG’s specifications, such as the TPM 2.0 standard, enable the creation of a hardware-based root of trust within a device.
This ensures that even if the operating system is compromised, the underlying hardware remains secure. The integration of TCG standards into firmware helps strengthen the security posture of semiconductor devices, making them resilient to physical and remote attacks.
Impact of firmware security on different Industries
Secure firmware embedded in semiconductors is crucial in advancing various sectors, ensuring the protection of data and systems at a foundational level. Here’s how it’s benefiting key segments:
- Financial sector
Secure firmware is essential in safeguarding financial transactions and sensitive data, particularly in banks, payment systems, and online platforms. Self-encrypting drives and hardware-based encryption ensure that financial data remains encrypted, even when stored on physical drives.
Implementing security protocols such as Secure Hash Algorithm (SHA), Advanced Encryption Standard (AES), and public-key cryptography standards ensures that financial data is protected against cyber threats, reducing the risk of data breaches and fraud.
- Healthcare
The healthcare sector is increasingly relying on digital technologies to manage patient data. Secure firmware is critical in ensuring that health information remains protected across devices, from medical records to diagnostic machines.
By using encrypted semiconductor solutions and ensuring compliance with standards like Health Insurance Portability and Accountability Act (HIPAA), patient data is safeguarded from unauthorized access. The integration of secure boot processes and data encryption protocols, such as AES-256 and RSA, prevents data leakage and ensures that sensitive health records remain confidential.
- Government and national security
Government agencies rely heavily on secure hardware solutions to protect sensitive national data. Secure firmware within semiconductor devices used by government systems ensures that classified information, defense data, and communications remain secure.
Through the implementation of NIST-approved cryptographic algorithms and TCG’s trusted hardware standards, government systems can resist both local and remote threats. This security infrastructure supports national defense capabilities, from intelligence gathering to military operations, indirectly enhancing national security.
- Critical infrastructure
The protection of critical infrastructure, such as power grids, transportation systems, and communications networks, is paramount for the functioning of society. Secure firmware in semiconductors enables these systems to operate securely, preventing cyberattacks that could compromise national safety.
Protocols such as SPDM help ensure that all components of critical infrastructure can communicate securely, while hardware-backed encryption ensures that even if systems are breached, data integrity is maintained.
- Manufacturing and industrial control systems
In manufacturing environments, industrial control systems that manage production lines, robotics, and automated systems need to be protected from cyber threats. Secure firmware embedded in the semiconductor chips that control these systems helps prevent cyberattacks targeting production processes, which could lead to significant financial losses or safety issues.
For instance, the use of TCG’s TPM technology enables secure authentication and encryption of communication between devices, ensuring that industrial systems remain operational and tamper-free.
- Defense and aerospace
In the defense and aerospace sectors, secure firmware is indispensable for the integrity of both commercial and military technologies. From satellites to weapon systems, semiconductor-based firmware security ensures the protection of classified military data and technologies from cyber espionage and attacks.
With the growing adoption of TPMs and other hardware-based security solutions, defense technologies become more resilient to attacks, ensuring the protection of national interests.
Implications for national and global security
As industries become more digitally interconnected, the need for secure hardware has never been more pressing. Secure firmware plays an essential role in protecting data at the hardware level, preventing unauthorized access and ensuring the integrity of information even in the event of physical tampering. This level of protection is vital not only for corporations but also for government institutions and critical sectors that rely on unbreachable security measures.
The ongoing development and refinement of firmware security in semiconductors align with broader global priorities surrounding cybersecurity. Through cutting-edge technologies like self-encrypting drives, secure firmware helps mitigate the risks associated with cyberattacks, such as data theft or system compromise, providing a layer of defense that supports global digital infrastructure.
The semiconductor industry is constantly evolving, pushing the boundaries of what is possible in terms of speed, efficiency, and security. As part of this progress, companies in the semiconductor industry are investing heavily in the development of advanced security measures embedded in their hardware solutions. This innovation is not only crucial for the companies themselves but has far-reaching implications for industries that rely on secure technology, from finance to healthcare, education, and government.
This innovation is not only beneficial for the industries adopting these technologies but also plays a significant role in driving broader policy and technological advancements. As organizations continue to develop and deploy secure semiconductor systems, they contribute to a more resilient and trustworthy digital ecosystem, indirectly bolstering national interests and global technological leadership.
The ongoing development of firmware security in semiconductor systems represents a critical effort in the fight against cyber threats and data breaches. While often unnoticed, the impact of these technologies is profound, helping to secure the digital infrastructure that underpins modern society.
As the semiconductor industry continues to innovate in this space, it contributes to the ongoing enhancement of security standards, indirectly supporting global technological leadership and contributing to a more secure digital world.
Karan Puniani is a staff test engineer at Micron Technology.
Related Content
- 5 Tips for speeding firmware development
- Development tool evolution – hardware/firmware
- Use virtual machines to ease firmware development
- Will Generative AI Help or Harm Embedded Software Developers?
- No code: Passing Fad or Gaining Adoption for Embedded Development?
The post What you need to know about firmware security in chips appeared first on EDN.
Simple “Set and Forget” Aquarium Controller for Lights, Air Pump, and Water Pump
![]() | The menu is navigated using a rotary encoder, and each channel has an LED indicator. [link] [comments] |
Використання штучного інтелекту в публічному управлінні: виклики, можливості, перспективи
🇺🇦🇪🇺 КПІ ім. Ігоря Сікорського розширює співпрацю з Радою Європи, Національним агентством України з питань державної служби і Вищою школою публічного управління
In a near future...
![]() | submitted by /u/Skatino [link] [comments] |
The Jaycar Special power supply Finaly died today
![]() | submitted by /u/BrendD24 [link] [comments] |
Designed my own Brain Computer Interface. 24 Bit 16ksps 8 Ch Wifi and BLE enabled
![]() | submitted by /u/CerelogOfficial [link] [comments] |
I built an Octopus
![]() | I've been wanting a curve tracer for some time, but I don't like the prices for "vintage" commercial equipment. I learned about the "Octopus" just recently and decided to give it a go. It still needs final touches, like mounting the transformer with double sided tape and adding a fuse, but otherwise it is done. I used the design found on qsl dot net. It seemed dead simple and there's always room to perform mods, like adjustable voltage and current. For now, we'll see how this works out. I built the BOM on mouser for under $60 shipped. Some items like the power cord, pomona test clips, and proto board I already had on hand. I used a drill press to drill the front and rear panels. I used MS Paint to create templates for drilling the banana jacks, power switch, and BNC jacks. Anyway, fun stuff! We'll see which of my scopes will do the best job. [link] [comments] |
Weekly discussion, complaint, and rant thread
Open to anything, including discussions, complaints, and rants.
Sub rules do not apply, so don't bother reporting incivility, off-topic, or spam.
Reddit-wide rules do apply.
To see the newest posts, sort the comments by "new" (instead of "best" or "top").
[link] [comments]
Pages
