Mikroelektronika MIKROE-350 データシート

ページ / 526
PWM 16 BIT LIBRARY
CMO module is available with a number of AVR MCUs. mikroBasic PRO for AVR
provides library which simplifies using PWM HW Module.
Note: For better understanding of PWM module it would be best to start with the
example provided in Examples folder of our mikroBasic PRO for AVR compiler.
When you select a MCU, mikroBasic PRO for AVR automaticaly loads the correct
PWM-16bit library, which can be verified by looking at the Library Manager. PWM
library handles and initializes the PWM module on the given AVR MCU, but it is up
to user to set the correct pins as PWM output, this topic will be covered later in this
section. 
Library Routines
- PWM16bit_Init 
- PWM16bit_Change_Duty 
- PWM16bit_Start 
- PWM16bit_Stop 
317
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6