MC33HB2000

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

MC33HB2000

Jump to solution
1,107 Views
Giants
Contributor II

Hi there!

I start to work with this driver i made a pcb board and if i use a digital input work very well. I try to use SPI comunication  but witout success so i'm here for ask a few question . First i use a STM32 family and my question are :

- I need the put ENBL pin at 1 even when i want use SPI ? 

- Clock polarity active hight is right ?

- Clock phase 1ST edge is right ? 

- Max frequency i read on datasheet up 10MHz but in another  part of datasheet i read max 10Mhz so the right frequency is ? 

- if i want read the register i need to send 0x00 for read the device identification 0x2000 for read status ect ect and set the bit 15 if i want write right ?

Because i try and right now dosen't work and yes i put the CS low befor the send data .

Sorry for all this question  

Thank you 

Sergio

0 Kudos
Reply
1 Solution
1,029 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Sergio,

- I need the put ENBL pin at 1 even when i want use SPI ? 

[A] Yes, for both the ENBL pin must be logic high. 

JozefKozon_1-1768802104150.pngJozefKozon_2-1768802136717.png

JozefKozon_3-1768802181334.png

- Clock polarity active high is right ?

[A] Correct. The SCLK line is active high, CPOL=0. 

- Clock phase 1ST edge is right ? 

[A] This is incorrect. The data are sampled on SCLK falling edge, (2nd edge), CPHA=1. This deduces the SPI mode is 1. 

JozefKozon_4-1768803574642.png

JozefKozon_5-1768803636543.png

JozefKozon_6-1768803749977.png

- Max frequency i read on datasheet up 10MHz but in another  part of datasheet i read max 10Mhz so the right frequency is? 

[A] Yes, the maximum HB2000 SPI operation is 10 MHz. 

JozefKozon_0-1768802003240.png

- if i want read the register i need to send 0x00 for read the device identification 0x2000 for read status ect ect and set the bit 15 if i want write right ?

[A] Please find attached SPI HBridge SW driver. Included is a Programming Guide document.

With Best Regards,

Jozef

View solution in original post

0 Kudos
Reply
4 Replies
1,030 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Sergio,

- I need the put ENBL pin at 1 even when i want use SPI ? 

[A] Yes, for both the ENBL pin must be logic high. 

JozefKozon_1-1768802104150.pngJozefKozon_2-1768802136717.png

JozefKozon_3-1768802181334.png

- Clock polarity active high is right ?

[A] Correct. The SCLK line is active high, CPOL=0. 

- Clock phase 1ST edge is right ? 

[A] This is incorrect. The data are sampled on SCLK falling edge, (2nd edge), CPHA=1. This deduces the SPI mode is 1. 

JozefKozon_4-1768803574642.png

JozefKozon_5-1768803636543.png

JozefKozon_6-1768803749977.png

- Max frequency i read on datasheet up 10MHz but in another  part of datasheet i read max 10Mhz so the right frequency is? 

[A] Yes, the maximum HB2000 SPI operation is 10 MHz. 

JozefKozon_0-1768802003240.png

- if i want read the register i need to send 0x00 for read the device identification 0x2000 for read status ect ect and set the bit 15 if i want write right ?

[A] Please find attached SPI HBridge SW driver. Included is a Programming Guide document.

With Best Regards,

Jozef

0 Kudos
Reply
1,021 Views
Giants
Contributor II

Thank you soo much for your help i will try tonight when i back at home.

Yesterday i find this document on line . 

 

 

Tags (1)
0 Kudos
Reply
1,016 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Dear Sergio,

you welcome. Have a nice day.

With Best Regards,

Jozef

0 Kudos
Reply
945 Views
Giants
Contributor II

Thank you for the support , now work very well.

 

Sergio

%3CLINGO-SUB%20id%3D%22lingo-sub-2295282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMC33HB2000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20there!%3C%2FP%3E%3CP%3EI%20start%20to%20work%20with%20this%20driver%20i%20made%20a%20pcb%20board%20and%20if%20i%20use%20a%20digital%20input%20work%20very%20well.%20I%20try%20to%20use%20SPI%20comunication%26nbsp%3B%20but%20witout%20success%20so%20i'm%20here%20for%20ask%20a%20few%20question%20.%20First%20i%20use%20a%20STM32%20family%20and%20my%20question%20are%20%3A%3C%2FP%3E%3CP%3E-%20I%20need%20the%20put%20ENBL%20pin%20at%201%20even%20when%20i%20want%20use%20SPI%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Clock%20polarity%20active%20hight%20is%20right%20%3F%3C%2FP%3E%3CP%3E-%20Clock%20phase%201ST%20edge%20is%20right%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Max%20frequency%20i%20read%20on%20datasheet%20up%2010MHz%20but%20in%20another%26nbsp%3B%20part%20of%20datasheet%20i%20read%20max%2010Mhz%20so%20the%20right%20frequency%20is%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E-%20if%20i%20want%20read%20the%20register%20i%20need%20to%20send%200x00%20for%20read%20the%20device%20identification%200x2000%20for%20read%20status%20ect%20ect%20and%20set%20the%20bit%2015%20if%20i%20want%20write%20right%20%3F%3C%2FP%3E%3CP%3EBecause%20i%20try%20and%20right%20now%20dosen't%20work%20and%20yes%20i%20put%20the%20CS%20low%20befor%20the%20send%20data%20.%3C%2FP%3E%3CP%3ESorry%20for%20all%20this%20question%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%26nbsp%3B%3C%2FP%3E%3CP%3ESergio%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33HB2000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20soo%20much%20for%20your%20help%20i%20will%20try%20tonight%20when%20i%20back%20at%20home.%3C%2FP%3E%3CP%3EYesterday%20i%20find%20this%20document%20on%20line%20.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295672%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33HB2000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295672%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Sergio%2C%3C%2FP%3E%0A%3CP%3E-%20I%20need%20the%20put%20ENBL%20pin%20at%201%20even%20when%20i%20want%20use%20SPI%20%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%5BA%5D%20Yes%2C%20for%20both%20the%20ENBL%20pin%20must%20be%20logic%20high.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_1-1768802104150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_1-1768802104150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_1-1768802104150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_1-1768802104150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373274i9F209FD678D10F36%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_1-1768802104150.png%22%20alt%3D%22JozefKozon_1-1768802104150.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_2-1768802136717.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_2-1768802136717.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_2-1768802136717.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_2-1768802136717.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373275i0E3E8B93EB32F46D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_2-1768802136717.png%22%20alt%3D%22JozefKozon_2-1768802136717.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_3-1768802181334.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_3-1768802181334.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_3-1768802181334.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_3-1768802181334.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373276i39793D4396A805E2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_3-1768802181334.png%22%20alt%3D%22JozefKozon_3-1768802181334.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E-%20Clock%20polarity%20active%20high%20is%20right%20%3F%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%5BA%5D%20Correct.%20The%20SCLK%20line%20is%20active%20high%2C%20CPOL%3D0.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E-%20Clock%20phase%201ST%20edge%20is%20right%20%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%5BA%5D%20This%20is%20incorrect.%20The%20data%20are%20sampled%20on%20SCLK%20falling%20edge%2C%20(2nd%20edge)%2C%20CPHA%3D1.%20This%20deduces%20the%20SPI%20mode%20is%201.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_4-1768803574642.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_4-1768803574642.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_4-1768803574642.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_4-1768803574642.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373277iA019D737B2D3FB40%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_4-1768803574642.png%22%20alt%3D%22JozefKozon_4-1768803574642.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_5-1768803636543.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_5-1768803636543.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_5-1768803636543.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_5-1768803636543.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373278i2F093FAB0A54D865%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_5-1768803636543.png%22%20alt%3D%22JozefKozon_5-1768803636543.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_6-1768803749977.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_6-1768803749977.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_6-1768803749977.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_6-1768803749977.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373279i333F6B9E469390C3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_6-1768803749977.png%22%20alt%3D%22JozefKozon_6-1768803749977.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E-%20Max%20frequency%20i%20read%20on%20datasheet%20up%2010MHz%20but%20in%20another%26nbsp%3B%20part%20of%20datasheet%20i%20read%20max%2010Mhz%20so%20the%20right%20frequency%20is%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%5BA%5D%20Yes%2C%20the%20maximum%20HB2000%20SPI%20operation%20is%2010%20MHz.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_0-1768802003240.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_0-1768802003240.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_0-1768802003240.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_0-1768802003240.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373272i754E0082B31EA71C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_0-1768802003240.png%22%20alt%3D%22JozefKozon_0-1768802003240.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E-%20if%20i%20want%20read%20the%20register%20i%20need%20to%20send%200x00%20for%20read%20the%20device%20identification%200x2000%20for%20read%20status%20ect%20ect%20and%20set%20the%20bit%2015%20if%20i%20want%20write%20right%20%3F%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%5BA%5D%20Please%20find%20attached%20SPI%20HBridge%20SW%20driver.%20Included%20is%20a%20Programming%20Guide%20document.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EWith%20Best%20Regards%2C%3C%2FP%3E%0A%3CP%3EJozef%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295953%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33HB2000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295953%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Sergio%2C%3C%2FP%3E%0A%3CP%3Eyou%20welcome.%20Have%20a%20nice%20day.%3C%2FP%3E%0A%3CP%3EWith%20Best%20Regards%2C%3C%2FP%3E%0A%3CP%3EJozef%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2296711%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33HB2000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2296711%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20the%20support%20%2C%20now%20work%20very%20well.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESergio%3C%2FP%3E%3C%2FLINGO-BODY%3E