Automotive body electronic control system solution based on 16-bit controller

Publisher:huanliLatest update time:2010-06-21 Keywords:MCU  MC68HC9S12DP256  MC33989  MC33993  CAN Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

As the complexity of automotive body control applications increases, the performance requirements for 16-bit microcontrollers (MCUs) are also increasing. Door control, seat adjustment, interior lighting and air conditioning systems that were previously controlled mechanically are now electronically controlled. A large number of dedicated semiconductor solutions provided by many semiconductor manufacturers, including Motorola, make these new electronic control applications possible. These new solutions not only provide the necessary control functions, but also provide advanced diagnostic capabilities that old mechanical systems cannot provide. Consumers hope that the control system in new cars can promptly issue alarm information for any system failures in the car.

This article introduces Motorola's MC9S12DP256 16-bit MCU and several peripheral IC products that are designed to withstand the harsh environments common in automotive systems. In addition, the advanced diagnostic functions provided by these products are discussed in detail. Figure 1 shows a block diagram of the solution used.

Figure 1

Power System

The power system is one of the most important subsystems in any automotive system design. Overall power consumption, battery reverse polarity protection, vehicle tripping, vehicle noise and vehicle sleep power are all factors that must be considered. Even the best system will not function properly if the power design is poor. Motorola provides intelligent power semiconductor products that can well manage all aspects of the power subsystem.

Motorola's system-on-chip (SBC) MC33989 has two power rectifiers to provide power for the MCU and peripheral devices. The chip also provides a CAN interface with a speed of 1 megabit, 4 high-voltage wake-up inputs and system protection functions. This intelligent semiconductor device can provide all the necessary system voltages. It has a low-noise 200mA rectifier inside to power the MCU subsystem. In addition, there is a device to control the external pass transistor to power the peripheral devices. This external pass transistor allows the secondary power supply to be adjusted to meet the power consumption limit requirements required for each special application. The secondary power supply can also cut off the power supply of the selected peripheral devices as required, thereby achieving the purpose of reducing power consumption.

The input power comes directly from the vehicle battery. Only an external diode is needed to achieve the purpose of battery polarity protection. SBC can complete protection actions under all overvoltage conditions. The application of power MOSFET process technology also enables this device to work normally when the battery voltage is as low as 4.5V, and it can output a battery fault alarm signal when the battery voltage is as low as 3V. The power system also has an over-temperature protection function. When the temperature reaches 160 degrees Celsius, it will perform internal thermal shutdown processing, and an alarm signal will be output when the temperature is 130 degrees Celsius. In addition, SBC can also provide a low-power sleep mode, in which the system current can be reduced to 40μA.

CAN transceiver

In addition to providing system power, the SBC also integrates a 1-Mbaud CAN transceiver. The transceiver has functions such as master state timeout detection, internal thermal protection, and CAN+ and CAN- input short circuit protection. The transceiver also has protection for the CAN+ and CAN- inputs against jump start, reverse battery connection, and short circuit to power or ground.

The 4 high-voltage wake-up inputs provide a powerful wake-up function. The maximum withstand voltage of these wake-up inputs can reach 40V. The pull-up source of the input can be generated on the chip. Since only the pull-up source is needed to detect the change of the switch input at any time, the power consumption can be reduced. The device also has a periodic wake-up function. In addition, the SBC also provides reset regulation and low-voltage detection functions for the MCU.

Multi-switch detection interface

Due to the need for special contact wetting currents and circuit fault detection functions, automotive electronic equipment requires highly complex input sensing circuits to detect switch states. Motorola's multi-switch detection interface (MSDI) device MC33993 is designed for this purpose.

Systems that require a large number of switch interfaces have many discrete components that take up a lot of space on standard printed circuit boards and must be tested for solder joint integrity. Integrated solutions can reduce the number of solder joints, take up less space, and provide a wider operating voltage, so they have greater flexibility. MSDI devices perform switch detection functions and can detect the open and closed states of up to 22 switch contacts. These detected open and closed states are then transmitted to the MCU through a high-speed serial link. Protection against transient interference can be achieved by adding a suitable electrostatic discharge capacitor at the input. Similarly, all inputs have reverse battery, jump start and load removal protection functions.

The MSDI also features selectable wetting currents. These internal current sources significantly reduce system component count and enable the use of metal or rubber switches. The large wetting currents used to detect metal switches can be selectively used during the detection process, thereby reducing power consumption. The internal current sources allow the inputs to be used as power supplies for light loads such as sensors, LEDs, or MOSFET gates. This approach further enhances system design performance by allowing these inputs to be used for other purposes when switch detection is not required.

High-impedance analog circuits are particularly susceptible to noise from other signals on the circuit board. Shortening the analog signal path and allowing the device to buffer the signal can reduce this effect. The MC33993 has powerful analog interface capabilities. Compared with traditional systems, this approach can reduce system wiring and failure modes. In addition, the MC33993 also integrates a 22-to-1 analog multiplexer to improve device performance. Channel selection is achieved through a high-speed serial link. The device not only provides advanced switch diagnostics, but also allows the use of analog sensor interfaces and ladder impedance interfaces.

MCU output circuits cannot directly drive automotive loads, and integrated circuits such as lamps, relays, motors, range meters, and LED drivers are also required. These special input interface devices also provide protection and error detection functions.

Output system

After the power system and input adjustment are confirmed, the output system must be considered. Many automotive loads cannot be directly driven by MCU or low current interface devices, including motors and lights. Relays or mechanical switches are the main high current switching devices in today's automotive body control structures. Due to the low cost and mature design of electromagnetic systems, many system architects are still happy to use them. However, the use of electromagnetic systems will cause many problems, such as:

1. The limited life of mechanical contacts limits the switching frequency of the relay. Since the contacts have a certain inertia when opening or closing, there will be a certain degree of jump before stabilizing to the next state. This jump limits the maximum operating frequency. If this frequency is exceeded, the life of the relay will be greatly shortened.

2. The electromagnetic system does not have diagnostic capabilities. The reliability of these devices is a big issue in the harsh automotive environment.

These loads can be easily integrated into the system using drivers designed specifically for these loads. The MC33888 switch with 4 high-side and 8 low-side switches provided by Motorola is designed specifically for driving automotive loads. This device can directly control 4 high-side loads with a power of up to 60W and 8 low-side loads with a small current (2.5W). The MC33888 device also has built-in functions for handling surge currents associated with incandescent lamps. As can be seen from Figure 2, the surge current caused by incandescent lamps can reach 10 to 15 times the normal operating current, which will cause great problems for systems that do not have these large surge current handling circuits. The most common measure for this type of load is to trigger the overcurrent protection circuit to cut off these loads.

Figure 2

[page]

MC33888 solves this problem well. It uses a startup timer to allow the incandescent lamp to preheat before the overcurrent protection circuit works. The startup of the overcurrent protection circuit requires detecting the state and pulse width signal of adjusting the output driver to the acceptable level of the device. Figure 3 shows the action waveform of the overcurrent protection. Complete battery reverse polarity protection, load dumping protection and low power consumption characteristics all help to reduce system complexity and reduce the number of external components. Diagnostic functions include load open circuit detection, short circuit detection and overtemperature detection. As an additional protection function, the device also has a built-in watchdog timer that can be used to shut down the device when the communication between the device and the MCU is interrupted. The control of the device is implemented through a high-speed serial interface, thus greatly reducing the number of MCU pins required.

Electronic Motor Control

The last issue to consider is electronic motor control. The MC33887 motor driver is well suited for this task. It is a complete H-bridge driver. The device has a continuous current drive capability of more than 5A, making it ideal for lock motors, antenna motors, or wiper pumps. The MC33887 also features high-side current sensing feedback. The high-side current sensing feedback function can correct the motor drive frequency and duty cycle based on real-time motor current feedback. Just like the lamp driver, it can automatically pulse-width modulate the output when an overcurrent condition is detected.

Figure 3

The MC33887 device provides full control over the H-bridge activation direction and interrupt control of the load.

Embedded emulator

Specifically designed for complex automotive electronic applications, the MC33993, MC33887 and MC33888 devices provide solutions with advanced performance and diagnostic capabilities.

Complex multi-pin MCUs often cause development problems. The MC9S12DP256 provides a single-wire background debug interface that facilitates extensive debugging in an automotive environment without the difficulties commonly encountered when using traditional circuit embedded emulators. This interface can also be used to program the main flash memory at the end of the production line or even to perform reprogramming operations in the vehicle.

Modern automotive microcontrollers often use flash memory to store the main operating program. The best way to program flash memory is to program the main program into the complete electronic control module after final assembly, which can effectively avoid the risks and delays compared to having a third party program the main program into the MCU before the module is assembled. Programming the main program into the MCU through a simple serial interface is completed after the module is assembled, usually during final testing. Some manufacturers use inexpensive stand-alone programmers to complete this operation, while others integrate the programming operation into the test equipment at the end of the production line.

Motorola's related devices provide a single-wire background debugging interface for flash programming, verification and general debugging operations. When the device is working normally, the serial communication pin is pulled high during reset, so the background system is not activated. When a programmer or debugging system is connected to this pin, the pin will be pulled low during reset, forcing the MCU to enter an active background mode instead of starting the application. To facilitate debugging, a host system can be connected to the target MCU system when the device is working normally, so that the contents of the flash memory or registers can be monitored without interfering with the operation of the device. The connected debugging system can also replace the control of the MCU to read and write CPU registers, set hardware breakpoints or trace single instructions.

Traditional circuit embedded emulators usually require 30 to 40 connections to the target system, while the background debug interface mentioned above only requires 2 to 4 connections. A single BKGD communication signal and a common ground are required. Adding a reset signal makes it easier for the host to force and control the system reset, and in some cases adding VDD allows the debug fixture to "steal" power from the target system. This simple interface provides automotive electronics designers with debug access to the MCU installed in the electronic control module of a sports car. Many problems can only be discovered through debugging when the car is running under normal road conditions.

Memory Programming

The most important factors associated with flash programming are speed and convenience. Programming speed depends on the programming time of the flash cells and the data transfer speed from the programmer to the target MCU, of course, there are some other factors, such as the time to erase the array before programming, and the time to verify the success of the programming operation. The MC9S12DP256 takes 45ms to program any 16-bit word, but a burst programming operation allows any additional words in the same row of 32 words of flash to be programmed at a speed of 20ms. In theory, a single-wire background debug interface can transmit a word of information in 27ms, which is slightly slower than the actual programming time of flash. Actual programming also requires additional task overhead, such as verification overhead. The stand-alone programmer tool SCBDMPGMR12 can complete the erase, program and verify operations of 256KB flash in slightly less than 10s.

Verification is one of the major factors that cause overhead. Retransmitting all the data to perform word-by-word verification will double the programming time. A quick way is to perform a CRC calculation when the data is programmed into the flash, and then reread the flash contents after the entire flash is programmed to verify the CRC value. This operation can be performed at full bus speed and does not require retransmitting data.

Separating the data transfer to the target so that it is done before the data is programmed into the flash memory will also double the programming time. A better approach is to perform the data transfer in parallel with the programming operation. Typically, the programming algorithm is sent to the target MCU first, which manages the received data and puts it into a RAM buffer, which then controls the erase and programming operations. The programming algorithm uses two data buffers to receive the data to be programmed into the flash memory. When the first buffer is full of data, the programming algorithm begins programming the data into the flash memory while the new data is loaded into the second buffer. A background interface can be used to receive the data and write it to the RAM without interfering with the work of the target CPU, which reads the data from the other buffer and programs it into the flash memory.

The flash memory in the MC9S12DP256 is divided into four independent 64KB blocks, so erase and program operations can be performed independently on the four blocks. In the case of background debug-based flash programming, it is not practical to try to interleave programming operations of independent arrays because the data transfer speed is slightly slower than the average word programming speed of flash memory, but it is feasible to perform bulk erase operations on all four blocks in parallel.

Background access provides an extremely convenient way to program the flash memory for the first time, but some users still want to use other system buses such as CAN, J1850 or serial interface buses to complete all field reprogramming operations. This can be easily done by including a suitable bootloader program in the main application. In response to some special code from one of the buses in the finished car, the bootloader should be able to erase the flash memory and accept new programming data.

Keywords:MCU  MC68HC9S12DP256  MC33989  MC33993  CAN Reference address:Automotive body electronic control system solution based on 16-bit controller

Previous article:A car door lock hardware and software design based on fingerprint recognition technology
Next article:Design and Analysis of Inverter Circuit in Automotive HID Electronic Ballast

Recommended ReadingLatest update time:2024-11-16 20:37

EM78156 MCU Structure
Main performance characteristics of EM78156 microcontroller Operating voltage 2.5V~5.5VOperating  frequency range: (1) Crystal oscillation form DC~36MHz (5V) (2) RC oscillation form DC~4MHz (5V)  Applicable temperature range 0℃~70℃  Low power consumption: 2mA, 5V/4MHz; 15μA, 3V/32HKz; 1μA at SLEE.  According to t
[Microcontroller]
Implementation of ADC analog watchdog function in STM8 microcontroller
  Everyone knows the function of a watchdog, but what is this simulated watchdog?   Simply put, this analog watchdog can monitor the data sampled by ADC in real time. When the sampled data value is less than the set minimum value or greater than the set maximum value, the microcontroller will trigger an ADC interrup
[Microcontroller]
Implementation of ADC analog watchdog function in STM8 microcontroller
Infineon’s next generation automotive MCU will be available for sampling by the end of 2023
According to news on December 1, Infineon stated that the next generation Aurix microcontroller will use embedded non-volatile memory, specifically resistive random access memory (RRAM), instead of embedded flash memory (eFlash), and will be used in Manufactured on TSMC's 28nm node. It is reported that samples of th
[Automotive Electronics]
Clock information display system based on single chip microcomputer and GPS
GPS (global positioning system) is a system that uses information transmitted by 24 GPS earth satellites in the United States to provide positioning, navigation, timing and other services. Since the GPS system was opened to the world for free in 1993, it has been widely used in various industries around the world. T
[Microcontroller]
Clock information display system based on single chip microcomputer and GPS
Single chip microcomputer internal and external resource operation chapter digital tube static display
    First, let's understand the display principle of digital tube: (Source of this image: Baidu)                  The digital tube displays by lighting up the internal light-emitting diodes. A digital tube has 10 pins. It takes 7 small segments to display an 8, plus a decimal point, so there are a total of 8 small li
[Microcontroller]
Single chip microcomputer internal and external resource operation chapter digital tube static display
Design of digital acquisition circuit for PSD output signal based on Atmega16 single chip microcomputer
According to the working principle and output characteristics of high-precision photoelectric position sensitive detector (PSD), this paper introduces a design scheme of PSD output signal digital acquisition circuit based on single-chip microcomputer technology. The digital conversion and acquisition of PSD output ana
[Microcontroller]
Design of digital acquisition circuit for PSD output signal based on Atmega16 single chip microcomputer
IC design, foundry and packaging and testing rankings: When will the global semiconductor market recover?
Since the second half of 2018, some institutions have predicted that the global semiconductor industry will enter a downward cycle. Due to the Sino-US trade war, the Japan-Korea war, the decline in demand for automobiles, consumer electronics and other products, coupled with the lack of innovation in the new iPhone an
[Embedded]
IC design, foundry and packaging and testing rankings: When will the global semiconductor market recover?
The Logic Design of the Interface between MCS-51 Single Chip Microcomputer and FPGA
0 Introduction FPGA is a new type of programmable logic device that can replace all existing microcomputer interface chips and realize multiple functions such as memory and address decoding in microcomputer systems. It has higher density, faster working speed and greater programming flexibility, and is wide
[Microcontroller]
Latest Automotive Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号