That's the easy part.
Start the program
Click on EUSART calc
Enter 48 in the OSC field
Enter the baudrate in the appropriate place.
Click the "Copy PBP DEFINE's to clipboard" button
and paste them in your program.
If you don't set the HSER DEFINE's in your program. PBP defaults to 2400 baud.i remember correctly in my program that i set the baud rate anywhere.
If there is an HSEROUT or HSERIN anywhere in your program (even if it never gets executed), PBP will automatically initialize the USART at the default settings, which are too low for 48Mhz.
<br>
Bookmarks