MC33HB2000

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

MC33HB2000

Jump to solution
1,335 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,257 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,258 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,249 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,244 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Dear Sergio,

you welcome. Have a nice day.

With Best Regards,

Jozef

0 Kudos
Reply
1,173 Views
Giants
Contributor II

Thank you for the support , now work very well.

 

Sergio