Hello again
With this initialisation i can receive well on the terminal program if i change on that the baudrate to 9600. What can be wrong, it must be 2400, or not?
DEFINE OSC 16
'
' Initialize USART
TRISC = %10111111 ' Set TX (PortC.6) to out, rest in
SPBRG = 25 ' Set baud rate to 2400
RCSTA = %10010000 ' Enable serial port and continuous receive
TXSTA = %00100000 ' Enable transmit and asynchronous mode
'
hserout ["SCCP",13,10]
Regards
Pedro




Bookmarks