Design of AMT handle ECU based on MC9S08DZ60

Publisher:心满意足Latest update time:2011-08-19 Keywords:MC9S08DZ60  ECU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In this design, the handle ECU can transmit the driver's driving intention to the AMT_ECU via the CAN bus. The AMT ECU controls the transmission to shift gears according to the message information transmitted by the handle ECU. At the same time, the AMT ECU can also transmit the current state of the transmission (such as gear state and fault state) to the shift handle circuit via the CAN bus. The driver and passengers select the current desired gear through the shift handle. The handle ECU performs input signal processing based on the handle position information transmitted by the Hall sensor, and sends the processed gear information to the AMT ECU via the CAN bus to transmit the driver's driving intention. The AMT ECU controls the transmission to shift gears according to the message information transmitted by the handle ECU. Since it has a single-chip microcomputer as a processing unit, it can communicate with the TCU via the CAN/LIN bus, which basically does not occupy the interface resources of the TCU. When there is a problem with the signal acquisition circuit, the single-chip microcomputer can diagnose itself, and even replace the TCU to handle simple faults [1]. The control circuit of this design has a simple structure, low cost and strong functions.

1 Hardware Design

The hardware circuit of this design is based on the MC9S08DZ60 microcontroller, which mainly includes the microcontroller peripheral circuit, power conversion circuit, switch output processing circuit and CAN communication circuit.

1.1 MCU Minimum System

Since the handle ECU system is small but fully functional, Motorola's 8-bit microcontroller MC9S08DZ60 is used. This microcontroller is small in size, low in cost, powerful in function, and has complete resources. It has a high performance-price ratio and is suitable for the functional requirements of the car handle shifting and the operating environment of the car. Its main resources include: a CAN module, a serial peripheral interface SPI module, two serial communication interface SCI modules, up to 24 channels of 12-bit A/D conversion modules, a basic clock module, 60 KB on-chip Flash, 4 KB on-chip RAM, 2 KB E2PROM, watchdog timer (COP Watch-dog), and an I2C bus module and multiple timers, counters, etc. The controller uses PLL phase-locked loop technology and can generate a bus frequency of up to 40 MHz. Its unique on-chip simulation/debugging module (BDC) greatly simplifies the design, thereby ensuring the application of MC9S08DZ60 in this design [3]. Its peripheral circuit is shown in Figure 1.

MCU peripheral circuit

1.2 Power Module

The module uses the 7805 (U1) chip to convert +12 V to +5 V, and the MIC29510-3.3 (U2) chip to convert +5 V to +3.3 V, thus meeting the power supply of the entire system, including the power supply of the microcontroller. The circuit diagram is shown in Figure 2.

1.3 Switching quantity processing module

In order to make the switch input signal more reliable, each switch input must be processed by pull-up, current limiting, etc. before being sent to the microcontroller. When the handle selects the desired gear and enters the magnetic grid range of the Hall sensor, the high-level signal output by the sensor is +3.3 V; the magnetic grid range of the other sensor input ends is not connected, and the output low-level signal is 0 V. The Hall sensor input voltage used in this design is +12 V.

1.4 CAN communication circuit

This design is a node of the vehicle distributed control system, and communicates with other vehicle controllers using CAN network communication. This design collects system status and uploads it to the vehicle controller through CAN command messages for operation. The CAN transceiver uses the PCA82C250 transceiver from PHILIPS. Its hardware circuit is shown in Figure 3.

At the same time, this design also reserves a switch output circuit, which has the same function as the CAN bus. Its circuit is shown in Figure 4, which includes the actuator drive circuit.

Switching output circuit

2 Software Design

The system software design mainly includes two modules: data acquisition and storage and CAN communication.

2.1 CAN communication module

The MC9S08DZ60 integrates a CAN controller that uses the CAN 2.0A/B protocol, including five first-in-first-out receive registers and three transmit registers that use local priority. In terms of ID identification, a 64-bit mask register is provided, which can be divided into two 32-bit full-value registers, or four 16-bit and eight 8-bit registers, making message addressing on the bus more flexible and convenient. To meet low power requirements, the module provides three modes: sleep, power-down, and MSCAN enable[5].

The data frame in the CAN bus consists of 7 different bit fields: frame start, arbitration field, control field, data field, CRC field, response field, and frame end. The length of the data field can be 0, but the frame encapsulated by the module does not exceed 8 bytes. According to the arbitration bit, it can be divided into standard frame (11 bit identifier) ​​and extended frame (29 bit identifier). The extended frame format includes 4 ID registers IRD0~IRD3, 8 data registers DSR0 and 1 data length register DLR, where the first bit of IRD0 is ID28 and the last bit of IRD3 is ID0. There are also signal identification bits SRR, IDE and RTR between the two [4].

2.2 CAN Communication Protocol

The communication of CAN bus adopts the calling polling method. Due to the limitation of CAN, the number of sub-nodes in each network should not exceed 1,000. Here, 10 bits are used as the ID of the source and destination devices. Because ID28 can only be 1, ID27~ID18 are specified as the frame source ID, and ID17~ID8 are specified as the frame destination ID. Because the communication needs to transmit more than 8 bytes of data, DSR0 is used as the total frame number register for transmitting multi-frame data, DSR1 is used as the current frame number register for transmitting multi-frame data, DSR2 is used as the frame function register, DSR3~DSR6 are used for data transmission, and DSR7 is used as the check register [2]. [page]

2.3 Programming

Initialize() completes the MCU hardware initialization (handle ECU initialization, application initialization, etc.). After power-on initialization, the MCU starts to collect the voltage signal of the I/O port gear and stores it in the on-chip storage unit. The CAN communication with the host will be completed in the form of interruption. Figure 5 shows the overall system flow.

The logic levels corresponding to each gear position are shown in Table 1.

After testing, the gear change information transmitted by the CAN bus is shown in Figure 6.

The experiment proved that the handle ECU can realize data collection and network communication under laboratory conditions and achieve the gear shifting target. The handle ECU using CAN bus technology can not only reduce costs and realize data sharing, but also improve the performance of AMT. Its maximum transmission speed of 1 Mb/s (within 40 m) makes the handle ECU have good real-time performance, high reliability and good operation.

Keywords:MC9S08DZ60  ECU Reference address:Design of AMT handle ECU based on MC9S08DZ60

Previous article:Design of a Simple Digital Oscilloscope Based on AT89S52 Single Chip Microcomputer
Next article:Design of street lamp simulation system based on STC89C52

Recommended ReadingLatest update time:2024-11-17 00:40

Let's talk about ECU gateway nodes in automotive embedded development
In automotive embedded development, the difficulty of developing ECU gateway nodes (GW: Gateway) will increase significantly, including the interpretation of time parameters. This article focuses on P2Client, ▲P2 = ▲P2Request + ▲P2Response, and N_As time parameters. 1 Background Assumption: Tester sen
[Embedded]
Let's talk about ECU gateway nodes in automotive embedded development
Italy's Alma uses VeriStand to implement HIL testing of automotive ECUs
“The combination of NI VeriStand and the NI PXI platform meets the needs of users for I/O, computing power, signal simulation and data analysis, and is fully open and modular.” –Enrico Corti, Alma Automotive. challenge: Develop a modular hardware-in-the-loop (HIL) test system for real-time simulation of engines an
[Test Measurement]
Italy's Alma uses VeriStand to implement HIL testing of automotive ECUs
Technical principle of electric vehicle monitoring platform system based on DSP
1 Introduction There are many electronic control units in electric vehicles, small internal space, and large environmental interference, which puts higher requirements on the control system and communication system. CAN is particularly suitable for communication between various electronic control units in elec
[Embedded]
Technical principle of electric vehicle monitoring platform system based on DSP
Fix Keil's cant execute C:\Keil\C51\BIN\A51.EXE
Symptom: After creating a project in KEIL, the following prompt appears during compilation: can't execute 'C:\Keil\C51\BIN\A51.EXE'   I found the following answer on Baidu Cause of error: The compiler of the KEIL program to be opened is installed in the C drive, that is, c:\keil. The user's KEIL is installed in
[Microcontroller]
Corelit's ultra-low power domestic SIT1043 CAN transceiver is used in automotive ECUs
ECU is the abbreviation of Electronic Control Unit, which refers to all electronic control systems on the car. With the increasing number of electronic components on new energy and self-driving cars, the circuits are becoming more and more complicated. Now the data exchange between multiple ECUs on the car is connec
[Embedded]
Corelit's ultra-low power domestic SIT1043 CAN transceiver is used in automotive ECUs
Toyota will provide the electric vehicle industry with free access to core electrification technology patents
Toyota Motor Corporation (hereinafter referred to as "Toyota") has decided to provide free use of Toyota's patents on vehicle electrification technologies such as motors, electronic controls (PCU), and system controls (including pending projects) as part of its measures to promote the popularization of electric vehicl
[Embedded]
Upstream and downstream linkage injects "core" power into the automotive industry
With the development of the "new four modernizations" of automobiles, autonomous driving chips will also become a new track for overtaking in the field of automotive chips. Under the current challenge of automotive chip shortage, accelerating the breakthrough innovation of AI chips is a severe reality that the automot
[Automotive Electronics]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号