One other question. When I'm using SPI, my settings are as follows:
Code:
SSPSTAT = %01100100
SSPCON1 = %00100001
BAUDCON = %00001111
When I switch to UART, I do the following:
Code:
SELECT case TIMER
CASE 255
SSPSTAT = 0
SSPCON1 = 0
BAUDCON = 0
PAUSE 1000
for x=1 to 10
HSEROUT ["FAN: ",DEC FAN]
pause 10
next x
SSPSTAT = %01100100
SSPCON1 = %00100001
BAUDCON = %00001111
pause 100
END SELECT
Using one or the other (initial programming), it works correctly. When I use the code above, the data goes out but it's garbled. Instead of the fan information, I get stuff like "* "
Any ideas?
Bookmarks