Menu

Microchip Xpress board - Really cool demo of using CLC to redirect CCP/PMW to LEDs

Anobium
2017-02-19
2017-02-19
  • Anobium

    Anobium - 2017-02-19

    Attached is a very, very cool demonstration of using the CLC module to implement CCP/PWM (as an LED dimmer) to overcome the physical limitations of a PCB.

    This shows how you can redirect the CCP/PWM to the boards LED's even when you cannot use PPS to redirect the CCP ports to a specific port (in this case PortA).

    The CLC module takes the CCP1/PWM values and OR's to send the CCP1/PWM to the CLC1 output. Then, using PPS redirect the CLC output to the four LEDs!

    The code is standard Great Cow BASIC with the addition of the CLC registers and the required PPS for the CLC module.

    I will add this to the next release - but, this demonstration shows that you can overcome the physical limitation of a board and the physical limitations of the microcontroller’s architecture (with respect to PPS).

    Really cool!!

     

    Last edit: Anobium 2017-02-19
  • Anobium

    Anobium - 2017-02-19

    Postscript: I have thinking about doing this since creating the Xpress board demonstrations a year ago - I just could not figure out how to did this!

    Pleased I have as the CLC module is very nice.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.