Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Proposal to improve SoftwareSerial #1198
see also - http://arduino.cc/forum/index.php?topic=138497.0 -
Investigated if the magic numbers in SoftwareSerial to determine the bit timing could not be replaced by formulas.
the colums named - rxintra rxstop - are in every table identical so merging that would save footprint.
It appeared that the timing tables can be replaced by formulas that gives smaller footprint and enables non-standard baud rates over SoftwareSerial. This latter allows to compensate the baud rate a bit if the baud rate of the other devices differs due to clock differences.
-- 16Mhz formulas:
-- 8Mhz formulas (not tested)
-- 20Mhz formulas (not tested)
Only tested the 16Mhz version and the behaviour tested so far is identical to the table driven version.