MC33HB2000 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 Re: MC33HB2000 Thank you soo much for your help i will try tonight when i back at home. Yesterday i find this document on line . Re: MC33HB2000 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.
- 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.
- 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.
- 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 Re: MC33HB2000 Dear Sergio,
you welcome. Have a nice day.
With Best Regards,
Jozef Re: MC33HB2000 Thank you for the support , now work very well. Sergio
記事全体を表示