Renesas
Redundancy, Voting, and Diagnostic Coverage
-
Question 1 of 11
Do redundancy and voting require special hardware, and do all Renesas MCUs include them?
Reveal answerNo. Redundancy and voting are system-level safety concepts, not features that every microcontroller provides. A designer can build redundant systems with multiple microcontrollers, sensors, power supplies, or monitoring circuits. Some Renesas functional safety products, such as the RH850 and RZ safety families, include hardware features such as lockstep cores, dual-channel architectures, and certified safety mechanisms. Most general-purpose MCUs, including many RA, RX, and RL78 devices, instead provide diagnostic features such as watchdog timers, ECC, CRC, clock monitoring, and voltage monitoring. The examples in this worksheet use RH850 and RZ devices because they provide documented implementations of redundancy, voting, and fault-tolerant architectures.
-
Question 2 of 11
Why do safety systems use redundancy, and what is hardware fault tolerance?
Reveal answerRedundancy keeps a safety function working when one part fails. If a single part controls a dangerous machine, one fault could leave it running when it should stop. A second channel gives the system another path to a safe state.
Hardware fault tolerance, or HFT, counts how many faults a system can survive and still do its safety job. An HFT of 0 means one fault can defeat the safety function. An HFT of 1 means it still works after one fault.
Renesas shows this idea in its RZ/T2M + RZ/T2L×2 functional safety reference board. The user’s manual says the board uses two RZ/T2L microprocessor units, or MPUs, to achieve an HFT = 1 architecture (R30UZ0214EJ0101, Section 2.1, p. 5).
-
Question 3 of 11
What do 1oo1, 1oo2, 2oo2, and 2oo3 mean, and how does voting work?
Reveal answerThese labels mean “M out of N.” N is the number of channels. M is how many must call for a trip, the action that puts the machine in a safe state.
A dangerous failure stops a channel from calling for a trip. A safe failure causes a channel to trip when nothing is wrong; this is called a spurious trip.
1oo1: One channel. Any failure either blocks the trip or causes a spurious one.
1oo2: Either of two channels can trip. One dangerous failure is covered, but spurious trips double.
2oo2: Both channels must agree. One safe failure is covered, but one dangerous failure blocks the trip.
2oo3: Any two of three channels must agree. One failure of either kind is covered.
Here is an example. Three sensors guard a 150 °C limit. Sensor A reads 152 °C, B reads 153 °C, and C is stuck at 25 °C. With 2oo3 voting, two channels say trip, so the heater shuts off. A 2oo2 pair of A and C would not trip.
The reference board manual shows a hardware shutoff path. Safety control outputs from the RZ/T2L chips feed AND gates on the three-phase inverter control signals. Driving those outputs low shuts the signals off. The manual tests one RZ/T2L at a time while the other holds its outputs high (R30UZ0214EJ0101, Section 3.6, pp. 19–20).
-
Question 4 of 11
What are common-cause failures, and how does diversity help?
Reveal answerA common-cause failure is one event that knocks out several redundant channels at once. A shared power supply, an overheated enclosure, or a software bug copied into both channels can do this. Designers fight common cause with separation and diversity. Diversity means making the channels different, such as using different parts, code, or sensing methods.
Power is a classic shared weak point, and the reference board manual shows one way to handle it. The board makes a dual 5 V supply from its 24 V input and shuts the 5 V output off if the input falls below 19 V. A monitoring IC checks the MPU supply rails against both high and low thresholds (R30UZ0214EJ0101, Sections 3.1–3.4, pp. 15–16).
-
Question 5 of 11
How do lockstep CPU cores detect faults?
Reveal answerA lockstep CPU runs two cores on the same instructions and compares their outputs every clock cycle. A mismatch means one core has a fault, and the chip flags an error right away. Many designs delay the checker core by a cycle or two. A single glitch is then less likely to corrupt both cores the same way.
The RH850/U2C datasheet lists a dual-core lockstep configuration for the CPU among its functional safety features. When an error occurs, its error control module can generate an interrupt, generate an internal reset, or switch the ports to high impedance (R01DS0510EJ0100, Sections 1.1–1.2).
-
Question 6 of 11
How does ECC on memory work as a diagnostic?
Reveal answerError-correcting code, or ECC, adds check bits to each stored word. On every read, hardware recalculates the check bits and compares them. The common scheme, single-error correction and double-error detection, or SEC-DED, fixes any one flipped bit and flags any two. For a 32-bit word, the math works like this.
Single-bit correction needs r check bits, where 2^r ≥ 32 + r + 1
r = 6 works because 2^6 = 64, and 64 ≥ 39
Add 1 bit for double-error detection, so 7 check bits
Stored word = 32 + 7 = 39 bitsThe RL78/F23 and RL78/F24 safety function application note explains RAM ECC on these microcontrollers. The function corrects 1-bit errors and always generates an interrupt request on a 2-bit error. A test mode writes bit-inverted values so software can confirm the ECC logic works (R01AN6624EJ0110, Section 4, pp. 13–19).
-
Question 7 of 11
What is diagnostic coverage?
Reveal answerDiagnostic coverage, or DC, is the share of dangerous failures that a diagnostic can detect. Failure rates are often given in failures in time, or FIT. One FIT is one failure per billion device-hours.
Dangerous failure rate = 200 FIT
Rate caught by diagnostics = 180 FIT
DC = 180 ÷ 200 = 0.90, or 90%
Undetected dangerous rate = 200 − 180 = 20 FITIEC 61508 rates 60% as low coverage, 90% as medium, and 99% as high.
A TÜV Rheinland certificate for the RZ/T2H and RZ/N2H functional safety platform software shows real figures. It confirms 99% coverage, rated high, for RAM error detection by block replication. It confirms 90%, rated medium, for fault detection in on-chip peripheral control registers (Certificate No. 968/FSP 2979.00/25, July 17, 2025).
-
Question 8 of 11
How do you check that flash memory has not changed?
Reveal answerFlash holds code that should never change, so a cyclic redundancy check, or CRC, works well. The build tools calculate a reference CRC over the code. The microcontroller later recalculates it and compares the two values. Any mismatch means the code changed.
The RL78/F23 and RL78/F24 safety function note describes a high-speed CRC that checks the whole code flash area with the CRC-16-CCITT polynomial. Software compares the result with an expected value that the development tool stores in ROM. The CPU stops while this CRC runs (R01AN6624EJ0110, Section 2, pp. 4–8).
-
Question 9 of 11
How does clock monitoring work?
Reveal answerA clock monitor catches a clock that runs fast or slow. It counts edges of the target clock during a window set by a separate reference clock. If the count falls outside a limit, it flags an error.
Target clock = 8 MHz, window = 1 ms
Expected count = 8,000,000 × 0.001 = 8,000
Limits at ±10% = 7,200 to 8,800
A count of 6,900 is about 14% low, so the monitor flags an errorThe Renesas Flexible Software Package, or FSP, documents this for the RA family. Its page on the clock frequency accuracy measurement circuit, or CAC, describes the method. The CAC counts measurement clock edges between two reference clock edges and checks the count against upper and lower limits. It can raise an interrupt on a frequency error (FSP v6.6.0, r_cac module, Overview and Configuration).
-
Question 10 of 11
Why should safety mechanisms test themselves?
Reveal answerA broken monitor can hide for years because it only matters when something else fails. This hidden fault is called a latent fault. If a clock monitor dies first and the clock fails later, nothing catches the second fault. Good designs exercise each safety mechanism on purpose, usually at startup.
The RL78/F23 and RL78/F24 safety function note gives a clear example. Its clock monitor generates a reset if the main system clock stops. A self-test mode lets software stop a monitored clock to confirm the monitor reacts (R01AN6624EJ0110, Section 8, pp. 37–40).
-
Question 11 of 11
How do these techniques map to SIL and ASIL?
Reveal answerSafety integrity levels, or SILs, rank how much risk reduction a safety function must deliver. IEC 61508 uses SIL 1 to SIL 4. The automotive standard ISO 26262 uses automotive safety integrity levels, or ASILs, from A to D.
One key measure is the safe failure fraction, or SFF, the share of all failures that are either safe or dangerous but detected. For a complex part such as a microcontroller at SIL 3, the IEC 61508 table asks for an SFF of at least 99% with HFT = 0, or at least 90% with HFT = 1.
Safe failures = 100 FIT, dangerous = 200 FIT, detected dangerous = 180 FIT
Safe plus detected = 100 + 180 = 280 FIT
SFF = 280 ÷ 300 = 0.93, or about 93%
That meets SIL 3 with HFT = 1, but not with HFT = 0The RH850/U2C datasheet states that the device conforms to ASIL D, the highest automotive level. Its device table lists error injection for self-diagnosis of several safety mechanisms (R01DS0510EJ0100, Sections 1.1 and 1.5).