-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PA1 for spindle pwm out ? #24
Comments
Seems it is possible, from PA1 spec: You can do it? |
I will try to do it. If I am not successful, I will inform you, |
I have modified the driver.h file for SPINDLE PWM on PA1, gives output when SPINDLE_PWM_TIMER_INV set to 1, output does not work when set to 0 // Define timer allocations. #ifdef SPINDLE_PWM_PORT_BASE #if SPINDLE_PWM_PORT_BASE == GPIOA_BASE |
That is a bit odd, is this with a cloned MCU or genuine one?
The scope trace does not tell me anything. What is wrong with it? Should it be 5KHz? |
I guess I didn't fully explain the problem. The output of the oscilloscope indicates that the output of the generated signal is inverted. The expected signal should be invertesd to the signal on the oscilloscope, how should we set it up? The generated PWM signal should be a signal for the BESC spindle as shown below appears on the oscilloscope. |
real mcu, i am using BTT SKR MINI E3 V2.0 3D printer board |
|
There is a nasty bug here, wonder if it is this that trips it up for PA1? The line should be:
|
good catch, it works now. that is, we can use two different pins (PA1 and PA8) for the pwm spindle output on the BTT SKR MINI E3 V2.0 3D printer board. in driver.h latest revision code as below // Define timer allocations. #ifdef SPINDLE_PWM_PORT_BASE #if SPINDLE_PWM_PORT_BASE == GPIOA_BASE |
Can we use PA1 instead of PA8 as spindle pwm output?
The text was updated successfully, but these errors were encountered: