Can you create an overloaded method for CRC calculation that accepts a single byte?
Because now, when we want to add a byte we need to create an array for this. (And trigger the GC)
crcReg = CRC.CRC_16_CCITT(new byte[] { data }, 0, 1, crcReg);
Don’t forget to remove the RTS spike at the end of each received serial byte.
RS485 support on COM2. RTS could then be used as direction-pin. RTS pin goes high right before the startbit of a byte transmission. RTS goes low immediately after the stopbit (this is done on the THR-empty interrupt).
[quote]Can you create an overloaded method for CRC calculation that accepts a single byte?
[/quote]
We will look into suggestions, thanks
[quote]Don’t forget to remove the RTS spike at the end of each received serial byte.
RS485 support on COM2. RTS could then be used as direction-pin. RTS pin goes high right before the startbit of a byte transmission. RTS goes low immediately after the stopbit (this is done on the THR-empty interrupt).[/quote]
Those are on the list already. No need for reminders