Skip to content

Is not 10Khz , please tell me how to set the 10kHz pwm #28

Open
@xuhongv

Description

Because the 1Khz pwm then period = 5000 , so I want the 10kHz pwm , and I set code as:

        pwm_init(500,pwm_duty_init, 4, io_infos);
	pwm_set_duty(10,0);
	pwm_set_duty(500,1);
	pwm_set_duty(51,2);
	pwm_set_duty(102,3);
	pwm_start();`

but show result : (is not 10Khz , please tell me how to set the 10kHz pwm )

22

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions