Datasheet

Note: Not all of the MCUs have 16bit PWM, and not all of the MCUs have both
Timer/Counter1 and Timer/Counter3. Sometimes, like its the case with ATmega168,
MCU has only Timer/Counter1 and channels A and B. Therefore constants that have
in their name Timer3 or channel C are invalid (for ATmega168) and will not be visi-
ble from Code Assistant. It is highly advisable to use this feature, since it handles all
the constants (available) and eliminates any chance of typing error.
383
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
_PWM16_PRESCALER_16bit_1024
Sets prescaler value to 1024.
_PWM16_INVERTED
Selects the inverted PWM-16bit mode.
_PWM16__NON_INVERTED
Selects the normal (non inverted) PWM-
16bit mode.
_TIMER1
Selects the Timer/Counter1 (used with
PWM16bit_Start and PWM16bit_Stop.
_TIMER3
Selects the Timer/Counter3 (used with
PWM16bit_Start and PWM16bit_Stop.
_TIMER1_CH_A
Selects the channel A on Timer/Counter1
(used with PWM16bit_Change_Duty).
_TIMER1_CH_B
Selects the channel B on Timer/Counter1
(used with PWM16bit_Change_Duty).
_TIMER1_CH_C
Selects the channel C on Timer/Counter1
(used with PWM16bit_Change_Duty).
_TIMER3_CH_A
Selects the channel A on Timer/Counter3
(used with PWM16bit_Change_Duty).
_TIMER3_CH_B
Selects the channel B on Timer/Counter3
(used with PWM16bit_Change_Duty).
_TIMER3_CH_C
Selects the channel C on Timer/Counter3
(used with PWM16bit_Change_Duty).