Aditionally i was also wondering what are the clock requirements to do so. Lets immagine I use the built in oscillator on the mega328, running at 8Mhz:
Quote from: casemod on Jul 27, 2014, 02:14 pmAditionally i was also wondering what are the clock requirements to do so. Lets immagine I use the built in oscillator on the mega328, running at 8Mhz:.. in which case it's unlikely to work. Serial data needs very accurate timing.Why do you need serial? There's lots of better, faster, more reliable ways to transmit data.
According to atmel the factory RC can be trimmed to 1%. Has anyone did did on arduino?
Yes, lots of people.Search the forums for "SoftwareSerial", see for yourself how much trouble it causes...even with trimming.
Software serial has issues even running with a crystal, so its not a great comparison to start with.
a tuned internal oscillator
if by twice as accurate as hardware uart (2x resolution), more portable, less code, and more flexible protocols then you are correct. in fact its about the only way to guarantee reliable operation of 115k at 8mhz. the only place where uart excels is when doing many other things concurrently. even then, using pin ints in conjunction w/softserial reduces that problem.
f you really twist my arm i can post code for serial in that is 3/4 the smallest hw routine.