simple Pics don't have parity, but there is a possibility to choose 9 databits, so the 9th bit could be the (self calculated) parity.
The 9 bit option is greyed out, how do i set this up?
How do i send the 9th bit to the uart register (txsta.tx9d)?
I assume i have to change the code of the RS232 component (initialisation and TX).
When i look at the code of the RS232 component i don't understand all the %m things (i am not a C programmer). Is there somewhere help on how to understand the setup so i might figure out how to do this?
On the Sendchar code i found:
#if(%m_DATASIZE == 1)
if (test_bit(nChar,
![Cool 8)](./images/smilies/icon_cool.gif)
st_bit(txsta, TX9D);
else
cr_bit(txsta, TX9D);
#endif
This looks like something usefull, but i have no clue on how to adapt this.
Perhaps MM can enlighten me.