Mus.me, the time you are using to go to sleep it seems to to be too short. You have 2.5 secs available than your micro enter into the sleep process. I would use a word (J VAR WORD) and set at least 20 seconds, otherwise you cannot even read the display.
Code:
LOOP:
j = j + 1
if j = 255 then SLP '2.5 secs is a too short time use a word
high led2
HSERIN 10,main,[DEC4 b0]
goto loop
Remove the two long pause in your code (after sleep command) otherwise when micro wakes has to process the two pauses and will loose the Tx data, and will return to sleep.
Code:
@ SLEEP
@ NOP
PAUSE 1000
HIGH PORTB.6
PAUSE 1000
LOW PORTB.6
GOTO LOOP
Al.
Bookmarks