
Originally Posted by
muddy0409
In the PBP manual under SEROUT2 it shows formula for given baudrate
(1000000/8192)-20 = 102.07
So, even tho I haven't tried it personally, I reckon that setting a mode of 102 should be pretty damn close to what you are looking for?? (maybe). Anyway, worth a play?
Use these external clock : 11.141 MHz
And these defines:
Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 84 ' 8192 Baud @ 11.141MHz, 0.0%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
You have nice UATR in 18F4550 and it will be do the job.
Code is your side - see ADLD protocol on net - use the google.
Have nice job.
/Robert
Bookmarks