Low-speed vehicle gauge MCU universal serial transmission peripheral interface

By designing a universal serial transmission peripheral interface for low-speed automotive MCUs, and unifying the configuration and synchronizing the encoding and decoding of different protocols, the problems of redundancy and complex configuration in automotive MCUs are solved, and hardware resources are reused and cost reduction are achieved.

CN118964267AInactive Publication Date: 2024-11-15WUXI MOTIONSILICON CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410997782.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The independent implementation of peripheral interface circuits in existing automotive MCUs results in redundant hardware resources and complex configuration processes, resulting in waste of resources and high costs.

Method used

Design a low-speed automotive-specific MCU universal serial transmission peripheral interface, and use the GTM universal timer module to synchronize time and angle to realize the encoding and decoding of different protocols, and process and output data through the arbitration module. , reduce hardware resource redundancy.

Benefits of technology

Effectively multiplex hardware circuits, reduce the cost of customized MCUs, improve configuration flexibility, and solve resource waste and complex configuration problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964267A_ABST
    Figure CN118964267A_ABST
Patent Text Reader

Abstract

The invention provides a universal serial transmission peripheral interface for a low-speed vehicle-gauge MCU (Microprogrammed Control Unit), which utilizes the thought of a universal serial interface to plan all vehicle-gauge-level serial data protocols as a whole, distinguishes different protocols according to configuration information and performs encoding and decoding in different formats. The key point is that a GTM universal timer module is used for synchronizing time and angle, controlling frame slots and time data, and synchronizing time information in the whole vehicle. According to the low-speed vehicle gauge MCU universal serial transmission peripheral interface, the expensive MCU customization cost can be reduced to the level of a universal MCU, the configuration flexibility of a system can be improved, and the problems of hardware resource redundancy and complex configuration process are solved, so that the purposes of multiplexing a hardware circuit, saving the cost, realizing on-demand configuration and completely using the hardware circuit resources are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive chip technology, and in particular to a low-speed automotive-grade MCU universal serial transmission peripheral interface. Background Art

[0002] As a customized circuit, MCU customizes the type of peripheral interface and the number of various peripherals according to the needs of customers in specific applications. The quantity of customized MCUs is usually not large, and the cost is high. In particular, the cost of automotive MCUs is higher. Various peripheral interfaces are an important part of MCU, such as CAN, LIN, PSI5, UART, I2C, SPI and other peripheral interface protocol implementation circuits.

[0003] In the prior art, each peripheral interface circuit is implemented separately, with its own set of internal input and output, internal decoding, internal encoding, internal cache, dedicated pins, etc., each occupying an independent configuration register space in SRAM, and each occupying an independent hardware circuit and cache. Therefore, for different application scenarios, some peripheral interface resources will inevitably be wasted, while other peripheral resources will face the embarrassing situation of insufficient use. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a low-speed automotive MCU universal serial transmission peripheral interface to solve the problems raised in the above background technology. The present invention solves the problems of redundant hardware resources and complex configuration process, and limited resources can be effectively utilized, thereby achieving the effect of multiplexing hardware circuits and saving costs.

[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions: a low-speed automotive MCU universal serial transmission peripheral interface, including the execution process of the universal peripheral interface:

[0006] S1. For the universal serial peripheral interface of the low-speed automotive MCU, after power-on, only the CPU needs to uniformly configure the expected serial module protocol type, so that the hardware circuit selects the required protocol identifier for the subsequent activation of sub-modules such as frame encoding and decoding;

[0007] S2. For protocols with fixed frame length format such as LIN and UART, the hardware circuit system identifies the Start to END identifiers by fixed length;

[0008] S3. For CAN, a protocol with non-fixed frame length format, the hardware circuit system synchronizes the END signal through the configuration of the CPU and the real-time query of the system to the status register, identifies the Start and END identifiers, and the clock synchronization signal is provided by the GTM general timer module for time slot synchronization or angle synchronization signal (required by the PSI5 protocol);

[0009] S4. For the original input code stream, the input and output arbitration module arbitrates the bus and selects the winning input signal. It recognizes that the data information in the interval from the Start to the END identifier is a complete frame of data. The hardware system circuit inputs the prepared data to the next frame processing module.

[0010] Furthermore, it also includes a frame data processing module, which is used to extract frame type data and frame control information data in valid frame information into a dedicated register.

[0011] Furthermore, the register decodes the valid load data in the complete frame and stores it in the RAM according to the address offset; the CPU can also configure the RAM to be used as a FIFO of a fixed size according to the type of the frame.

[0012] Furthermore, in the frame information extraction submodule and the decoding and receiving data submodule, the system hardware circuit will report the error interrupt and terminate the transmission in time according to the time slot configuration and frame type configuration if any mismatch error occurs, and apply for resending or terminate the module operation.

[0013] Furthermore, it also includes a system hardware circuit, which is used to encode the received information according to any serial peripheral protocol type configured by the CPU and then send it out.

[0014] Furthermore, the effective load data is read from the register or RAM or FIFO unit storing the data, and the data is encoded into the expected signal complete frame according to the expected protocol type, and arbitration comparison is performed through the arbitration module.

[0015] Furthermore, after winning the arbitration, the complete frame information is output to the bus through the output module.

[0016] Furthermore, the output module performs clock synchronization or angle synchronization on the complete frame information in segments according to the expected protocol type.

[0017] Furthermore, the time slot information is compared and synchronized with the time information to be provided. If they are consistent, they are output normally and a normal transmission interrupt is reported. If they are inconsistent, an error interrupt is reported.

[0018] Beneficial effects of the present invention:

[0019] 1. The low-speed automotive MCU universal serial transmission peripheral interface uses the idea of ​​universal serial interface to coordinate all automotive-grade serial data protocols, distinguish different protocols according to configuration information, and perform encoding and decoding of different formats. The GTM universal timer module is used to synchronize time and angle synchronization, control frame gaps and time data, and synchronize the time information throughout the vehicle. Ultimately, the problem of redundant hardware resources and complex configuration processes is effectively solved, thereby achieving the purpose of multiplexing hardware circuits.

[0020] 2. The low-speed automotive MCU universal serial transmission peripheral interface reduces the cost of expensive customized MCUs to the level of general-purpose MCUs, and can also improve the configuration flexibility of the system, enabling on-demand configuration and making the best use of hardware circuit resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 Input data frame recognition execution flow chart of the present invention;

[0022] Figure 2 This is a schematic diagram of a frame data processing module of the present invention;

[0023] Figure 3 This is a flow chart of the execution of the data output module of the present invention. DETAILED DESCRIPTION

[0024] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0025] See also Figures 1 to 3 The present invention provides the following technical solutions: a low-speed automotive MCU universal serial transmission peripheral interface, which uses the idea of ​​universal serial interface to coordinate all automotive-grade serial data protocol interfaces, distinguishes different protocols according to configuration information, and performs encoding and decoding of different formats. The key point is to use the GTM universal timer module to synchronize time and angle, control frame gaps and time data, and synchronize the time information in the entire vehicle. The specific execution process is as follows:

[0026] like Figure 1 As shown, for the universal serial peripheral interface of the low-speed automotive MCU, after power-on, only the CPU needs to uniformly configure the expected serial module protocol type, so that the hardware circuit selects the required protocol identifier for the subsequent activation of sub-modules such as frame encoding and decoding.

[0027] For protocols with fixed frame lengths, such as LIN and UART, the hardware circuit system identifies the Start to END identifiers by fixed length. For protocols with non-fixed frame lengths, such as CAN, the hardware circuit system synchronizes the END signal through the configuration of the CPU and the real-time query of the system to the status register. The clock synchronization signal for identifying the Start and END identifiers is provided by the GTM general timer module for time slot synchronization or angle synchronization signal (required by the PSI5 protocol).

[0028] For the original input code stream, an input / output arbitration module is required to arbitrate the bus and select the input signal that wins the arbitration.

[0029] The data information from the Start to END identifier is recognized as a complete frame of data, and the hardware system circuit inputs the prepared data into the next frame processing module.

[0030] Through the frame data processing module, the frame type data and frame control information data in the valid frame information are extracted to the dedicated register. The valid load data in the complete frame is decoded and stored in the RAM according to the address offset. According to the type of frame, the CPU can also configure the RAM to use as a fixed-size FIFO.

[0031] The CRC check submodule performs CRC calculation on the frame payload data or the entire frame information according to the frame type data and the frame control information data. If it matches the received check code, it reports a normal reception completion status interrupt. If it does not match, it reports a corresponding error interrupt.

[0032] In particular, in the frame information extraction submodule and the decoding and receiving data submodule, the system hardware circuit will report the error interrupt and terminate the transmission in time according to the time slot configuration and frame type configuration if any mismatch error occurs, and apply for resending or terminate the module operation.

[0033] For data transmission, the system hardware circuit can encode the received information according to any serial peripheral protocol type configured by the CPU and then send it out.

[0034] Read the payload data from the register, RAM or FIFO unit storing the data. Encode the data into the expected signal complete frame according to the expected protocol type, perform arbitration comparison through the arbitration module, and output the complete frame information to the bus through the output module after winning the arbitration.

[0035] The output module performs clock synchronization or angle synchronization (required for PSI5) in segments according to the expected protocol type for the complete frame information, that is, compares and synchronizes the time slot information with the time information to be provided. If they are consistent, it will be output normally and report a normal transmission interrupt. If they are inconsistent, an error interrupt will be reported.

[0036] This peripheral interface can reduce the cost of expensive customized MCUs to the level of general-purpose MCUs, and can also improve the system's configuration flexibility, enabling on-demand configuration and making the best use of hardware circuit resources.

[0037] The basic principles and main features of the present invention and the advantages of the present invention are shown and described above. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention.

[0038] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A low-speed automotive MCU universal serial transmission peripheral interface, characterized in that: Including the execution flow of the general peripheral interface: S1. For the universal serial peripheral interface of the low-speed automotive MCU, after power-on, only the CPU needs to uniformly configure the expected serial module protocol type, so that the hardware circuit selects the required protocol identifier for the subsequent activation of sub-modules such as frame encoding and decoding; S2. For protocols with fixed frame length format such as LIN and UART, the hardware circuit system identifies the Start to END identifiers by fixed length; S3. For CAN, a protocol with non-fixed frame length format, the hardware circuit system synchronizes the END signal through the configuration of the CPU and the real-time query of the system to the status register, identifies the Start and END identifiers, and the clock synchronization signal is provided by the GTM general timer module for time slot synchronization or angle synchronization signal (required by the PSI5 protocol); S4. For the original input code stream, the input and output arbitration module arbitrates the bus and selects the winning input signal. It recognizes that the data information in the interval from the Start to the END identifier is a complete frame of data. The hardware system circuit inputs the prepared data to the next frame processing module.

2. According to claim 1, a low-speed automotive MCU universal serial transmission peripheral interface is characterized in that: It also includes a frame data processing module, which is used to extract frame type data and frame control information data in valid frame information into a dedicated register.

3. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 2, characterized in that: The register decodes the valid load data in the complete frame and stores it in the RAM according to the address offset; the CPU can also configure the RAM to be used as a FIFO of a fixed size according to the type of the frame.

4. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 3, characterized in that: In the frame information extraction submodule and the decoding and receiving data submodule, the system hardware circuit will report the error interrupt and terminate the transmission in time according to the time slot configuration and frame type configuration, and apply for resending or terminate the module operation when any mismatch error occurs.

5. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 1, characterized in that: It also includes a system hardware circuit, which is used to encode the received information according to any serial peripheral protocol type configured by the CPU and then send it out.

6. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 5, characterized in that: Read the effective load data from the register or RAM or FIFO unit storing the data, encode the data into the expected signal complete frame according to the expected protocol type, and perform arbitration comparison through the arbitration module.

7. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 6, characterized in that: After winning the arbitration, the complete frame information is output to the bus through the output module.

8. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 7, characterized in that: The output module performs clock synchronization or angle synchronization on the complete frame information in segments according to the expected protocol type.

9. A low-speed automotive MCU universal serial transmission peripheral interface according to claim 8, characterized in that: The time slot information is compared and synchronized with the time information to be provided. If they are consistent, they are output normally and a normal transmission interrupt is reported. If they are inconsistent, an error interrupt is reported.

Citation Information

Patent Citations

  • Method for providing a generic interface and microcontroller having a generic interface

    CN104216312A

  • A method and a device for adapting a universal bus interface

    CN109189704A

  • High speed asynchronous serial communication controller to support a user defined serial communication protocol

    KR1020130019735A