I try to turn on a square signal in 40K frequency with the timers of pic18f
I use mcc18
But I receive in the output pin a wave with 20 MHz that is the frequency of the crystal
When I define the timer clock source to be internal it work fine
The problem is when I change the source to be external then I always receive 20 MHz and this is not matter what I do