TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139250 times)
  2. FAT32 Library (71747 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28074 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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-07-09

Package Version: 2.0.0.20

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 338 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.20
  • Date : July 2024.

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

Current 2 Click

0

Current 2 Click is an accurate current sensing Click board™ suitable for a very accurate measurement of the current through the load.

[Learn More]

HEXIWEAR Workstation - MP3 Player

0

Hexiwear Workstation MP3 demo application - play songs, change tracks with one simple click, turn up or bring down the volume. EnOcean 2 click was used as a controller. See the example below for a full list of used MikroElektronika products.

[Learn More]

Volume Click

0

Volume Click is a compact add-on board that provides the user with complete digital volume control. This board features the CS3310, a stereo digital volume control designed specifically for audio systems from Cirrus Logic.

[Learn More]