2025-05-19 1:36 PM - last edited on 2025-05-19 2:30 PM by Peter BENSCH
Hi everyone,
i am strugglig for a while trying to bring vn9e30f 24bit spi high side driver to life. Don't you know about any "sample" software which shows exact way how to change (for example on channel 0) duty cycle on given channel ? I tried almost anything. On O-scope with SPI decoding, everything looks fine(watchdog toggling, parity....) i guess, but i am still not getting any output. (i am using EV-VN9E30F evaluation board SDI connected to MOSI, SDO to MISO, providing PWM freq etc...)
I attached my sample code.
Thanks for your response.
Jan
2025-06-15 8:58 PM
Hi,
Did you manage to get this working?
I can see a few errors - the first one would be the parity calculation is incorrect.Also the device needs to be in "normal" mode before use.
You will need to read data from the device - especially the global status to confirm the device is in the correct mode. To do this simultaneous SPI read and write "In-frame response" is required using HAL_SPI_TransmitReceive() or its interrupt/DMA variants.
Cheers,
Dan
2025-06-16 12:27 AM
Hi, yes I managed to get it working, my EV board was probably damaged, and yes I had as well problem problem in parity calculation. Now my device works perfectly, beside ADC measurements. I am gettin weired current readings, when I have 100% duty cycle everyhing is ok and current is the same as I see on my multimeter. But when I start lowering dutycycle it measured current starts rising... I know the current would be choppy,when using pm, but I tried setting various trigger mechanism for adc starting and I am not wise from it. I am using bulb mode, not LED mode.
Thanks
Jan