Skip to main content
10 events
when toggle format what by license comment
Oct 19, 2018 at 13:47 comment added Rokta Definitely, wire PWM also to one of pins of microprocessor and configure interupt on pin state change.
Oct 19, 2018 at 13:01 comment added user115094 I'm using this sensor in the emitter leg of a power IGBT switched at 5 kHz PWM. Do you think it's possible to synchronize the PWM on-time with the current measurement?
Oct 19, 2018 at 11:58 comment added Rokta depend on what you do with information from sensor, if you want to integrate it then interrupt is better, if you want to only display it then it could be in main loop.
Oct 19, 2018 at 11:47 comment added user115094 Should I read the SPI in the main loop or create a timer based interrupt to read SPI at a fixed frequency?
Oct 19, 2018 at 10:52 comment added user115094 SPIRx is just a variable a created to store the SPI data.
Oct 19, 2018 at 8:32 history edited Rokta CC BY-SA 4.0
added 160 characters in body
Oct 19, 2018 at 8:29 comment added Rokta You are probably right, but STM32 sometimes use NAMEx in examples
Oct 19, 2018 at 8:13 comment added jaskij SPIRx does not look like a register definition for STM32. Usually it would be SPI1->RX
Oct 19, 2018 at 7:49 history edited Rokta CC BY-SA 4.0
added 1 character in body
Oct 19, 2018 at 7:42 history answered Rokta CC BY-SA 4.0