Unfortunately you can't use DEFINE OSC 11
all available crystal speed are 3(3.58) 4 8 10 12 16 20 24 25 32 33 40
so this is one part of your problem. You'll use a DEFINE OSC of 10 or 12. Yep, all the timing will have to be adjusted by yourself but it's not a so much big deal.
to make it work properly, i'll suggest you use the internal USART modules and the dedicated TX/RX pins. Try something like
Code:
DEFINE OSC 10
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_SPBRG 71 ' 9600 Bauds @11.0592 MHZ
DEFINE HSER_CLOERR 1
Start:
Hserout ["Serial comm test @9600 bauds",13,10]
pause 500
goto start
about now???
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks