技术领域technical field
本发明涉及一种汽车技术领域,尤其是涉及一种汽车点驱动系统中的单片机MCU延时复位电路及控制方法。The invention relates to the technical field of automobiles, in particular to a single-chip MCU delay reset circuit and a control method in an automobile point drive system.
背景技术Background technique
在低碳经济成为时代主流的背景下,电动汽车成为当前汽车发展的主要方向。电驱动系统是电动汽车的动力源泉,直接影响整车的性能,电动汽车用电驱动控制器能够很好识别驾驶员驾驶意图,能够快速响应加速以及制动等相应控制输出,而这一切是基于电机控制器中单片机MCU的相应功能,因此,单片机MCU能否可靠工作是判定整车系统是否稳定以及安全的关键因素。Under the background that low-carbon economy has become the mainstream of the times, electric vehicles have become the main direction of current automobile development. The electric drive system is the source of power for electric vehicles, which directly affects the performance of the vehicle. The electric drive controller for electric vehicles can well identify the driver's driving intentions, and can quickly respond to corresponding control outputs such as acceleration and braking, all of which are based on The corresponding functions of the single-chip MCU in the motor controller. Therefore, whether the single-chip MCU can work reliably is a key factor to determine whether the vehicle system is stable and safe.
对于目前已有技术中,大部分是采用单片机MCU对应的电源管理芯片,此电源芯片能够实现单片机MCU上电过程中延时复位功能,确保单片机MCU能够正常运行,正因为如此,一般此类电源管理芯片价格非常昂贵。For the current existing technologies, most of them use the power management chip corresponding to the single-chip MCU. This power chip can realize the delay reset function during the power-on process of the single-chip MCU to ensure the normal operation of the single-chip MCU. Because of this, generally this type of power supply Management chips are very expensive.
发明内容Contents of the invention
本发明主要是解决现有技术中具有延时复位功能电源管理芯片价格昂贵、提高了产品成本的问题,提供了一种汽车点驱动系统中的单片机MCU延时复位控制方法。The invention mainly solves the problem in the prior art that the power supply management chip with the delay reset function is expensive and increases the product cost, and provides a single-chip MCU delay reset control method in the automobile point drive system.
本发明的上述技术问题主要是通过下述技术方案得以解决的: 一种单片机MCU延时复位电路,包括MCU单元,还包括控制输出高低电平的开关控制单元、用于检测MCU单元是否上电的电源开启判定单元、进行延时控制的延时时间控制单元,MCU单元与开关控制单元连接,电源开启判定单元与延时时间控制单元相连,延时时间控制单元与开关控制单元相连。本发明次用几个分立器件搭配实现单片机延时复位功能,很好的解决了单片机复位问题,避免使用价格昂贵的专用芯片,保证产品稳定可靠的基础上,有效控制产品成本,提升了产品竞争力。Above-mentioned technical problem of the present invention is mainly solved by following technical scheme: A kind of single-chip microcomputer MCU delay reset circuit, comprises MCU unit, also comprises the switch control unit of control output high and low level, is used to detect whether MCU unit is powered on The power-on judging unit, the delay time control unit for delay control, the MCU unit is connected to the switch control unit, the power-on judgment unit is connected to the delay time control unit, and the delay time control unit is connected to the switch control unit. The present invention uses several discrete devices to realize the delay reset function of the single-chip microcomputer, which solves the problem of single-chip microcomputer reset well, avoids the use of expensive special chips, ensures stable and reliable products, effectively controls product costs, and improves product competition force.
作为一种优选方案,所述延时时间控制单元包括计时单元、延时判定单元、信号输出单元,计时单元与延时判定单元相连,延时判定单元与信号输出单元相连,电源开启判定单元与计时单元相连,信号输出单元与开关控制单元相连。本方案中计时单元在接收到电源开启判定单元信号后开始对延时时间进行计时,并实时将计时信息发送给延时判定单元。延时判定单元里设定有要求的延时时间,并对接收到的计时信息与要求的延时时间进行比较,判定是否达到延时要求。在计时时间达到要求的延时时间时控制信号输出单元工作,信号输出单元输出控制命令到开关控制单元。As a preferred solution, the delay time control unit includes a timing unit, a delay determination unit, and a signal output unit, the timing unit is connected to the delay determination unit, the delay determination unit is connected to the signal output unit, and the power-on determination unit is connected to the signal output unit. The timing unit is connected, and the signal output unit is connected with the switch control unit. In this solution, the timing unit starts timing the delay time after receiving the signal from the power-on judging unit, and sends the timing information to the delay judging unit in real time. A required delay time is set in the delay judging unit, and the received timing information is compared with the required delay time to determine whether the delay requirement is met. When the timing time reaches the required delay time, the signal output unit is controlled to work, and the signal output unit outputs a control command to the switch control unit.
作为一种优选方案,所述开关控制单元连接在MCU单元复位引脚上。本方案通过开关控制单元控制MCU单元上复位引脚的输入电平,在MCU单元刚上电时,开关控制单元输入低电平到MCU单元复位引脚,在开关控制单元接收到控制命令后,将复位引脚输入信号置为高电平,单片机MCU单元退出复位状态,进入正常运行模式,实现延时复位功能。As a preferred solution, the switch control unit is connected to the reset pin of the MCU unit. This solution controls the input level of the reset pin on the MCU unit through the switch control unit. When the MCU unit is just powered on, the switch control unit inputs a low level to the reset pin of the MCU unit. After the switch control unit receives the control command, Set the input signal of the reset pin to high level, the single-chip MCU unit exits the reset state, enters the normal operation mode, and realizes the delayed reset function.
作为一种优选方案,还包括有对延时时间进行调节的调节单元,所述调节单元与延时判定单元相连。本方案通过调节单元来调节要求的延时时间,以满足系统设计需要。As a preferred solution, an adjustment unit for adjusting the delay time is also included, and the adjustment unit is connected with the delay determination unit. This program adjusts the required delay time by adjusting the unit to meet the needs of system design.
一种单片机MCU延时复位控制方法,包括以下步骤:A kind of single-chip microcomputer MCU delay reset control method, comprises the following steps:
S1.初始化延时复位参数;S1. Initialize the delayed reset parameters;
S2.实时监测MCU单元上电情况;S2. Real-time monitoring of the power-on status of the MCU unit;
S3.在MCU单元上电后进行延时判定;S3. Delay judgment is performed after the MCU unit is powered on;
S4.达到延时时间要求后控制MCU单元退出复位状态,进入正常运行状态。S4. After reaching the delay time requirement, control the MCU unit to exit the reset state and enter the normal operation state.
几个分立器件搭配实现单片机延时复位功能,很好的解决了单片机复位问题,避免使用价格昂贵的专用芯片,保证产品稳定可靠的基础上,有效控制产品成本,提升了产品竞争力。The combination of several discrete devices realizes the delay reset function of the single-chip microcomputer, which solves the problem of the single-chip microcomputer reset well, avoids the use of expensive special chips, ensures the stability and reliability of the product, effectively controls the product cost, and improves the product competitiveness.
作为一种优选方案,步骤S1中初始化延时复位参数的具体包括通过调节单元设定要求延时的时间值,将计时时间清零。As a preferred solution, the initialization of the delay reset parameter in step S1 specifically includes setting the time value required for delay through the adjustment unit, and clearing the timing time.
作为一种优选方案,步骤S3中延时判定的具体过程包括:As a preferred solution, the specific process of delay determination in step S3 includes:
S31.在接收到电源开启判定单元上电信息后,开启延时时间计时;S31. After receiving the power-on information of the power-on judging unit, start the delay time timing;
S32.判断计时时间是否达到要求的延时时间,若否进入步骤S33,若是进入步骤S34;S32. Judging whether the timing time reaches the required delay time, if not, enter step S33, if enter step S34;
S33.控制开关控制单元输出低电平到MCU单元复位引脚,MCU单元处于复位状态,返回步骤S32;S33. The control switch control unit outputs a low level to the reset pin of the MCU unit, the MCU unit is in a reset state, and returns to step S32;
S34.控制开关控制单元输出高电平到MCU单元复位引脚。S34. The control switch control unit outputs a high level to the reset pin of the MCU unit.
因此,本发明的优点是:采用几个分立器件搭配实现单片机延时复位功能,很好的解决了单片机复位问题,避免使用价格昂贵的专用芯片,保证产品稳定可靠的基础上,有效控制产品成本,提升了产品竞争力。Therefore, the present invention has the advantages of: adopting several discrete devices to realize the delay reset function of the single-chip microcomputer, which solves the problem of single-chip microcomputer reset well, avoids the use of expensive special chips, and effectively controls the product cost on the basis of ensuring stable and reliable products , enhance product competitiveness.
附图说明Description of drawings
附图1是本发明的一种结构框示图;Accompanying drawing 1 is a kind of structural block diagram of the present invention;
附图2是本发明的一种流程示意图。Accompanying drawing 2 is a kind of flow diagram of the present invention.
1-MCU单元 2-电源开启判定单元 3-延时时间控制单元 4-开关控制单元 5-计时单元 6-延时判定单元 7-信号输出单元 8-调节单元。1-MCU unit 2-Power on determination unit 3-Delay time control unit 4-Switch control unit 5-Timer unit 6-Delay determination unit 7-Signal output unit 8-Adjustment unit.
具体实施方式detailed description
下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。The technical solutions of the present invention will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.
实施例:Example:
本实施例一种单片机MCU延时复位电路,如图1所示,包括MCU单元1、控制输出高低电平的开关控制单4、用于检测MCU单元是否上电的电源开启判定单元2、进行延时控制的延时时间控制单元3、调节单元8,MCU单元与开关控制单元连接,具体的开关控制单元连接在MCU单元复位引脚上,电源开启判定单元与延时时间控制单元相连,延时时间控制单元与开关控制单元相连。A kind of one-chip microcomputer MCU time-delay reset circuit of this embodiment, as shown in Figure 1, comprises MCU unit 1, the switch control unit 4 of control output high and low level, is used to detect whether the power of MCU unit powers on and judges unit 2, carries out The delay time control unit 3 and the adjustment unit 8 of the delay control, the MCU unit is connected with the switch control unit, the specific switch control unit is connected on the reset pin of the MCU unit, the power-on judging unit is connected with the delay time control unit, and the delay time The time control unit is connected with the switch control unit.
延时时间控制单元包括计时单元5、延时判定单元6、信号输出单元7,计时单元与延时判定单元相连,延时判定单元与信号输出单元相连,电源开启判定单元与计时单元相连,信号输出单元与开关控制单元相连。调节单元与延时判定单元相连。The delay time control unit includes a timing unit 5, a delay determination unit 6, and a signal output unit 7. The timing unit is connected with the delay determination unit, the delay determination unit is connected with the signal output unit, the power-on determination unit is connected with the timing unit, and the signal The output unit is connected to the switch control unit. The adjusting unit is connected with the delay judging unit.
一种单片机MCU延时复位控制方法,如图2所示,包括以下步骤:A kind of single-chip microcomputer MCU delay reset control method, as shown in Figure 2, comprises the following steps:
S1.初始化延时复位参数;具体包括通过调节单元设定要求延时的时间值,将计时时间清零。S1. Initializing the delay reset parameter; specifically including setting the time value required for delay through the adjustment unit, and clearing the timing time.
S2.实时监测MCU单元上电情况;S2. Real-time monitoring of the power-on status of the MCU unit;
S3.在MCU单元上电后进行延时判定;具体过程包括:S3. Carry out delay judgment after the MCU unit is powered on; the specific process includes:
S31.在接收到电源开启判定单元上电信息后,开启延时时间计时;S31. After receiving the power-on information of the power-on judging unit, start the delay time timing;
S32.判断计时时间是否达到要求的延时时间,若否进入步骤S33,若是进入步骤S34;S32. Judging whether the timing time reaches the required delay time, if not, enter step S33, if enter step S34;
S33.控制开关控制单元输出低电平到MCU单元复位引脚,MCU单元处于复位状态,返回步骤S32;S33. The control switch control unit outputs a low level to the reset pin of the MCU unit, the MCU unit is in a reset state, and returns to step S32;
S34.控制开关控制单元输出高电平到MCU单元复位引脚。S34. The control switch control unit outputs a high level to the reset pin of the MCU unit.
S4.达到延时时间要求后控制MCU单元退出复位状态,进入正常运行状态。S4. After reaching the delay time requirement, control the MCU unit to exit the reset state and enter the normal operation state.
本文中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which the present invention belongs can make various modifications or supplements to the described specific embodiments or adopt similar methods to replace them, but they will not deviate from the spirit of the present invention or go beyond the definition of the appended claims range.
尽管本文较多地使用了MCU单元、电源开启判定单元、延时时间控制单元、开关控制单元等术语,但并不排除使用其它术语的可能性。使用这些术语仅仅是为了更方便地描述和解释本发明的本质;把它们解释成任何一种附加的限制都是与本发明精神相违背的。Although terms such as MCU unit, power-on determination unit, delay time control unit, and switch control unit are frequently used in this paper, the possibility of using other terms is not excluded. These terms are used only for the purpose of describing and explaining the essence of the present invention more conveniently; interpreting them as any kind of additional limitation is against the spirit of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710526172.6ACN107315465A (en) | 2017-06-30 | 2017-06-30 | A kind of single-chip microprocessor MCU time-delay reset circuit and control method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710526172.6ACN107315465A (en) | 2017-06-30 | 2017-06-30 | A kind of single-chip microprocessor MCU time-delay reset circuit and control method |
| Publication Number | Publication Date |
|---|---|
| CN107315465Atrue CN107315465A (en) | 2017-11-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710526172.6APendingCN107315465A (en) | 2017-06-30 | 2017-06-30 | A kind of single-chip microprocessor MCU time-delay reset circuit and control method |
| Country | Link |
|---|---|
| CN (1) | CN107315465A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05143199A (en)* | 1991-11-21 | 1993-06-11 | Nec Corp | Resetting circuit |
| US5323066A (en)* | 1992-06-01 | 1994-06-21 | Motorola, Inc. | Method and apparatus for performing power on reset initialization in a data processing system |
| CN102122943A (en)* | 2010-12-29 | 2011-07-13 | 山东华芯半导体有限公司 | Low-power consumption time delay programmable power-on resetting method and circuit |
| CN201965531U (en)* | 2010-12-31 | 2011-09-07 | 天津中启创科技有限公司 | Reset circuit |
| CN103218025A (en)* | 2013-04-25 | 2013-07-24 | 北京空间机电研究所 | Modified Xilinx FPGA power-on reset circuit |
| CN103297009A (en)* | 2013-06-24 | 2013-09-11 | 成都鸿芯纪元科技有限公司 | Field programmable gate array (FPGA) power-on reset system |
| CN204190734U (en)* | 2014-11-05 | 2015-03-04 | 百利通科技(扬州)有限公司 | A kind of electrify restoration circuit |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05143199A (en)* | 1991-11-21 | 1993-06-11 | Nec Corp | Resetting circuit |
| US5323066A (en)* | 1992-06-01 | 1994-06-21 | Motorola, Inc. | Method and apparatus for performing power on reset initialization in a data processing system |
| CN102122943A (en)* | 2010-12-29 | 2011-07-13 | 山东华芯半导体有限公司 | Low-power consumption time delay programmable power-on resetting method and circuit |
| CN201965531U (en)* | 2010-12-31 | 2011-09-07 | 天津中启创科技有限公司 | Reset circuit |
| CN103218025A (en)* | 2013-04-25 | 2013-07-24 | 北京空间机电研究所 | Modified Xilinx FPGA power-on reset circuit |
| CN103297009A (en)* | 2013-06-24 | 2013-09-11 | 成都鸿芯纪元科技有限公司 | Field programmable gate array (FPGA) power-on reset system |
| CN204190734U (en)* | 2014-11-05 | 2015-03-04 | 百利通科技(扬州)有限公司 | A kind of electrify restoration circuit |
| Publication | Publication Date | Title |
|---|---|---|
| DE112013003590B4 (en) | LIN network slave node control system, LIN network slave node and method | |
| CN106740264B (en) | Limping control method and its system based on electric car distribution drive system | |
| CN106585608B (en) | A kind of automatic parking control method and system | |
| US9457805B2 (en) | Vehicle with power management | |
| US8310357B2 (en) | After market sequential turn signal | |
| CN106114224B (en) | Control method and control system of electric automobile and electric automobile | |
| CN210634450U (en) | Vehicle light limping control system based on distributed control | |
| CN107856538A (en) | A kind of electric drive system for electric vehicles operating mode switching control method | |
| CN108657087B (en) | Chassis control system for vehicle | |
| CN101239598A (en) | Car light multiplexing control method and car light multiplexing control circuit | |
| CN116513141A (en) | Brake system control method, device, vehicle and non-volatile storage medium | |
| CN202573977U (en) | Intelligent car door control internal lighting system | |
| CN117507860A (en) | Extended-range electric vehicle and fixed-point control method, device and storage medium thereof | |
| CN109017726B (en) | A universal braking system and control method for an unmanned vehicle | |
| CN107315465A (en) | A kind of single-chip microprocessor MCU time-delay reset circuit and control method | |
| KR20140137416A (en) | Method and circuit arrangement for limiting peak currents and pitch of current flanks | |
| CN104213953A (en) | Vehicle second-level oil pump control system and method | |
| CN105539317A (en) | Vehicle start and stop switch control method | |
| CN114675565A (en) | A domain controller and motor vehicle | |
| CN109724808A (en) | A kind of safety assisting system RTA reliability test assembly | |
| CN204472670U (en) | Electric vehicle headlight control system based on IIC bus | |
| CN105822441A (en) | Method, device and system for controlling engine | |
| CN105946586B (en) | A kind of motor temperature hysteresis control method of electric vehicle | |
| KR102167703B1 (en) | Traffic signal Controller for using both AC and DC | |
| CN205498738U (en) | Automatic automobile lamp control system |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20171103 |