Don't you need to set U1BRG register in relation with your oscillator frequency as to get the correct baud rate?
When BRGH = 1 for High baud rate then U1BRG = (Fosc/4 * Buad Rate) - 1
When BRGH = 0 for Low Baud rate then U1BRG = (Fosc/16 * Buad Rate) - 1
Could be wrong. Better check up the datasheet.
This post has been edited by Cerita Dongeng: Aug 7 2009, 05:54 PM
Hobbies Electronics Enthusiasts Club, All elect/robotics lovers! pls come!
Aug 7 2009, 05:28 PM
Quote
0.0210sec
0.62
7 queries
GZIP Disabled