It's just too bad that there's no OSCCAL or OSCTUNE on that one
Serial com=crystal
OR manually set the USART SPBRG value and find the one that worknot something i would use...
you may try to use the same method but with SEROUT2.Code:DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0 DEFINE HSER_SPBRG 25 ' 2400 Baud @ 4MHz, 0.17% DEFINE HSER_CLROERR 1 ' Clear overflow automatically Pause 500 Start: FOR SPBRG=15 to 30 HSEROUT ["SPBRG=",#SPBRG] PAUSE 250 NEXT GOTO Start
Good luck!
PS: Use Microcode Studio serial communicator (F4), easier ....
Bookmarks