Defining HSER2_TXSTA made all the difference. I thought the compiler would set this register according to the defines for the BITS and the EVEN, but apparently not. It also explains why I got poor...
Type: Posts; User: svjohngalt; Keyword(s):
Defining HSER2_TXSTA made all the difference. I thought the compiler would set this register according to the defines for the BITS and the EVEN, but apparently not. It also explains why I got poor...
I do want to also ask how does the compiler set the values for baud and parity?
If I set the TXSTA2 register manually, I think with a 24 then I setting the BAUDCON register can set the baud rate....
In my serial application I am setting the second port to 9600 8E1.
define HSER2_BAUD 9600
DEFINE HSER2_BITS 9
define HSER2_EVEN 1
DEFINE HSER2_CLROERR 1
These are the only DEFINEs I am...