en-us_commands:reference:npwm_begin
This is an old revision of the document!
Table of Contents
NPWM_BEGIN()
NPWM_BEGIN() prepares pulse output with the specified frequency, duty cycle and pulse count.
void NPWM_BEGIN(uint8_t pin, uint32_t intHz, float Duty, uint32_t N)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
NPWM_BEGIN(pin, intHz, Duty, N) | uint8_t pinuint32_t intHzfloat Dutyuint32_t N | void | Prepares pulse output with the specified frequency, duty cycle and pulse count. |
Example
NPWM_BEGIN(21, 1000, 50.0F, 100);
Precautions
- Check product-specific PWM pins and timer sharing.
- Changing frequency or resolution may also affect other channels on the same timer.
- Ensure the connected load is safe when stopping or resetting outputs.
en-us_commands/reference/npwm_begin.1788785569.txt.gz · Last modified: by 127.0.0.1
