File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ data until the next read call.
57
57
For the swsertest.ino example, this results in the following optimized
58
58
constructor arguments to spend only the minimum RAM on buffers required:
59
59
60
- The octet buffer capacity (`` bufCapacity `` ) is 93 (91 characters net plus two tolerance).
61
- The signal edge detection buffer capacity (`` isrBufCapacity `` ) is 10, as each octet has
62
- 10 bits on the wire, which are immediately received during the write, and each
60
+ The octet buffer capacity (`` bufCapacity `` ) is 95 (93 characters net plus two tolerance).
61
+ The signal edge detection buffer capacity (`` isrBufCapacity `` ) is 11, as each
62
+ single octet can have up to 11 bits on the wire,
63
+ which are immediately received during the write, and each
63
64
write call causes the signal edge detection to promote the previously sent and
64
65
received bits to the octet buffer.
65
66
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ SoftwareSerial swSer;
31
31
void setup () {
32
32
Serial.begin (115200 );
33
33
// Important: the buffer size optimizations here, in particular the isrBufSize (11) that is only sufficiently
34
- // large to hold a single 8N1 word, are on the basis that any char written to the loopback SoftwareSerial
34
+ // large to hold up to a single word (up to 8E2) , are on the basis that any char written to the loopback SoftwareSerial
35
35
// adapter gets read before another write is performed.
36
36
// Block writes with a size greater than 1 would usually fail. Do not copy this into your own project without
37
37
// reading the documentation.
You can’t perform that action at this time.
0 commit comments