11-05-2024 07:10 AM
Hello everyone. I hope someone can help me. I am trying to program a motor driver and then use it with pwm mode. The problem that I2C lien SCL for programming is done with PMW pin on the chip, so this pin is used both for programming and for PWM input. I did some test and found out that if the both PWM and SCL are connected at the same time, I can not program the chip. Because when PWM input is not connected and I program the chip, the motor will start with 100% duty cycle and if after programming I connect PWM input with 50% duty cycle , the motor will go to 50% duty cycle. I think that I need to initialize PWM and set the low to Hi-Z before programming and after programming set it to push pull but I dont know how to do it. In the attachment I added a block that I am using to initialize and create PWM signal, I am not sure how I can modify it so my problem will be solved. Thank you
11-05-2024 08:50 AM
11-05-2024 09:12 AM
Typically DAQ don't have the feature to HiZ the PWM channel.
Use an additional digital line to control a switch (MOSFET, BJT or relay) whether to connect the counter output (PWM) to your motor driver.