9 bit Hardware Serial for SAMD21 available


hi,

hardware serial 9 bit  samd21

if else interested use/test/enhance:

https://github.com/phiju5/hwserial9bitsamd21 (click 'compare' view changes)
'

notes:
- default hardware serial 9 not active
- change in board.txt example how add needed global compile
define (-d__hwserial9bit) duplicate , modify existing board.
perhaps aduino ide have feature 'add custom global define' per .ino file day.
- use write9bit(uint8_t data) 9th bit set (use write(uint8_t data) 9th bit not set).
this keeps exiting code standard write(uint8_t data) compatible.
- set_tx_mode()  set_rx_mode() experimental (half duplex)
- yes, rx/tx buffers memory footprint doubled


example attached (for "arduino m0 hwserial9bit" arduino ide board entry).



Arduino Forum > Products > Arduino Zero (Moderator: cmaglie) > 9 bit Hardware Serial for SAMD21 available


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???