I'm not sure you'll get the hardware USART to work at 115200 bps, but you can work with this data rate using DEBUG & DEBUGIN.
I've tested this on a 16F876A with max232/PC connection.
Code:DEFINE OSC 20 DEFINE DEBUG_REG PORTC DEFINE DEBUG_BIT 6 ' USART TX pin DEFINE DEBUG_MODE 0 ' 0 = true for max232 inversion DEFINE DEBUGIN_REG PORTC DEFINE DEBUGIN_BIT 7 ' USART RX pin DEFINE DEBUGIN_MODE 0 DEFINE DEBUG_BAUD 115200 X VAR BYTE Y VAR BYTE Z VAR BYTE MAIN: DEBUGIN [WAIT("A"),X,Y,Z] DEBUG X,Y,Z,13,10 GOTO MAIN END




Bookmarks