damellis / attiny

ATtiny microcontroller support for the Arduino IDE
720 stars 226 forks source link

Software Serial requiring 8 MHz clock false or not? #87

Closed deskwizard closed 8 years ago

deskwizard commented 8 years ago

I would like some precision as per the validity of that statement for the following reasons:

1) Software Serial is working at 9600bps using 8MHz clock 2) 8 divided by 8 is 1. 3) 9600 divided by 8 is 1200.

As per those 3 statements, Software Serial works at 1200 bps using a 1 MHz clock.

And since this is all logic, here is number 4:

4) Tested working. Core v.1.0.1, IDE v1.6.7

I would just like to know if I am missing something obvious here as per the reason for that requirement/statement.

Thank you. Charles Dorval (deskwizard)

deskwizard commented 8 years ago

Also false: "And there’s no hardware serial port or I2C port" > it's called USI.

damellis commented 8 years ago

SoftwareSerial used to not work at 1 MHz (because of a lack of a dedicated timing table at that speed). Now it does work at 1 MHz so I revised the tutorials. Thanks for pointing this out!