Nuvo-2500 Series User’s Manual
Copyright © 2015 Neousys Technology Inc. All Right Reserved.
Page 132 of 154
5.6.1.4 PWM_GenPeriod
Syntax
BOOL PWM_GenPeriod(DWORD genBits, DWORD period);
Description
Sets the period of a PWM generator.
Parameter
genBits
[in]
Specifies the generator block bits of PWM controllers.
period
[in]
Speci
fies the period of PWM generator output, measured in clock ticks
.
Return Value
Returns TRUE if procedure successes, FALSE if procedure failed.
Usage
BOOL ret = PWM_GenPeriod(PWM_GEN_0 | PWM_GEN_1, 800); // 100 KHz