Take a look at the manual. It explains how to do it better than I can.
Take a look at the manual. It explains how to do it better than I can.
Dave
Always wear safety glasses while programming.
thanks for your response. I have read the manual but there is no reference to what I do, instruction or DEFINE DEFINE HSER_EVEN HSER_ODD affect HSERIN, HSEROUT, I do not use these instructions.
I thought that if I make the following I can use another type of parity:
1 .- TXTSTA Registry abilità bit TX9,
2 .- To determine the parity of the character.
3 .- I keep the result in the register TX9D
4 .- I save the data to send in the registration TXREG.
5 .- transfer the information.
for the reception:
1. I read the record RX9D
2 .- log read RXREG
3 .- parity calculation
4 .- compared with the value of RX9D.
5 .- take action.
do you think, is that correct?
What you have might work but I am not sure, I have not tried it.
This is one of those places where PBP is really worth the money, it makes this easy.
So I would suggest using the PBP DEFINES and HSERIN/OUT.
Sorry I can not help more.
Dave
Always wear safety glasses while programming.
Bookmarks