I have tried the following code and I think according to the data sheet, SPBRG = 12 is correct if the 16f690 is running at the default 8MHz clock rate and I want to set the baud rate for 9600. Not sure where I've gone wrong though as all I get is a blank LCD screen.
TRISB.6 = 1 ' p. 133 of data sheet says to set low?
TRISB.7 = 0 ' set TX to output, p.133 of data sheet says to set to 1
RCSTA = %10000000 ' Enable serial port
TXSTA = %00100000 ' Enable transmit and asynchronous mode
SPBRG = 12 ' Set baud rate to 9600 (p.139 of data sheet)
SPBRGH = 0 ' set baud rate high to low
loop:
Lcdout $fe, 1 ' Clear screen
Pause 1000 ' Wait .5 second
Lcdout "Hello" ' Display "Hello"
Pause 1000 ' Wait .5 second
goto loop