Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Why are some microcontrollers more reliable than others. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

In the article, the author considers some aspects that developers should pay attention to when choosing a microcontroller for applications that meet high reliability and safety requirements.

By the nature of his professional activity in the distribution company "Eltech" LLC, the author has to discuss the problems of developing devices with many domestic electronics manufacturers. During these discussions, it turns out that Russian developers use microcontrollers from all manufacturers represented on the electronic market to solve their problems. For some manufacturers, microcontrollers of the so-called "commercial" design are quite suitable. But there are manufacturers for whom one of the most important criteria for choosing an electronic component is its reliability. First of all, these are specialists working in the field of production of medical equipment, elevator equipment, automotive electronics.

Experiment

In 2006, Mikhail Cherepanov, a developer of the Svey company, applied to our company (Svey is a Russian manufacturer of industrial electronics).

Here is the text of his letter: "The story began with complaints from customers that our digitizers (built on the MSP430F148IPM) intermittently "freeze" and do not respond to requests until they are reset by removing and re-feeding supply voltage.

There have been suggestions that the "hang" is due to the presence of impulse noise (this is a common occurrence in electrical substations). To reproduce the situation, I made a noise generator (Fig. 1).

Why are some microcontrollers more reliable than others. Jammer
Fig. 1

As a result of testing, our converters were modified as follows:
1) Instead of a quartz resonator, a quartz oscillator is installed.
2) An external watchdog timer is installed, since in the MSP430F148 it works from the same quartz and also turns out to be inefficient.

After that, the crashes didn't happen anymore.

Later, our products successfully passed EMC tests (for products subject to mandatory declaration of conformity) according to:

  • GOST R 51317.4.2.
  • GOST R 51317.4.3.
  • GOST R 51317.4.4.
  • GOST R 51317.4.11.

For myself, I determined the minimum requirements for the microcontroller used:

1) Interference generator test.
2) If an internal watchdog timer is used, then it must work immediately after turning on the microcontroller and be clocked by its own generator.
3) Documentation should be "friendly", with examples of configuring peripherals.
4) Availability of available debugging tools (within $200).
5) If you need USB, Ethernet, TCP, then there must be an appropriate ready-made library, and preferably an RTOS with support for them."

So our client asked for help pick up a microcontroller that is resistant to strong electromagnetic fields. We proposed NEC devices knowing that these microcontrollers are widely used in automotive electronics, where the electromagnetic environment is very difficult.

Several evaluation kits were submitted. Then the customer said that he wanted to test them with a spark generator. To be honest, we were a little worried about how these tests would pass, but such conditions are quite consistent with real automotive situations when a breakdown of a high-voltage wire occurs. In this case, the electronics should continue to work properly.

This test method was quite rough, because the evaluation kits are not designed for such tests. We understood that there was a certain risk in this experiment, and, perhaps, our "evaluators" could even fail after such a test. But, having sufficient experience with these devices and taking into account the experience of our customers, we decided that they are properly made and will work as expected.

We have provided two evaluation kits:

  • Low Pin Count - Do it!, built on the 8-bit UPD78F9222;
  • EB-V850ES/HG2-EE based on 32-bit UPD70F3707.

The spark discharge was carried out in close proximity to the evaluation kits.

The testing process is schematically shown in Fig. 2.

Why are some microcontrollers more reliable than others. Testing the Evaluation Board with a Spark Generator
Fig. 2

Both evaluation kits worked flawlessly, even when the spark was close to 5 cm away. The customer reported that he had tested more than 10 different evaluation kits in this way. We asked him to provide the results of these experiments. Further they will be given without comments, "as is".

After some time, the customer conducted another, one might say, more "barbaric" experiment. However, his results are also interesting. He touched the terminals of a working quartz oscillator with his hand. Under such conditions, of all the listed microcontrollers clocked from an external generator, only one worked - uPD70F3707 (NEC). However, in fairness, it should be noted that when touched, the demo program noticeably slowed down the speed of its execution. The reason for this "behavior" of the uPD70F3707 microcontroller will be explained later.

Let's try to understand why the V850ES/HG2 family (to which the uPD70F3707 microcontroller belongs) turned out to be so "tenacious". If you carefully consider some peripheral nodes, then everything gradually falls into place.

Watchdog timer and clock generators

The problems that our client encountered were caused by the fact that when exposed to strong electromagnetic interference, the generation of a crystal oscillator can be disrupted, and since the watchdog timer in the MSP430F148 microcontroller is clocked from the same reference oscillator, when the reference oscillator is stopped, the watchdog timer can no longer "wake up" the microcontroller [1].

To prevent this situation, in all NEC microcontrollers the watchdog timer is clocked from a separate internal ring oscillator. The ring generator is an odd number of inverters connected in a ring so that the output of one inverter goes to the input of the next. Disruption of the generation of a ring generator is practically impossible. It should be noted that in all microcontrollers of the NEC V850 family, the processor core is started from an additional built-in ring oscillator, and only after making sure that the crystal oscillator has started, you can switch the clock to "quartz".

Clock monitor (Clock Monitor)

The clock monitor monitors for the generation of a clock oscillator using an external crystal oscillator. If the generation fails, an internal reset signal RESCLM is generated and the flag RESF.CLMRF [2] is set. After leaving the reset mode, the microcontroller analyzes this flag and "understands" that there are problems with the external clock generator, after which the core is started from one of the internal clock generators. Depending on the family, there may be 1 or 2 oscillators, but their frequency, as a rule, is always less than the frequency of the oscillator using an external resonator.

That is why, after being touched by a finger, the uPD70F3707 microcontroller continued to work, but already much "slower", which was stated by Mikhail Cherepanov from the Sway company.

It is interesting that, to one degree or another, this device is implemented in other microcontrollers. However, if the clock to be used is set during the programming of the FLASH and cannot be changed by software, then the alternate internal oscillator startup scenario described above cannot be implemented.

In addition to the V850ES/Hx2 family, this node also has families specifically designed for motor control applications (V850E/IA3, IA4, IF3, IG3; V850ES/IK1, IE2), for automotive dashboards (V850E/Dx3), for on-board electronics with CAN interface (V850ES/Sx2, Sx2-H, Sx3, Fx2, Fx3, Fx3-L), as well as V850ES/Kx1+, Jx2, Jx3, Jx3-L, Hx2 and Hx3.

It should be noted that in some other microcontrollers (usually 8 and 16 bits), NEC engineers use a windowed watchdog timer instead of a clock monitor. It has a completely different principle of operation, however this peripheral device can be used for the same purpose as the clock monitor, that is, it can monitor the disappearance of the "external" reference oscillator clock and allow the microcontroller to switch to the internal oscillator.

Separation of power rails

All 32-bit NEC microcontrollers mentioned earlier, and many 8-bit ones, have separate power rails for internal peripherals, processor core, and I/O port circuits. On fig. 3 and 4 schematically show such a separation.

Why are some microcontrollers more reliable than others. Separation of power supply circuits for NEC V850 microcontrollers
Fig. 3

Why are some microcontrollers more reliable than others. Separate pins for powering the core, I/O ports and the analog part of the V850ES/Hx2 microcontroller family
Fig. 4

With proper decoupling of the core power bus and the I/O ports, noise induced on the I/O ports does not enter the peripheral and core power circuits and improves electromagnetic immunity (EMS).

So, for example, both lists (Tables 1, 2) included microcontrollers with an AWP core.

Table 1. Evaluation kits worked flawlessly during testing

Name Description
uPD78F9222 Low Pin Count - Do it! evaluation kit, 2-layer board, tested with crystal and external oscillator from NEC Electronics
uPD70F3707 EB-V850ES/HG2-EE evaluation kit from NEC Electronics
TMS320F2806 2-layer board, with external oscillator
ADUC7026BSTZ62 breadboard, with quartz
ATMEGA32-16PU hinged mounting on microchip legs, with quartz
AT89C51-24PI 2-layer board, with quartz
Z8F2421AN020EC 2-layer board, with quartz
EZ80F91AZ050SC debug kit eZ80F910200ZCO, 4-layer board, with quartz
MC56F8322VFB60 debug kit MC56F8300DSK, 2-layer board, apparently with internal RC oscillator
MC9S12NE64 debug kit DEMO9S12NE64
CY8C21x34 Cypress; debug kit CY3212 - CapSense, 2-layer board, internal RC oscillator

Table 2. Evaluation kits that had test program failures when tested

Name Description
C8051F064 Silicon Labs; 2-layer board, work from quartz
MSP430F148IPM 2-layer board, with 8 MHz quartz
LPC2129 debug board
LPC2148FBD64 2-layer board, with external oscillator
LPC2148 debug kit from Olimex, on a 2-layer board, with quartz
TMS470R1A256 KickStart Development Board by IAR on TMS470R1A256, with quartz
AT91SAM7S128 debug kit from Olimex

The ADUC7026BSTZ62 microcontrollers worked without failures, while microcontrollers with an APM core from NXP (LPC2148) got into the "black list". If we examine the power circuits of the core, peripheral devices, and I/O ports, we can see that the microcontroller from Analog Devices, which also "stood" against a spark [3], has a power structure similar to V850ES/Hx2 from NEC. Namely, decoupled power buses for the core and I / O ports (Fig. 5, 6).

Why are some microcontrollers more reliable than others. ADuC702 I/O power rails
Fig. 5

Why are some microcontrollers more reliable than others. ADuC7026 Microcontroller Core Power Buses
Fig. 6

When creating the LPC2148FBD64 [4], NXP engineers limited themselves only to the separation of analog and digital power circuits (Fig. 7).

Why are some microcontrollers more reliable than others. The LPC2148FBD microcontroller does not have a “decoupling” of power between the core and the I / O ports
Fig. 7

Even microcontrollers advertised for automotive applications such as the AT90CAN32/64/128; ATmega164P/324P/644P and ATmega32M1/64M1/32C1/64C1, separation of I/O port power rails and core power rails is not provided. As a result, the possibility of failure due to interference induced along the I / O circuits in critical applications increases.

The MSP430F148 microcontroller, which was used in the development described by Mikhail, also does not have a separation of the core power rails and I / O ports.

You can also recall another very popular chip manufacturer - Microchip. No research has been carried out with microcontrollers from this manufacturer, however, if you look at them from the point of view of separating power buses, then in a certain sense the concept of decoupling I/O ports and peripheral devices is implemented in the PIC24FJ64GA/128GA/256GA family. On fig. 8 shows that the power circuits of the VDDCORE core and the VDD I / O ports are separated. However, the VSS common wire remained not galvanically isolated for these two power circuits. According to preliminary estimates, the noise immunity of these microcontrollers will be lower than that of ADUC7026 from ADI or V850 from NEC.

Why are some microcontrollers more reliable than others. The power supply circuits of the core and I / O ports of the PIC24FJ64GA microcontroller do not have a decoupling on a common wire
Fig. 8

Spread spectrum clock generator (sscg)

Attention should also be paid to the possibility of using a spread spectrum clock generator. Such a generator has frequency-modulated oscillations. "Peak" frequency response, characteristic of the generator of harmonic oscillations, under the influence of frequency modulation "smeared" and turns into a "shelf". The depth and period of the frequency modulation of the SSCG signal can be changed. Microcontrollers of the V850E / ME2, Dx3, V850ES / Hx3, Fx3, V850E2 / ME3 families from NEC are endowed with such a generator. Its application allows to reduce by more than 10 dB the electromagnetic emission (EME) emitted by the generator, and, consequently, to reduce the sensitivity to external electromagnetic interference (EMS) at the frequencies of the clock generator (Fig. 9).

Why are some microcontrollers more reliable than others. a) Harmonic signal; b) SSCG signal
Fig. 9,10

Application of the PLL circuit

Another way to reduce EMS is to use a PLL-based frequency synthesizer. On fig. 10 shows that spurious high-frequency signals induced at the terminals of the quartz resonator are filtered when passing through the low-pass filter of the PLL. On fig. Figure 11 shows data that allows you to evaluate how much the EMS of the microcontroller improves when using the PLL.

Why are some microcontrollers more reliable than others. PLL filters out RF noise

Why are some microcontrollers more reliable than others. Improving noise immunity when using PLL
Fig. 11

Supply voltage

It can be shown that the higher the supply voltage, the higher the noise immunity of the microprocessor circuit. It is also true that the lower the supply voltage, the less the microcontroller will "noise". So, LPC2129 [5] from NXP and AT91SAM7S128 [6] from Atmel, which are on the "black list", have the necessary decoupling of the core power bus and I/O port power buses. However, too low a core supply voltage (1,8 V) adversely affects the noise immunity of this microcontroller.

Sometimes it is necessary to "link" 3- and 5-volt logic. In this case, the tolerance of input / output ports to different levels of logical signals, that is, the ability of the microcontroller to support various voltages of the input / output ports with a constant supply voltage of the microcontroller core and peripheral devices [7] (Fig. 12).

Why are some microcontrollers more reliable than others. Power structure of microcontrollers of the V850ES/Fx2 family
Fig. 12

The chip manufacturer's support may include resources such as PCB routing recommendations, the chip manufacturer's analysis of the PCB area associated with microcontroller routing and additional components with suggestions for improving electromagnetic compatibility (EMC) (Figure 13), materials on electromagnetic radiation (EME) of microcontrollers [8] (provided upon request from the distributor). On fig. Figure 14 shows the NEC laboratory for conducting research on EMC [8]. Its peculiarity is that it should be located high in the mountains, away from sources of electromagnetic radiation.

Why are some microcontrollers more reliable than others. You can request EMC improvement recommendations for your PCB design through your distributor.
Fig. 13

Why are some microcontrollers more reliable than others. NEC Electronics EMC Research Lab
Fig. 14

Distributor support includes providing samples and evaluation kits for testing, technical support and other services. In some cases, as shown above, the distributor takes a risk to get the project going. More "dense" work with the distributor, as a rule, is always beneficial to the final developer and manufacturer.

Table 3 lists some NEC microcontroller families recommended for use in applications with high requirements for reliability, and some characteristics that allow you to evaluate how reliable a device built on these microcontrollers can turn out.

Table 3. Parameters affecting the reliability of some families of NEC Electronics microcontrollers

family Number of CAN channels Productivity (clock frequency), max. Operating supply voltage, V Separation of core power rails /
clock generator,
BB ports
Automotive version
A: -40.. 85 °C
A1: -40…110 °C
A2: -40…125 °C
PLL (PLL) sscg Clock Monitor Window Watchdog Independent watchdog generator Microcontroller EME Study Report PCB Routing Recommendations Analysis of the customer's PCB chip manufacturer Technical and logistical support of the distributor
78K0/Kx1+ - 10 MHz 2,0-5,5 - A, A2 - - - - There is There is There is There is There is
78K0/Kx2 - 20 MHz 2,7-5,5 There is A, A2 - - - There is There is There is
78K0/Fx2 1 20 MHz 1,8-5,5 There is A, A2 - - - There is There is There is
V850ES/Fx3 1,2,4,5 95 MIPS (48 MHz) 3,3-.5,5 There is A, A1, A2 There is There is There is - There is There is
V850ES/Fx3-L 1 43 MIPS (20 MHz) 3,3-5,5 There is A, A1, A2 There is - There is - There is There is
V850ES/Sx3 1, 2 69 MIPS (32 MHz) 2,8-3,6 There is A There is - There is - There is There is
V850E/Dx3 1,2,3 95 MIPS (48 MHz) 4,0-5,5 There is A There is There is There is - There is There is

Conclusion

The main aspects related to the choice of microcontrollers for responsible applications are considered. Tests carried out according to a rather "harsh" methodology given in the article allow the reader to solve the problem of choosing a microcontroller for his application, taking into account the requirements for the reliability of the device being developed, as well as the service received both during development and at all subsequent stages of production.

In one of its new developments, the Sway company used an 8-bit microcontroller UPD78F9212GR manufactured by NEC Electronics.

Literature

1 focus.ti.com/lit/ds/symlink/msp430f148.pdf
2. eu.necel.com/_pdf/U17718EJ2V0UD00.PDF
3. analog.com/static/imported-files/data_sheets/ADUC7019_7020_7021_7022_7024_7025_7026_7027_7028.pdf
4. nxp.com/acrobat_download/datasheets/LPC2141_42_44_46_48_3.pdf
5. nxp.com/acrobat_download/datasheets/LPC2109_2119_2129_6.pdf
6.atmel.com/dyn/resources/prod_documents/doc6175.pdf
7. eu.necel.com/_pdf/U17830EE1V0UM00.PDF
8. Materials available from NEC Electronics (necel.com) upon request.

Author: Gennady Goryunov, gennady.gr@eltech.spb.ru; Publication: cxem.net

See other articles Section Microcontrollers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Fiido Titan electric bike 16.11.2023

The new Fiido Titan is an exciting step into the world of e-bikes, offering unique performance, outstanding range and high load capacity. Its versatility and modern capabilities make it an attractive choice for those looking for a modern and powerful electric bike.

With the growing popularity of electric bicycles, manufacturers are actively introducing new models in an effort to stand out from the competition. One of the brightest innovations in this segment was the Fiido Titan - an electric bike equipped with three batteries for maximum mileage without recharging.

The Fiido Titan is a massive bike with wide wheels (10 cm), designed to conquer various types of terrain. The low frame makes it comfortable for a variety of users, and the shock-absorbing fork improves the comfort level while riding.

The ability to use three batteries in series allows the Fiido Titan to cover distances of up to 400 km. Equipped with a 750-watt electric motor, the bike can accelerate to 45 km/h. Five riding modes, controlled via the touch screen, add flexibility to control. Its impressive 200kg load capacity makes it ideal for transporting both cargo and passengers.

Fiido Titan with three batteries is available for purchase on the manufacturer's official website for $2397. A single battery version is available for $1699 if there is no need for additional batteries.

Other interesting news:

▪ Energy storage in microchips

▪ Mean Well's Slim Budget DIN Rail Power Supplies

▪ Investigation of the structure of benzene

▪ New ARM for IoT

▪ ASRock Rack TRX40D8-2N2T motherboard

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Parameters of radio components. Article selection

▪ Article Spring! The first frame is exposed. Popular expression

▪ article What is the United Nations? Detailed answer

▪ article Sabelnik marsh. Legends, cultivation, methods of application

▪ article Radio transmitter with quartz frequency stabilization of the master oscillator. Encyclopedia of radio electronics and electrical engineering

▪ article Pocket receiver for fishing. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024