I believe the example was for 4 or 8mhz oscillator. You need to adjust PR2 and CCCPR1L for your 40Mhz clock.
Try this calculator
http://www.micro-examples.com/public...alculator.html
I believe the example was for 4 or 8mhz oscillator. You need to adjust PR2 and CCCPR1L for your 40Mhz clock.
Try this calculator
http://www.micro-examples.com/public...alculator.html
Last edited by mark_s; - 9th May 2017 at 00:20.
Bookmarks