TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136876 times)
  2. FAT32 Library (70001 times)
  3. Network Ethernet Library (55999 times)
  4. USB Device Library (46305 times)
  5. Network WiFi Library (41924 times)
  6. FT800 Library (41208 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26397 times)
  10. microSD click (25386 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

PWM Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.0.0.18

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 256 times

Not followed.

License: MIT license  

The application demonstrates PWM functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "PWM Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "PWM Demo" changes.

Do you want to report abuse regarding "PWM Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

PWM DEMO

This is a simple example that utilizes mikroSDK 2.0 PWM driver library. In this demo, we demonstrate how to configure and enable PWM module and adjust the duty cycle using buttons. Increasing the duty cycle results in a brighter LED illumination, while decreasing it reduces the brightness.

  • Author : MIKROE
  • Version : 2.0.0.18
  • Date : June 2023.

Hardware Support

  • Put PORT LED switches in ON position.

    • image
  • Put switches for buttons on the left side of the board in PULL DOWN position

    • in case of 8-bit port:
      • image
    • in case of 16-bit port:
      • image

Software Support

We provide demo code for demonstrating the usage of functions contained in PWM driver library. To run this example, follow these steps:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and the project will open.
  5. Program it by clicking on Flash.
  6. Press PA0 to increase duty ratio or PB0 to decrease it and see how it translates to the PWM pin LED.

ALSO FROM THIS AUTHOR

IrThermo 5V click

0

IrThermo click 5V is a contactless temperature measurement device that relies on the accurate thermopile sensor chip, which encompasses both the thermopile sensor element and the ASSP. The ASSP - signal conditioning circuitry features 17bit ADC and powerful DSP which allow high degree of accuracy and wide temperature measurement range. The IrThermo click is equipped with both the 10bit PWM interface and the SMBus/I2C interface.

[Learn More]

8x8 B click

0

8x8 B click is a 64 LED matrix display Click board™, composed of SMD LEDs organized in 8 rows by 8 columns. It has a digital brightness control in 16 steps, it can control every LED in the display matrix independently, it blanks the display on power up to eliminate glitches and it requires a single resistor to control the current through all the LEDs at once, which simplifies the design. 8x8 B click uses a fast SPI communication protocol, allowing fast display response and no lag.

[Learn More]

Smart Buck 4 click

0

Smart Buck 4 Click is a compact add-on board that contains a high-frequency synchronous step-down DC-DC converter. This board features the LTS3562, a quad synchronous step-down DC-DC regulator from Analog Devices.

[Learn More]