PDA

View Full Version : USART Settings request. My PICMulti-Calc is not working



financecatalyst
- 23rd June 2013, 16:43
Hi Can someone list the settings here from PICMultiCalc for 20MHz Osc, 16F877A @ 8N1 + 19200 Baud rate please as the calculator is not working on my computer. Thanks

LinkMTech
- 23rd June 2013, 16:54
You mean like this?

7016

financecatalyst
- 23rd June 2013, 17:19
Thanks Louie. Could you please paste the settings here for the USART which I can copy into my code.
Thanks

LinkMTech
- 24th June 2013, 01:48
Oops, I knew I forgot something...



' Mister E PIC multi-calc "USART calc"
' OSC = 20MHz
' Baudrate = 19200

RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $24 ' Enable transmit, BRGH = 1
SPBRG = 64 ' 19200 Baud @ 20MHz, 0.16%
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 64 ' 19200 Baud @ 20MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically