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).
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
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.