Chip startup mode selection module, method, chip module and electronic device

Through the design of the chip startup mode selection module, the selector MUX and the register are used to store the startup mode information, which realizes the flexible configuration of the chip PIN pins, solves the problem of inflexible utilization of PIN pin resources in the existing technology, and improves the chip's reliability. Adaptability and functional diversity.

CN118605957BActive Publication Date: 2024-10-22HUNAN ADVANCECHIP ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411078897.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-22
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

The startup mode of the existing chip is determined by the level of the fixed PIN pin, which results in inflexible resource utilization of the PIN pin and cannot be configured according to the needs of different applications, limiting the flexibility of the chip's PIN pin selection.

Method used

Design a chip startup mode selection module that allows arbitrary configuration of the PIN pins that determine the chip startup mode through the selector MUX, registers and control units, and uses multiple PIN pins and registers to store the information and level signal relationships corresponding to the startup mode. , to achieve flexible startup mode selection.

Benefits of technology

It improves the flexibility of chip PIN selection, allowing users to configure the PIN pins in startup mode as needed, avoiding resource occupation by other functions and enhancing the adaptability of the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605957B_ABST
    Figure CN118605957B_ABST
Patent Text Reader

Abstract

This application discloses a chip boot mode selection module, method, chip module, and electronic device, including a selector MUX, whose input terminals are respectively connected to multiple PIN pins of the chip, and whose output terminals are provided with multiple MPIN pins; a first register, whose control terminal of the selector MUX is connected to the first register to obtain the level of the PIN pin corresponding to the boot mode and output the corresponding MPIN level signal; a second register; and a control unit, whose first input terminal is connected to the multiple MPIN pins of the selector MUX, and whose second input terminal is connected to the second register to select the corresponding boot mode according to the MPIN level signal. This allows for arbitrary configuration of the PIN pins that determine the chip boot mode, improving the flexibility of chip PIN pin selection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip startup, and in particular to a chip startup mode selection module, method, chip module and electronic device. Background Art

[0002] The boot mode of existing chips is determined by the level of the fixed PIN pin of the chip, but the resources of the chip PIN pin are very limited, and each PIN pin can multiplex multiple functions. If a pin is determined to be used for the selection of the boot mode, then the other functions of the pin will not be enabled.

[0003] In summary, the existing chip startup mode is determined by the level of a fixed PIN pin and cannot be flexibly configured according to the needs of different applications, resulting in poor flexibility in chip PIN pin selection. Summary of the invention

[0004] The present application proposes a chip startup mode selection module, method, chip module and electronic device, which can arbitrarily configure the PIN pin that determines the chip startup mode, thereby improving the flexibility of chip PIN pin selection.

[0005] According to the chip startup mode selection module of the first aspect embodiment of the present application, it is used to connect the chip to be started, and multiple PIN pins are arranged on the chip, including: a selector MUX, the input end of the selector MUX is respectively connected to the multiple PIN pins of the chip, and the output end of the selector is provided with multiple MPIN pins; a first register, used to store PIN pin information corresponding to the startup mode, the control end of the selector MUX is connected to the first register for obtaining the level of the PIN pin corresponding to the startup mode and outputting the corresponding MPIN level signal; a second register is used to store the correspondence relationship data between the MPIN level signal and the startup mode; a control unit, the first input end of the control unit is connected to the multiple MPIN pins of the selector MUX, and the second input end of the control unit is connected to the second register for selecting the corresponding startup mode according to the MPIN level signal.

[0006] According to some embodiments of the present application, both the first register and the second register are set in FLASH.

[0007] According to some embodiments of the present application, the first register and the second register are both set in the OTP.

[0008] According to some embodiments of the present application, the control unit includes a third register and a decoding module, the input end of the third register is connected to the plurality of MPIN pins for storing the MPIN level signal, the output end of the third register is connected to the first input end of the decoding module, the second register is connected to the second input end of the decoding module, and the decoding module is used to select a corresponding startup mode according to the MPIN level signal.

[0009] According to some embodiments of the present application, a fourth register is further included, wherein the fourth register is used to indicate a valid state of the startup mode selection process, and the fourth register is connected to a third input terminal of the control unit.

[0010] According to the second aspect of the present application, the chip startup mode selection method includes the following steps:

[0011] Acquire PIN level selection data, where the PIN level selection data is used to indicate PIN pin information corresponding to the storage startup mode;

[0012] Acquire the level of the PIN pin corresponding to the startup mode according to the PIN level selection data and output the corresponding MPIN level signal;

[0013] Acquiring corresponding relationship data, where the corresponding relationship data is used to indicate the corresponding relationship between the MPIN level signal and the startup mode;

[0014] A start signal corresponding to the start mode is output according to the MPIN level signal and the corresponding relationship data.

[0015] The chip module according to the third aspect of the present application includes the above-mentioned chip startup mode selection module.

[0016] An electronic device according to an embodiment of the fourth aspect of the present application includes the above-mentioned chip module.

[0017] The chip startup mode selection module, method, chip module and electronic device according to the embodiments of the present application have at least the following beneficial effects:

[0018] In the implementation mode of the present application, the PIN pin information corresponding to the startup mode is stored through the first register, and the corresponding relationship between the MPIN level signal and the startup mode is stored through the second register. The selector MUX can know which PIN pins of the chip determine the startup mode according to the first register, read the level of the PIN pin that determines the startup mode and output the corresponding MPIN level signal; the control unit can know the corresponding relationship between the MPIN level signal and the startup mode according to the second register, and select the corresponding startup mode according to the MPIN level signal. The present application can arbitrarily configure the PIN pin that determines the startup mode of the chip, and only needs to configure the data of the first register and the second register in advance, which can improve the flexibility of the chip PIN pin selection.

[0019] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0021] Figure 1 A schematic diagram of a chip startup mode selection module in an embodiment of the present application;

[0022] Figure 2 This is an overall flow chart of the chip startup mode selection module in the embodiment of the present application;

[0023] Figure 3 This is a schematic diagram of an example of a chip startup mode selection module in an embodiment of the present application;

[0024] Figure 4 This is a flowchart of an example of a chip startup mode selection module in an embodiment of the present application;

[0025] Figure 5 This is a flowchart of a chip startup mode selection method in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0027] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0028] In the description of this application, "a plurality" means more than two. If there is a description of "first" or "second", it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0029] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0030] Reference Figure 1 As shown, a chip startup mode selection module is used to connect a chip to be started, and a plurality of PIN pins are arranged on the chip, including: a selector MUX, a first register, a second register and a control unit. Specifically, the input end of the selector MUX is respectively connected to a plurality of PIN pins of the chip, and a plurality of MPIN pins are arranged at the output end of the selector; the first register is used to store the PIN pin information corresponding to the startup mode, and the control end of the selector MUX is connected to the first register to obtain the level of the PIN pin corresponding to the startup mode and output the corresponding MPIN level signal; the second register is used to store the corresponding relationship data between the MPIN level signal and the startup mode; the first input end of the control unit is connected to the plurality of MPIN pins of the selector MUX, and the second input end of the control unit is connected to the second register to select the corresponding startup mode according to the MPIN level signal.

[0031] In the implementation mode of the present application, the PIN pin information corresponding to the startup mode is stored through the first register, and the corresponding relationship between the MPIN level signal and the startup mode is stored through the second register. The selector MUX can know which PIN pins of the chip determine the startup mode according to the first register, read the level of the PIN pin that determines the startup mode and output the corresponding MPIN level signal; the control unit can know the corresponding relationship between the MPIN level signal and the startup mode according to the second register, and select the corresponding startup mode according to the MPIN level signal. The present application can arbitrarily configure the PIN pin that determines the startup mode of the chip, and only needs to configure the data of the first register and the second register in advance, which can improve the flexibility of the chip PIN pin selection.

[0032] In this embodiment, the PIN pin refers to the external pin of the chip, and the chip has n pins including PIN0, PIN1...PINn. The input end of the selector MUX is respectively connected to the multiple PIN pins of the chip, which refer to a pin of the input end of the selector MUX, which is respectively connected to PIN0, PIN1...PINn. The MPIN (MODE-PIN) pin is the output pin of the selector MUX. The selector MUX has m MPIN pins including MPIN0, MPIN1...MPINm, where m is less than or equal to n. The selector MUX reads the level of the corresponding PIN pin and outputs the corresponding level signal through the MPIN pin according to the PIN pin information corresponding to the startup mode provided by the first register. It should be understood that the PIN pin information corresponding to the startup mode, that is, which PIN pins of the chip determine the startup mode, is determined according to the register value of the first register. Similarly, the correspondence between the MPIN level signal and the startup mode is determined according to the register value of the second register.

[0033] In some embodiments of the present application, the first register and the second register can be set in FLASH or in OTP. When placed in FLASH, the configuration of the register can be modified multiple times, further improving flexibility, while when placed in OTP, it can only be modified once, which can improve security and stability. Users can place registers in different storage components according to actual needs.

[0034] In some embodiments of the present application, the control unit in the embodiments of the present application includes a third register and a decoding module, the input end of the third register is connected to multiple MPIN pins for storing MPIN level signals, the output end of the third register is connected to the first input end of the decoding module, the second register is connected to the second input end of the decoding module, and the decoding module is used to select the corresponding startup mode according to the MPIN level signal.

[0035] In this embodiment, the function of the third register is to store the MPIN level signal, that is, to record the MPIN level state of the selector MUX and feed it back to the decoding module. The decoding module decodes the MPIN level signal according to the correspondence between the MPIN level signal in the second register and the startup mode to obtain the startup mode configuration.

[0036] In some embodiments of the present application, a fourth register is further included, and the fourth register is used to indicate the effective state of the startup mode selection process, and the fourth register is connected to the third input terminal of the control unit.

[0037] In this implementation, the fourth register is a register indicating the effective state of the startup mode. The decoding module can determine whether the startup mode selection process is required by reading the value of the fourth register. If it is valid, proceed to the next step. If it is invalid, directly enter the default startup state to avoid the startup stuck state.

[0038] It should be noted that, similar to the first and second registers, the third and fourth registers can be set in FLASH or in OTP.

[0039] refer to Figure 2 As shown, the working process of the chip startup mode selection module in the embodiment of the present application is as follows:

[0040] The chip is powered on and the startup mode is selected;

[0041] The decoding module reads the fourth register to determine whether it is valid. If not, it directly enters the default startup mode. If valid, it proceeds to the next step.

[0042] The selector MUX reads the first register and the decoding module reads the second register;

[0043] The selector MUX reads the level of the PIN pin corresponding to the startup mode according to the value of the first register and outputs the corresponding level signal through the MPIN pin;

[0044] The decoding module reads the level state of MPIN through the third register, and decodes according to the correspondence between the MPIN level signal and the startup mode in the second register. If there is no startup mode corresponding to the current MPIN level signal after decoding, the default startup mode is entered; if there is a startup mode corresponding to the current MPIN level signal, the selected startup mode is entered.

[0045] The following is a detailed description of the specific working principle of the application using a 255-pin chip as an example:

[0046] refer to Figure 3 As shown, the chip in the embodiment of the present application has 255 PIN pins, and the startup mode is selected by 3 PIN pins, so the selector MUX has three MPIN pins, MPIN0, MPIN1 and MPIN2. The values ​​of each register in the present application are all stored in OTP:

[0047] In the fourth register, 0x55 indicates valid; other values ​​indicate invalid.

[0048] The first register is a register group, including the MPIN0 selection register, the MPIN1 selection register and the MPIN2 selection register, as follows:

[0049] MPIN0 selection register: 0x00, indicating the selection of PIN0, 0x01 indicating the selection of PIN1... 0xFF indicating the selection of PIN255;

[0050] MPIN1 selection register: 0x00, indicating the selection of PIN0, 0x01 indicating the selection of PIN1... 0xFF indicating the selection of PIN255;

[0051] MPIN2 selection register: 0x00, indicating the selection of PIN0, 0x01 indicating the selection of PIN1... 0xFF indicating the selection of PIN255;

[0052] The second register: 0x00 means MPIN0=0, MPIN1=0, MPIN2=0, and the corresponding boot mode selects SCI boot; 0x01 means MPIN0=0, MPIN1=0, MPIN2=1, and the corresponding boot mode selects SPI boot; 0x02 means MPIN0=0, MPIN1=1, MPIN2=0, and the corresponding boot mode selects CAN boot; 0x03 means MPIN0=0, MPIN1=1, MPIN2=1, and the corresponding boot mode selects CANFD boot; other values ​​select the default boot mode (FLASH boot).

[0053] refer to Figure 4 As shown, the specific process of this embodiment is as follows:

[0054] The decoding module first reads the configuration of the fourth register as 0x55, and the startup mode is valid;

[0055] The selector MUX reads the MPIN0 selection register configuration as 0x00, the MPIN1 selection register configuration as 0x10, and the MPIN2 selection register configuration as 0x22, that is, the PIN pins for the chip to select the boot mode are PIN0, PIN16, and PIN34;

[0056] Read the level states of PIN0, PIN16 and PIN34, obtain PIN0=0, PIN16=1 and PIN34=1, output the level states of PIN0, PIN16 and PIN34 to the third register through three MPIN pins, and the third register is sent to the decoding module;

[0057] The decoding module reads the configuration of the second register. PIN0=0, PIN16=0, PIN34=0 selects SCIboot for boot mode; PIN0=0, PIN16=0, MPIN34=1 selects SPI boot for boot mode; PIN0=0, PIN16=1, MPIN34=0 selects CAN boot for boot mode; PIN0=0, PIN16=1, PIN34=1 selects CANFD boot for boot mode; other values ​​select the default boot mode (FLASH boot).

[0058] Therefore, according to PIN0=0, PIN16=1 and PIN34=1, the boot mode CANFD boot is selected.

[0059] In summary, this application allows users to decide which PIN pins are used for boot mode selection according to chip applications. The PIN pins that determine the boot mode can be flexibly configured to avoid using PIN pins corresponding to functions, making the chip PIN pin selection more flexible.

[0060] refer to Figure 5 As shown, the present application also relates to a chip startup mode selection method, comprising the following steps:

[0061] S101, obtaining PIN level selection data, where the PIN level selection data is used to indicate PIN pin information corresponding to a storage startup mode;

[0062] S102, acquiring the level of the PIN pin corresponding to the startup mode according to the PIN level selection data and outputting the corresponding MPIN level signal;

[0063] S103, obtaining corresponding relationship data, where the corresponding relationship data is used to indicate the corresponding relationship between the MPIN level signal and the startup mode;

[0064] S104 , outputting a start signal corresponding to the start mode according to the MPIN level signal and the corresponding relationship data.

[0065] The present application also relates to a chip module, comprising a chip and the chip startup mode selection module of the above embodiment.

[0066] The present application also relates to an electronic device, comprising the chip module of the above embodiment.

[0067] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A chip startup mode selection module, used to connect a chip to be started, wherein the chip is provided with a plurality of PIN pins, It is characterized in that include: A selector MUX, wherein the input end of the selector MUX is respectively connected to a plurality of PIN pins of the chip, and the output end of the selector is provided with a plurality of MPIN pins; A first register, used to store PIN pin information corresponding to the startup mode, the control end of the selector MUX is connected to the first register to obtain the level of the PIN pin corresponding to the startup mode and output a corresponding MPIN level signal; The second register is used to store the corresponding relationship data between the MPIN level signal and the startup mode; A control unit, wherein a first input end of the control unit is connected to a plurality of MPIN pins of the selector MUX, and a second input end of the control unit is connected to the second register for selecting a corresponding startup mode according to the MPIN level signal and the corresponding relationship data.

2. The chip startup mode selection module according to claim 1, It is characterized in that The first register and the second register are both set in FLASH.

3. The chip startup mode selection module according to claim 1, It is characterized in that The first register and the second register are both set in the OTP.

4. The chip startup mode selection module according to claim 1, It is characterized in that The control unit includes a third register and a decoding module, the input end of the third register is connected to the plurality of MPIN pins for storing an MPIN level signal, the output end of the third register is connected to the first input end of the decoding module, the second register is connected to the second input end of the decoding module, and the decoding module is used to select a corresponding startup mode according to the MPIN level signal.

5. The chip startup mode selection module according to claim 1, It is characterized in that It also includes a fourth register, which is used to indicate the effective state of the startup mode selection process, and the fourth register is connected to the third input terminal of the control unit.

6. A chip startup mode selection method used in the chip startup mode selection module according to any one of claims 1 to 5, It is characterized in that The following steps are involved: Acquire PIN level selection data, where the PIN level selection data is used to indicate PIN pin information corresponding to the storage startup mode; Acquire the level of the PIN pin corresponding to the startup mode according to the PIN level selection data and output the corresponding MPIN level signal; Acquiring corresponding relationship data, where the corresponding relationship data is used to indicate the corresponding relationship between the MPIN level signal and the startup mode; A start signal corresponding to the start mode is output according to the MPIN level signal and the corresponding relationship data.

7. A chip module, It is characterized in that It comprises a chip and a chip startup mode selection module as claimed in any one of claims 1 to 5.

8. A sub-device, It is characterized in that Comprising the chip module as claimed in claim 7.