No, 48M cristal with define osc 48
No, 48M cristal with define osc 48
The highest crystal frequency you can use on an 18F4550 is 25Mhz (24 if using the PLL).
If it's a TTL Oscillator, then it's possible to put 48Mhz directly into the PIC with EC mode. But XT or HS modes cannot drive a 48Mhz crystal.
The configs you showed are set up for a 20Mhz crystal.
DT
Also, SPBRG 77 is the value if SPBRGH = 0, since you have SPBRGH set to 1, then SPBRG should be 56.
Jerry
If your oscilloscope costs more than your car...
Bookmarks