Use your forum account to login.


TOP Contributors

  1. MikroElektronika Team (339 codes)
  2. Shawon Shahryiar (222 codes)
  3. Alcides Ramos (92 codes)
  4. Dany (66 codes)
  5. O B (60 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Roman Toropov (25 codes)
  9. Alberto Trasimeni (25 codes)
  10. Arezki YOUYOU (23 codes)

Most Downloaded

  1. Timer Calculator (65073 times)
  2. Network Ethernet Library (33551 times)
  3. FAT32 Library (30891 times)
  4. Network WiFi Library (24965 times)
  5. USB Device Library (24951 times)
  6. GSM click - Example (17145 times)
  7. FT800 Library (17083 times)
  8. PID Library (16947 times)
  9. microSD click - Example (14332 times)
  10. GPS click - Example (11324 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

Rotary Encoder using CLC module


Author: Serge Tremblay

Last Updated: 2017-01-11

Category: Internal MCU modules

Downloaded: 30 times

Not followed.

This is an example code using the CLC (Configurable Logic Cell) module available in newer PIC16F and PIC24F.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Rotary Encoder using CLC module" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Rotary Encoder using CLC module" changes.

Do you want to report abuse regarding "Rotary Encoder using CLC module".

  • Information
  • Comments (0)

Download Example [134.43KB]


mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog



CLC1 Config

View full image


CLC2 Config

View full image

This is inspired by TIP7 of the CLC Tip'n Tricks by Microchip The CLC was configured in MPLABX and the code is copied to mikroC compiler. I used PIC16F18877 on an EasyPIC v7 board, but any PIC can do as long as it gets 2 CLC available. The A and B output of the rotary encoder are send to RA0 and RA1. The push button is on INT pin configured at RA2. I used that kind of cheap encoder but any can be used.


SSD1963 Driver 7 inches, 800x480, 16 bits PMP for PIC32

Here is my modified version of the __Lib_TFT_Defs.c library of the PIC32 C compiler. It permit to use the SSD1963 display in 800x480 16 bits mode with Visual TFT.

[Learn More]

RGB Led Controller Android version

A RGB Led is controlled by an Android phone with bluetooth communication.

[Learn More]

RGB Led Controller Visual TFT version

This project show how to use progress bar as slider in Visual TFT. A RGB led is connected to 3 PWM output and display the same color as the Sliders.

[Learn More]