Seek help about MC33771 driver code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Seek help about MC33771 driver code

4,713 Views
佳强田
Contributor I

Dear all,

      I am a Chinese student,I'm designing a battery management system (BMS) based on MC33771 . There are many registers in MC33771, so it confused with me, I don't know how to do it , I  sincerely hope you can help me , can you share the MC33771 driver code with me?  My mail:1078822846@qq.com. Thank you !

   Best  wishes!

                                                                                                                                                                      Jiaqiang  Tian                                                                                                                                                                                                                                                                                           

Labels (1)
0 Kudos
5 Replies

3,869 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Jiaqiang,

I would recommend looking at our example code for the KIT3377x (FRDM-KL25Z board). It should be a good starting point for your own developments. Attached you can find a complete MC3377x Evaluation Package, the project is located by default in C:\Program Files (x86)\NXP\MC3377x_EvalPackage\EvalSW folder.

Hope it helps.

Best regards,

Tomas

0 Kudos

3,869 Views
huangziyi
Contributor II

hello, i am using MC33664 combined with MC33771 to design a battery management system too , my MCU comunicate with MC33664 which is a high votalge isolation chip in spi mode,but MC33664 communicate with MC33771 in TPL mode,I looked into the driver code and wonder  which interface type i should choose, could you help me with this problem ?thank you very much!

pastedImage_1.png

0 Kudos

3,869 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Huang,

In such a case, you should select the TPL mode (IntTPL).

Best regards,

Tomas

0 Kudos

3,869 Views
huangziyi
Contributor II

Dear  Tomas,

   Thank you very much, you had helped me solve this problem perfectly. And I run into another problem again, in my code , Compare odd cell terminal pre-switch closure results to post switch closure results to determine fault mode according to datasheet <5.9 Table12: CT Open Detect and Functional Verification>.

as follow:
   捕获.PNG

In my understanding , "Open line condition during test execution " means the same with"SWx failed open" .

But ,if so, then why when SWx command close ,  under Open line condition :V=0, but under SWx failed open condition:

Cell voltage much higher? I am confused by the question, could you please help me with it? Much appreciated!      

 Best wishes

huang ziyi.

0 Kudos

3,869 Views
佳强田
Contributor I

Dear Tomas,

I am very pleased to have received your mail, Thank you for giving me help,it's great for me. Thank you!

Best wishes for you!

jiaqiang Tian

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-702653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESeek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20all%2C%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3BI%20am%20a%20Chinese%20student%EF%BC%8CI'm%20designing%20a%20battery%20management%20system%20(BMS)%26nbsp%3Bbased%20on%20MC33771%20.%20There%20are%20many%20registers%20in%20MC33771%2C%26nbsp%3Bso%20it%20confused%20with%20me%2C%20I%20don't%20know%20how%20to%20do%20it%20%2C%20I%20%26nbsp%3Bsincerely%20hope%20you%20can%20help%20me%20%2C%20can%20you%20share%20the%20MC33771%20driver%20code%20with%20me%3F%20%26nbsp%3BMy%20mail%3A%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-email-small%22%20href%3D%22mailto%3A1078822846%40qq.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E1078822846%40qq.com%3C%2FA%3E%3CSPAN%3E.%20Thank%20you%20!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BBest%20%26nbsp%3Bwishes%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BJiaqiang%20%26nbsp%3BTian%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-702653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBattery%20Sensors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-702658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Seek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20%26nbsp%3BTomas%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%20Thank%20you%20very%20much%2C%20you%20had%20helped%20me%20solve%20this%20problem%20perfectly.%20And%20I%20run%20into%20another%20problem%20again%2C%20in%20my%20code%20%2C%20Compare%20odd%20cell%20terminal%20pre-switch%20closure%20results%20to%20post%20switch%20closure%20results%20to%20determine%20fault%20mode%20according%20to%20datasheet%20%26lt%3B5.9%20Table12%3A%20CT%20Open%20Detect%20and%20Functional%20Verification%26gt%3B.%3C%2FP%3E%3CP%3Eas%20follow%3A%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%8D%95%E8%8E%B7.PNG%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%8D%95%E8%8E%B7.PNG%22%20style%3D%22width%3A%20835px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33142iD086C37475CB7641%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E6%8D%95%E8%8E%B7.PNG%22%20alt%3D%22%E6%8D%95%E8%8E%B7.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIn%20my%20understanding%20%2C%20%22Open%20line%20condition%20during%20test%20execution%20%22%20means%20the%20same%20with%22SWx%20failed%20open%22%20.%3C%2FP%3E%3CP%3EBut%20%2Cif%20so%2C%20then%20why%20when%20SWx%20command%26nbsp%3Bclose%26nbsp%3B%2C%20%26nbsp%3Bunder%20Open%20line%20condition%20%3AV%3D0%2C%20but%20under%20SWx%20failed%20open%20condition%3A%3C%2FP%3E%3CP%3ECell%20voltage%20much%20higher%3F%20I%20am%20confused%20by%20the%20question%2C%20could%20you%20please%20help%20me%20with%20it%3F%20Much%20appreciated!%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BBest%20wishes%3C%2FP%3E%3CP%3Ehuang%20ziyi.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-702657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Seek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Huang%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIn%20such%20a%20case%2C%20you%20should%20select%20the%20TPL%20mode%20(IntTPL).%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-702656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Seek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3Ehello%2C%20i%20am%20using%20MC33664%20combined%20with%20MC33771%20to%20design%20a%20battery%20management%20system%20too%20%2C%20my%20MCU%20comunicate%20with%20MC33664%20which%20is%20a%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ehigh%20votalge%20isolation%20chip%20in%20spi%20mode%2Cbut%20MC33664%20communicate%20with%20MC33771%20in%20TPL%20mode%2CI%20looked%20into%20the%20driver%20code%20and%20wonder%20%26nbsp%3Bwhich%20interface%20type%20i%20should%20choose%2C%20could%20you%20help%20me%20with%20this%20problem%20%3Fthank%20you%20very%20much!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20838px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30389iE61B258BEF084E9C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-702655%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Seek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702655%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Tomas%EF%BC%8C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20I%20am%20very%20pleased%20to%20have%20received%20your%20mail%2C%20Thank%20you%20for%20giving%20me%20help%EF%BC%8Cit's%20great%20for%20me.%20Thank%20you!%3C%2FP%3E%3CP%3EBest%20wishes%20for%20you!%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20jiaqiang%20Tian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-702654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Seek%20help%20about%20MC33771%20%20driver%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-702654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Jiaqiang%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20would%20recommend%20looking%20at%20our%20example%20code%20for%20the%20KIT3377x%20(FRDM-KL25Z%20board).%20It%20should%20be%20a%20good%20starting%20point%20for%20your%20own%20developments.%20Attached%20you%20can%20find%20a%20complete%20MC3377x%20Evaluation%20Package%2C%20the%20project%20is%20located%20by%20default%20in%20C%3A%5CProgram%20Files%20(x86)%5CNXP%5CMC3377x_EvalPackage%5CEvalSW%20folder.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EHope%20it%20helps.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E