This calculator will save you from insomnia and headaches !
This page will help you to configure the PIC TIMER2 and PWM modules, you will also get a ready-to-use C source code (for MikroC compiler).
This code generator should work with the following devices :
P12 FAMILY :
PIC12F683
P16 FAMILY :
PIC16F627 PIC16F627A PIC16F628 PIC16F628A PIC16F648A PIC16F684 PIC16F690 PIC16F716 PIC16F72 PIC16F73 PIC16F737 PIC16F74 PIC16F747 PIC16F76 PIC16F767 PIC16F77 PIC16F777 PIC16F785 PIC16F818 PIC16F819 PIC16F87 PIC16F870 PIC16F871 PIC16F872 PIC16F873 PIC16F873A PIC16F874 PIC16F874A PIC16F876 PIC16F876A PIC16F877 PIC16F877A PIC16F88 PIC16F913 PIC16F914 PIC16F916 PIC16F917 PIC16F946
P18 FAMILY :
This should work with all P18 family devices
Please use the forum to report other compliant PICs or errors.
Your PWM registers will be here C source code example : How to smoothly blink two LEDs
|