Mein PWM Ausgang schweigt mich an...
Verfasst: Mi 28. Apr 2021, 10:44
....wusste nix Besseres für den Titel
folgende Parameter
https://www.microplexlab.com/docs/userc ... e-pwm.html
Das Modul mit HCS08 µP ist ähnlich wie oben beschrieben
Befehl: os_pwm_duty_cycle (uint8_t i, uint16_t pwm_promille, uint16_t pwm_frequency, uint16_t pwm_dither_promille, uint16_t pwm_dither_frequency)
Parameters:
i, select the HSD output pin.
Bei diesem Modul ist es PWM_IO2
pwm_promille, set the PWM ducty cycle in thousands, 0-1000 for 0-100 percent
Hier: PWM duty cycle (value range from 0 to 1000).
pwm_frequency, set the output frequency in hertz
Hier: output frequency from 20Hz to 1kHz, max frequency, high side driver.
pwm_dither_promille, set the dither amplitude in thousands, set to "0" if not needed
pwm_dither_frequency, set the dither frequency. Must be lower than pwm_promille. Set to "0" if not needed
bei mir heisst es dann so:
os_pwm_duty_cycle( PWM_IO2, pwm_out2_duty, pwm_out2_freq, 0, 0 );
oder
os_pwm_duty_cycle( PWM_IO2, 500, 200, 0, 0 );
aber schweigen im Walde, weder Oszi, Multimeter, LED nix
Zum Test:
os_digout( OUT_HSD2, 1 ); setzt ihn brav auf 12V bin also am richtigen Pin
Es ist zum Mäuse melken, was kann es sein
cu
jodurino
folgende Parameter
https://www.microplexlab.com/docs/userc ... e-pwm.html
Das Modul mit HCS08 µP ist ähnlich wie oben beschrieben
Befehl: os_pwm_duty_cycle (uint8_t i, uint16_t pwm_promille, uint16_t pwm_frequency, uint16_t pwm_dither_promille, uint16_t pwm_dither_frequency)
Parameters:
i, select the HSD output pin.
Bei diesem Modul ist es PWM_IO2
pwm_promille, set the PWM ducty cycle in thousands, 0-1000 for 0-100 percent
Hier: PWM duty cycle (value range from 0 to 1000).
pwm_frequency, set the output frequency in hertz
Hier: output frequency from 20Hz to 1kHz, max frequency, high side driver.
pwm_dither_promille, set the dither amplitude in thousands, set to "0" if not needed
pwm_dither_frequency, set the dither frequency. Must be lower than pwm_promille. Set to "0" if not needed
bei mir heisst es dann so:
os_pwm_duty_cycle( PWM_IO2, pwm_out2_duty, pwm_out2_freq, 0, 0 );
oder
os_pwm_duty_cycle( PWM_IO2, 500, 200, 0, 0 );
aber schweigen im Walde, weder Oszi, Multimeter, LED nix
Zum Test:
os_digout( OUT_HSD2, 1 ); setzt ihn brav auf 12V bin also am richtigen Pin
Es ist zum Mäuse melken, was kann es sein
cu
jodurino