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
Printable View
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
You mean like this?
Attachment 7016
Thanks Louie. Could you please paste the settings here for the USART which I can copy into my code.
Thanks
Oops, I knew I forgot something...
Code:' 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