Mikroelektronika MIKROE-350 Data Sheet

Page of 526
Note: Not all of the MCUs have both PWM and PWM1 library included. Sometimes, like its the
case with ATmega8515, MCU has only PWM library. Therefore constants that have in their
name PWM1 are invalid (for ATmega8515) and will not be visible from Code Assistant. It is
highly advisable to use this feature, since it handles all the constants (available) nad eliminates
any chance of typing error.
309
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
_PWM_PRESCALER_256
Sets prescaler value to 256.
_PWM_PRESCALER_1024
Sets prescaler value to 1024.
_PWM1_PRESCALER_1
Sets prescaler value to 1 on second PWM library (if it
exists in Library Manager).
_PWM1_PRESCALER_8
Sets prescaler value to 8 on second PWM library (if it
exists in Library Manager).
_PWM1_PRESCALER_32
Sets prescaler value to 32 on second PWM library (if it
exists in Library Manager). This value is not available
on every MCU. Please use Code Assistant to see if this
value is available for the given MCU.
_PWM1_PRESCALER_64
Sets prescaler value to 64 on second PWM library (if it
exists in Library Manager).
_PWM1_PRESCALER_128
Sets prescaler value to 128 on second PWM library (if it
exists in Library Manager). This value is not available
on every MCU. Please use Code Assistant to see if this
value is available for the given MCU.
_PWM1_PRESCALER_256
Sets prescaler value to 256 on second PWM library (if it
exists in Library Manager).
_PWM1_PRESCALER_1024
Sets prescaler value to 1024 on second PWM library (if
it exists in Library Manager).
_PWM_INVERTED
Selects the inverted PWM mode.
_PWM1_INVERTED
Selects the inverted PWM mode on second PWM
library (if it exists in Library Manager).
_PWM_NON_INVERTED
Selects the normal (non inverted) PWM mode.
_PWM1_NON_INVERTED
Selects the normal (non inverted) PWM mode on sec-
ond PWM library (if it exists in Library Manager).