Microcontrollers: At the core

Stefan Kouba from Microchip explains how to deliver innovative automotive sensor concepts with core independent peripherals
In times in which the semiconductor electronics market is going into saturation, the automotive industry shows an above-average increase in sales. Functional safety requirements and the trend towards future autonomous vehicles is driving R&D to solve an ever increasing amount of problems using smart electronics for ensuring comfort and safety in the vehicle.
The demands on processing power continue to rise but at the same time more and more applications have to deal with a reduced power consumption budget. With the rapid adoption of engine start-stop functions to reduce emissions, electrical systems have to be energy efficient and so must not draw high amounts of power while the engine is not running. However, all tasks must be completed in time and without compromising vehicle safety.
The performance of a 32bit processor is stated in millions of instructions per second (Mips). At high clock rates, individual tasks can be processed at higher speed, however this requires large amounts of software. While this is feasible, it drives the need for larger memories on the chip.
Since it is necessary to realise this processor architecture with small cmos process nodes to keep the 32bit core as small as possible and cost effective, it also has the benefit of larger and more compact flash memories that are required due to the 32bit overhead.
This causes a problem as the higher CPU usage demands an increase in power consumption. In addition, the leakage current of the various transistors is quite high so achieving low sleep mode currents can be quite challenging.
In contrast, 8bit microcontroller cores are relatively small, so larger geometry cmos process nodes can be used, which have thicker gate oxides and higher transistor threshold voltages. Therefore, the CPU and logic can operate at higher voltages, more analogue components can be integrated, and higher currents can be provided at the output, for example 100mA at certain pins. Higher threshold voltages also provide a lower signal-to-noise ratio and increase the noise immunity. Finally, leakage currents decrease as transistors have larger geometries, and lower quiescent currents can be achieved in various sleep modes.
Usually, lower clock and Mips rates achieved by 8bit cores may cause a performance challenge in certain applications, so an innovative implementation is necessary to ensure complex tasks still can be completed with acceptable throughput and latency.
Therefore, complex system tasks need to be offloaded to independent processes to keep the CPU load as low as possible. This core independent peripheral (CIP) can then perform tasks with higher performance by simply operating in parallel.
Consider a task that requires a lot of CPU cycles or intensive access to flash or ram. A small CIP can be implemented on the chip to perform this task quickly and independent of CPU or memory interaction. Instead, the CPU can manage supervisor functions or add more redundancy. This becomes increasingly important due to higher demands on functional safety.
The obvious benefit is that due to the reduced CPU load the core itself can remain in a sleep mode for much longer, thereby lowering power consumption. This is a very important aspect for sensing applications in the automotive area.
In the areas of power supplies and power electronics for LED headlamps, DC-DC converters for 12 to 48V systems or USB-C chargers, optimal methods are needed for the complex task of current and voltage control in real time. At the same time, microcontrollers have to support intelligent interfaces such as serial interfaces, Lin and so on.
CIP is ideal for this kind of application. A control scheme can be implemented with an arithmetic block in hardware. An otherwise software-intense PID controller can be implemented easily, and additional interfaces such as op amps and fast switching comparators can be interconnected with each other.
Also the fine tuning of overcurrent protection and safety features is possible. The PWM output controlling the transistors can now enable and disable the signal without interruption supporting the best system performance. The microcontroller solely configures and monitors the functionality and can focus its performance on serial communications or other tasks.
It should be noted that more and more glue logic is integrated into 8bit microcontrollers. This combinatorial logic cell (CLC) consists of gates and flip-flops, which allow peripherals to be internally connected to each other. The regulation scheme can be interconnected as feedback via AND or OR gates, timers, PWMs, analogue peripherals, ADC sampling and so on. This flexibility opens up new methods that are not possible with a digital domain software flow control.
These logic cells will also be active while the CPU remains in a sleep mode. Thanks to interrupts generated in the logic cell, the hardware can be activated which optimises quiescent current time and hence power consumption.
Another example is an ultrasonic sensor. The amplitude and timing of the signal must be evaluated and determined accurately. The pulse duration is known but the exact time of the pulse arrival is unknown. This kind of task can be implemented with special asics or as in this case with smart core independent peripherals.
Another key requirement of systems being measured relates to the signal generated by the sensor being relatively small and needing to be amplified to provide reliable measurement data.
The intelligent analogue approach with CIP differs from previous concepts. The fact that analogue peripherals can be interconnected inside the chip means the number of external pins can be reduced, which allows the use of smaller and more affordable microcontrollers. This also means that the entire system functionality can be fully automated.
A built-in op amp boosts the signal being measured, so it can be compared with an adjustable threshold value from the built-in DAC. The output starts a hardware timer, which, by using an adjustable delay of the ADC module, can trigger exactly at that time. A CLC will be in charge for that.
Thus the best possible desired time for the measuring signal can be filtered out. Therefore, for the maximum amount of time the MCU can stay in low-power mode and only collect the measured value.
For serial interfaces in systems of this type, Lin is commonly used, and supported by a dedicated Lin uart. Other low cost and high data rate serial protocols are also used, for example PSI5 or Sent. Dedicated hardware modules are less common to support these emerging protocols, but again CIP can be used to interconnect these blocks to build a smart serial communications controller such as a PSI5-capable system, as shown in the diagram.
Conclusion
Complex control and sensing problems are not necessarily solved best in software neither will their power consumption. In highly optimised systems, core independent peripherals help to reduce power consumption. In addition, applications can be supported with an easy to use, cost effective 8bit microcontroller.
Stefan Kouba is European marketing manager for Microchip’s automotive products group
