TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139563 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42559 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 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
Example

Rotary Encoder using CLC module

Rating:

0

Author: Serge Tremblay

Last Updated: 2017-01-11

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Internal MCU modules

Downloaded: 750 times

Not followed.

License: MIT license  

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 LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

CLC1

CLC1

CLC1 Config

View full image
CLC2

CLC2

CLC2 Config

View full image

This is inspired by TIP7 of the CLC Tip'n Tricks by Microchip http://ww1.microchip.com/downloads/en/DeviceDoc/41631B.pdf 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. http://cdn3.volusion.com/rxsop.cexkq/v/vspfiles/photos/AD267-2.jpg?1462545819

ALSO FROM THIS AUTHOR

RGB Led Controller Visual TFT version

0

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]

Video Poker Game

15

Classical Video Poker Game build for the PIC32MX4 and PIC32MX7 Boards. Note: The file Cards.rar needs to be uncompressed on the root of an SD card. It contains all the .bmp needed to display the cards. Edit 2012-01-09 Add a new version for the PIC32MX7 board. Use the older version for PIC32MX4.

[Learn More]

Fusion for ARM v8 CEC1302 VTFT and Gesture Demo

0

Fusion for ARM v8 VTFT definition Pattern and gesture demo for the CEC1302 MCU.

[Learn More]