Datasheet

PWM16bit_Start
PWM16bit_Stop
387
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void PWM16bit_Start(unsigned int timer);
Returns Nothing.
Description
Starts PWM-16bit module with alredy preset values (wave mode, prescaler,
inverted and duty) given in the PWM16bit_Init.
Requires
MCU must have CMO module to use this library. PWM16bit_Init must be called
before using this routine, otherwise it will have no effect as the PWM module is
not initialised.
Example
PWM16bit_Start( _TIMER1 ); // Starts the PWM-16bit module
on Timer/Counter1
or
PWM16bit_Start( _TIMER3 ); // Starts the PWM-16bit module
on Timer/Counter3
Prototype
void PWM16_Stop(unsigned int timer);
Returns Nothing.
Description Stops the PWM-16bit module, connected to Timer/Counter set in this stop function.
Requires
MCU must have CMO module to use this library. Like in PWM16bit_Start before,
PWM16bit_Init must be called before using this routine , otherwise it will have
no effect as the PWM module is not running.
Example
PWM16bit_Stop( _TIMER1 ); // Stops the PWM-16bit module on
Timer/Counter1
or
PWM16bit_Stop( _TIMER3 ); // Stops the PWM-16bit module on
Timer/Counter3