MCUdude / MiniCore

Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB
Other
979 stars 241 forks source link

SoftwareSerial on ATmega8? #15

Closed beicnet closed 7 years ago

beicnet commented 7 years ago

Hi,

Can you please implement somehow the "SoftwareSerial" support for the ATmega8 MCU?

Is it possible?

Kind regards, Viktor

MCUdude commented 7 years ago

Try using the softwareSerial library found here: https://github.com/MCUdude/MCUdude_libraries.

The latest version of MiniCore includes a version of SoftwareSerial were "regular" interrupts also can be used. On ATmega8 the TX pin can be any pin you want, but the RX pin can only be pin 2 or 3 (INT0 or INT1)

beicnet commented 7 years ago

Thank for you quick response in a first place! ;)

In that case, can I use both of Serials at the same time, or?

Regards

MCUdude commented 7 years ago

In that case, can I use both of Serials at the same time, or?

Yes, that's right. You can use the hardware serial as well as two software serial ports at the same time. That's three in total. Note that the library I linked to is modified and not well tested yet.

beicnet commented 7 years ago

Oh, great, thank you! :1st_place_medal:

beicnet commented 7 years ago

and a not related question, I can't find ATtiny85 Core on you Github, am I missing something?

MCUdude commented 7 years ago

I don't have any Arduino core for ATtiny85. Use ATTinyCore

beicnet commented 7 years ago

Ohh, sorry, I mixed you with that guy! :(

MCUdude commented 7 years ago

Did you fix this?

beicnet commented 7 years ago

Yes, everything seems fine!

Thank you again! ;)