本發明涉及(ji)(ji)一種epb驅(qu)動電(dian)路(lu),具體(ti)涉及(ji)(ji)一種用(yong)于雙(shuang)控epb?h橋(qiao)驅(qu)動信號(hao)切換的電(dian)路(lu)和方法。
背景技術:
1、新(xin)能源車為減輕車重(zhong)去除(chu)了機(ji)械p擋鎖,故(gu)新(xin)能源車對epb電子駐車系(xi)統提(ti)出更高的功能安全要(yao)求(qiu)(qiu)。為滿足法規的要(yao)求(qiu)(qiu),架構上(shang)一般采用雙mcu來驅動同一個(ge)駐車h橋電路,以(yi)防止單點失效。通常兩個(ge)mcu的驅動是(shi)通過直接并聯的方式(shi)。此種(zhong)方式(shi)存在以(yi)下(xia)兩個(ge)問題:
2、1、主控mcu1對h橋驅動電(dian)路(lu)識別或故障診斷,會因備份mcu2的驅動信(xin)號干(gan)擾而(er)信(xin)號識別錯誤。
3、2、主控mcu1失效時(shi),系統功能(neng)降級,備份mcu芯片對h橋驅動電路識(shi)別或故(gu)障(zhang)診(zhen)斷(duan),會因主mcu1的狀態異常(chang)而信號(hao)識(shi)別錯誤。
技術實現思路
1、為了解決背景技(ji)術中存在的問題(ti),本發(fa)明提出(chu)了一種用于雙控epb?h橋驅動信號切換的電路(lu)和方法。
2、本發(fa)明的(de)技術(shu)方案(an)是這(zhe)樣實現的(de):
3、一、一種用于(yu)雙(shuang)控epb?h橋驅動信號切(qie)換的電路,包含主控部分與(yu)備份部分的兩部分;
4、主控(kong)(kong)部分中包括(kuo)依(yi)次連(lian)接的(de)主控(kong)(kong)電源(yuan)管理模塊和主控(kong)(kong)mcu1微(wei)控(kong)(kong)制單(dan)元(yuan),主控(kong)(kong)電源(yuan)管理模塊輸出電源(yuan)給主控(kong)(kong)mcu1微(wei)控(kong)(kong)制單(dan)元(yuan)供電,主控(kong)(kong)mcu1微(wei)控(kong)(kong)制單(dan)元(yuan)輸出h橋驅動(dong)信(xin)號pwm1到驅動(dong)信(xin)號切(qie)換模塊;
5、備(bei)份(fen)部分中包括依次連(lian)接的備(bei)份(fen)電(dian)(dian)源(yuan)(yuan)管(guan)理(li)模(mo)塊(kuai)和備(bei)份(fen)mcu2微控制(zhi)單(dan)元(yuan),備(bei)份(fen)電(dian)(dian)源(yuan)(yuan)管(guan)理(li)模(mo)塊(kuai)輸出(chu)電(dian)(dian)源(yuan)(yuan)給備(bei)份(fen)mcu2微控制(zhi)單(dan)元(yuan)供(gong)電(dian)(dian),備(bei)份(fen)mcu2微控制(zhi)單(dan)元(yuan)輸出(chu)h橋驅動信號(hao)pwm2到驅動信號(hao)切換模(mo)塊(kuai)。
6、主控(kong)mcu1微控(kong)制(zhi)單(dan)元和備份mcu2微控(kong)制(zhi)單(dan)元均與(yu)(yu)驅(qu)動電(dian)壓切換(huan)(huan)模(mo)塊連接(jie),驅(qu)動信(xin)號(hao)(hao)切換(huan)(huan)模(mo)塊和驅(qu)動電(dian)壓切換(huan)(huan)模(mo)塊均連接(jie)到(dao)駐車(che)(che)h橋(qiao)(qiao)預(yu)驅(qu)芯(xin)片,駐車(che)(che)h橋(qiao)(qiao)預(yu)驅(qu)芯(xin)片再和駐車(che)(che)驅(qu)動h橋(qiao)(qiao)電(dian)路連接(jie),驅(qu)動信(xin)號(hao)(hao)切換(huan)(huan)模(mo)塊對輸入的(de)h橋(qiao)(qiao)驅(qu)動信(xin)號(hao)(hao)pwm1與(yu)(yu)h橋(qiao)(qiao)驅(qu)動信(xin)號(hao)(hao)pwm2進行驅(qu)動信(xin)號(hao)(hao)的(de)通道(dao)控(kong)制(zhi),確保在同一個(ge)時刻、只有其中一個(ge)驅(qu)動信(xin)號(hao)(hao)傳遞到(dao)駐車(che)(che)h橋(qiao)(qiao)預(yu)驅(qu)芯(xin)片上,從(cong)而控(kong)制(zhi)駐車(che)(che)驅(qu)動h橋(qiao)(qiao)電(dian)路。
7、所述的主控(kong)mcu1微(wei)控(kong)制(zhi)單元(yuan)與備份mcu2微(wei)控(kong)制(zhi)單元(yuan)之(zhi)間通(tong)訊(xun)連接。
8、所述的微控芯(xin)片(pian)mcu1的ps1/txd0引腳(jiao)與(yu)微控芯(xin)片(pian)mcu2的ps0/rxd0引腳(jiao)相(xiang)連,微控芯(xin)片(pian)mcu1的ps0/rxd0引腳(jiao)與(yu)微控芯(xin)片(pian)mcu2的ps1/txd0引腳(jiao)相(xiang)連。
9、所(suo)述(shu)主控(kong)電(dian)(dian)源管理(li)模塊包(bao)括電(dian)(dian)源管理(li)芯片(pian)(pian)u5,電(dian)(dian)源管理(li)芯片(pian)(pian)u5的(de)vsup引(yin)腳連接車載(zai)電(dian)(dian)源vbat,電(dian)(dian)源管理(li)芯片(pian)(pian)u5的(de)rst引(yin)腳經電(dian)(dian)阻(zu)r16和vcc1引(yin)腳連接,vdd引(yin)腳輸出(chu)電(dian)(dian)源vcc1;
10、所(suo)述(shu)備份電(dian)源(yuan)管(guan)理(li)(li)模(mo)塊(kuai)包括電(dian)源(yuan)管(guan)理(li)(li)芯(xin)片u6,電(dian)源(yuan)管(guan)理(li)(li)芯(xin)片u6的(de)vsup引(yin)腳(jiao)連接車(che)載(zai)電(dian)源(yuan)vbat,電(dian)源(yuan)管(guan)理(li)(li)芯(xin)片u6的(de)rst引(yin)腳(jiao)經(jing)電(dian)阻r17和(he)vcc2引(yin)腳(jiao)連接,vdd引(yin)腳(jiao)輸出電(dian)源(yuan)vcc2。
11、所述主控(kong)mcu1微(wei)控(kong)制單元包括微(wei)控(kong)芯(xin)片(pian)(pian)(pian)mcu1,微(wei)控(kong)芯(xin)片(pian)(pian)(pian)mcu1作為主控(kong)微(wei)控(kong)芯(xin)片(pian)(pian)(pian);所述備份mcu2微(wei)控(kong)制單元包括微(wei)控(kong)芯(xin)片(pian)(pian)(pian)mcu2,微(wei)控(kong)芯(xin)片(pian)(pian)(pian)mcu2作為備份微(wei)控(kong)芯(xin)片(pian)(pian)(pian)。
12、所述驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)模塊(kuai)包(bao)括驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4;微(wei)控芯(xin)(xin)片(pian)(pian)(pian)(pian)mcu1的pp1引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)與驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的1b1引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)相(xiang)連(lian),微(wei)控芯(xin)(xin)片(pian)(pian)(pian)(pian)mcu1的pp0引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)與驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的2b1引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)相(xiang)連(lian);微(wei)控芯(xin)(xin)片(pian)(pian)(pian)(pian)mcu2的pp2引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)與驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的s引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)相(xiang)連(lian),驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的s引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)經電阻r18接地,微(wei)控芯(xin)(xin)片(pian)(pian)(pian)(pian)mcu2的pp1引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)與驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的1b2引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)相(xiang)連(lian),微(wei)控芯(xin)(xin)片(pian)(pian)(pian)(pian)mcu2的pp0引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)與驅動(dong)(dong)信(xin)號(hao)(hao)切(qie)(qie)換(huan)(huan)芯(xin)(xin)片(pian)(pian)(pian)(pian)u4的2b2引(yin)(yin)(yin)腳(jiao)(jiao)(jiao)(jiao)相(xiang)連(lian)。
13、所述驅(qu)(qu)動電(dian)(dian)(dian)(dian)壓切換模塊(kuai)包含(han)三(san)(san)極(ji)(ji)管(guan)q2、三(san)(san)極(ji)(ji)管(guan)q3和復(fu)(fu)合(he)三(san)(san)極(ji)(ji)管(guan)u2,復(fu)(fu)合(he)三(san)(san)極(ji)(ji)管(guan)u2主要由兩個(ge)(ge)三(san)(san)極(ji)(ji)管(guan)構成(cheng),復(fu)(fu)合(he)三(san)(san)極(ji)(ji)管(guan)u2的(de)(de)第一(yi)個(ge)(ge)三(san)(san)極(ji)(ji)管(guan)的(de)(de)發射(she)極(ji)(ji)接(jie)(jie)(jie)地,基(ji)極(ji)(ji)引腳連接(jie)(jie)(jie)到(dao)微控(kong)芯片mcu1的(de)(de)pb0驅(qu)(qu)動口,集(ji)電(dian)(dian)(dian)(dian)極(ji)(ji)經電(dian)(dian)(dian)(dian)阻r6連接(jie)(jie)(jie)到(dao)三(san)(san)極(ji)(ji)管(guan)q3的(de)(de)基(ji)極(ji)(ji),復(fu)(fu)合(he)三(san)(san)極(ji)(ji)管(guan)u2的(de)(de)第二個(ge)(ge)三(san)(san)極(ji)(ji)管(guan)的(de)(de)發射(she)極(ji)(ji)接(jie)(jie)(jie)地,基(ji)極(ji)(ji)引腳連接(jie)(jie)(jie)到(dao)微控(kong)芯片mcu2的(de)(de)pb0驅(qu)(qu)動口,集(ji)電(dian)(dian)(dian)(dian)極(ji)(ji)經電(dian)(dian)(dian)(dian)阻r7連接(jie)(jie)(jie)到(dao)三(san)(san)極(ji)(ji)管(guan)q2的(de)(de)基(ji)極(ji)(ji),三(san)(san)極(ji)(ji)管(guan)q2、三(san)(san)極(ji)(ji)管(guan)q3的(de)(de)發射(she)極(ji)(ji)分別(bie)連接(jie)(jie)(jie)電(dian)(dian)(dian)(dian)源vcc2、電(dian)(dian)(dian)(dian)源vcc1,三(san)(san)極(ji)(ji)管(guan)q2和三(san)(san)極(ji)(ji)管(guan)q3的(de)(de)集(ji)電(dian)(dian)(dian)(dian)極(ji)(ji)連接(jie)(jie)(jie)在一(yi)起并作為電(dian)(dian)(dian)(dian)源vcc的(de)(de)輸出端。
14、此模塊(kuai)能(neng)夠(gou)保證在主控電源管理輸出電源vcc1失效下,依舊可以用電源vcc2對(dui)驅動(dong)信號(hao)切(qie)換(huan)芯片(pian)u4與(yu)h橋預驅動(dong)芯片(pian)u7進行供(gong)電。
15、所述駐車(che)h橋(qiao)預驅(qu)芯(xin)片(pian)包(bao)括駐車(che)h橋(qiao)預驅(qu)動芯(xin)片(pian)u7;所述驅(qu)動信(xin)(xin)號切(qie)換芯(xin)片(pian)u4的(de)1a引腳(jiao)連接(jie)到駐車(che)h橋(qiao)預驅(qu)動芯(xin)片(pian)u7的(de)in1引腳(jiao),驅(qu)動信(xin)(xin)號切(qie)換芯(xin)片(pian)u4的(de)2a引腳(jiao)連接(jie)到駐車(che)h橋(qiao)預驅(qu)動芯(xin)片(pian)u7的(de)in2引腳(jiao),驅(qu)動信(xin)(xin)號切(qie)換芯(xin)片(pian)u4的(de)vcc引腳(jiao)連接(jie)電源vcc,驅(qu)動信(xin)(xin)號切(qie)換芯(xin)片(pian)u4的(de)oe引腳(jiao)接(jie)地。
16、所述(shu)的(de)(de)駐車(che)驅動h橋(qiao)電(dian)(dian)路(lu)包括mos管(guan)q5~mos管(guan)q8,mos管(guan)q6的(de)(de)源(yuan)極(ji)和(he)mos管(guan)q7的(de)(de)漏(lou)極(ji)連(lian)接到(dao)電(dian)(dian)機(ji)m的(de)(de)一(yi)端,電(dian)(dian)機(ji)m的(de)(de)另一(yi)端和(he)mos管(guan)q5的(de)(de)源(yuan)極(ji)、mos管(guan)q8的(de)(de)漏(lou)極(ji)連(lian)接,mos管(guan)q6和(he)mos管(guan)q5的(de)(de)漏(lou)極(ji)均(jun)一(yi)起(qi)連(lian)接到(dao)車(che)載電(dian)(dian)源(yuan)vbat,mos管(guan)q7和(he)mos管(guan)q8的(de)(de)源(yuan)極(ji)均(jun)接地;
17、駐(zhu)車(che)h橋(qiao)預(yu)驅(qu)動(dong)芯(xin)片u7的(de)(de)gh1引(yin)腳(jiao)均連(lian)接(jie)(jie)到mos管q5的(de)(de)柵極(ji),駐(zhu)車(che)h橋(qiao)預(yu)驅(qu)動(dong)芯(xin)片u7的(de)(de)gh2引(yin)腳(jiao)均連(lian)接(jie)(jie)到mos管q6的(de)(de)柵極(ji),駐(zhu)車(che)h橋(qiao)預(yu)驅(qu)動(dong)芯(xin)片u7的(de)(de)gl1引(yin)腳(jiao)均連(lian)接(jie)(jie)到mos管q8的(de)(de)柵極(ji),駐(zhu)車(che)h橋(qiao)預(yu)驅(qu)動(dong)芯(xin)片u7的(de)(de)gl2引(yin)腳(jiao)均連(lian)接(jie)(jie)到mos管q7的(de)(de)柵極(ji)。
18、駐車(che)h橋預驅動(dong)芯(xin)片(pian)u7的(de)sh1引(yin)腳(jiao)均(jun)(jun)連接(jie)到mos管(guan)(guan)(guan)q8的(de)漏極(ji)(ji)(ji)與mos管(guan)(guan)(guan)q5的(de)源(yuan)極(ji)(ji)(ji),駐車(che)h橋預驅動(dong)芯(xin)片(pian)u7的(de)sh2引(yin)腳(jiao)均(jun)(jun)連接(jie)到mos管(guan)(guan)(guan)q7的(de)漏極(ji)(ji)(ji)與mos管(guan)(guan)(guan)q6的(de)源(yuan)極(ji)(ji)(ji),駐車(che)h橋預驅動(dong)芯(xin)片(pian)u7的(de)sl2引(yin)腳(jiao)均(jun)(jun)連接(jie)到mos管(guan)(guan)(guan)q7的(de)源(yuan)極(ji)(ji)(ji)和(he)mos管(guan)(guan)(guan)q8的(de)源(yuan)極(ji)(ji)(ji)。
19、二、一種用(yong)于雙控epb?h橋驅動(dong)信號切(qie)換的方法(fa),方法(fa)包含兩種模式:正常模式與失效(xiao)模式;
20、正常(chang)模式(shi):備份(fen)主控微(wei)(wei)控芯片作為看門狗實時監控主控微(wei)(wei)控芯片mcu1的工(gong)作狀態;
21、主控(kong)微控(kong)芯片mcu1正常工(gong)作(zuo),從pp1引(yin)腳(jiao)和pp2引(yin)腳(jiao)發出pwm波形的h橋(qiao)驅動信號,pb0引(yin)腳(jiao)發出高點(dian)平,備份微控(kong)芯片mcu2的pb0引(yin)腳(jiao)發出低電(dian)平,此時三(san)(san)極管q3導通(tong),三(san)(san)極管q2關斷,使得(de)電(dian)源vcc1加載到vcc上;
22、備份微(wei)控芯(xin)片(pian)mcu2的(de)(de)(de)pp2引腳(jiao)(jiao)(jiao)輸出低電平,此時驅動信(xin)號(hao)切換(huan)(huan)芯(xin)片(pian)u4的(de)(de)(de)s引腳(jiao)(jiao)(jiao)接收到低電平,使得驅動信(xin)號(hao)切換(huan)(huan)芯(xin)片(pian)u4的(de)(de)(de)1b1引腳(jiao)(jiao)(jiao)接口與1a引腳(jiao)(jiao)(jiao)接口連通,驅動信(xin)號(hao)切換(huan)(huan)芯(xin)片(pian)u4的(de)(de)(de)2b1引腳(jiao)(jiao)(jiao)接口與2a引腳(jiao)(jiao)(jiao)接口連通;驅動信(xin)號(hao)切換(huan)(huan)芯(xin)片(pian)u4的(de)(de)(de)1b2引腳(jiao)(jiao)(jiao)接口與1a引腳(jiao)(jiao)(jiao)接口不(bu)連通,驅動信(xin)號(hao)切換(huan)(huan)芯(xin)片(pian)u4的(de)(de)(de)2b2引腳(jiao)(jiao)(jiao)接口與2a引腳(jiao)(jiao)(jiao)接口不(bu)連通;
23、以上(shang)操作(zuo)使(shi)得(de)h橋驅(qu)(qu)(qu)(qu)動(dong)信號(hao)(hao)經傳遞(di)到(dao)駐(zhu)車(che)h橋預驅(qu)(qu)(qu)(qu)動(dong)芯片u7,進而控制駐(zhu)車(che)驅(qu)(qu)(qu)(qu)動(dong)h橋電路的動(dong)作(zuo),而備(bei)份部分中,因驅(qu)(qu)(qu)(qu)動(dong)信號(hao)(hao)無法加載(zai)到(dao)駐(zhu)車(che)h橋預驅(qu)(qu)(qu)(qu)動(dong)芯片u7上(shang),故不會干擾主(zhu)控單(dan)元的正常動(dong)作(zuo);
24、失效模式:
25、此(ci)時,主控微控芯片mcu1失效無(wu)法發出pwm波形的(de)h橋驅動信號;
26、當主控(kong)微控(kong)芯片mcu1工作異常無法發出h橋驅動(dong)信號時,pb0引腳發出低(di)電平,備份(fen)微控(kong)芯片mcu2的pb0引腳發出高電平,此時三極管q2導通,三極管q3關斷,使(shi)得電源vcc2加載到vcc上;
27、備份微控芯片mcu2的(de)s_state接口(kou)/pp2引(yin)腳(jiao)輸出(chu)高電平(ping),此時驅動(dong)信(xin)號切(qie)換芯片u4的(de)s引(yin)腳(jiao)接收到高電平(ping),使得(de)驅動(dong)信(xin)號切(qie)換芯片u4的(de)1b1引(yin)腳(jiao)接口(kou)與1a引(yin)腳(jiao)接口(kou)不(bu)連通,驅動(dong)信(xin)號切(qie)換芯片u4的(de)2b1引(yin)腳(jiao)接口(kou)與2a引(yin)腳(jiao)接口(kou)不(bu)連通;
28、驅動信號切(qie)(qie)換芯(xin)片u4的1b2引腳(jiao)(jiao)接(jie)(jie)口與1a引腳(jiao)(jiao)接(jie)(jie)口連通(tong),驅動信號切(qie)(qie)換芯(xin)片u4的2b2引腳(jiao)(jiao)接(jie)(jie)口與2a引腳(jiao)(jiao)接(jie)(jie)口連通(tong)。
29、本發明的有益效果:
30、本發明通(tong)過(guo)驅(qu)動(dong)信號(hao)切換模塊,對于冗余mcu驅(qu)動(dong)同一個駐車(che)h橋電路(lu)(lu)的(de)(de)信號(hao)進(jin)行隔離,防(fang)止(zhi)了(le)主控(kong)mcu1與備份mcu2驅(qu)動(dong)信號(hao)之間的(de)(de)相互干擾。此電路(lu)(lu)設(she)計(ji)提升了(le)雙控(kong)epb電子(zi)駐車(che)系統使(shi)用上的(de)(de)功能安全(quan)。