Is it possible to read serial from ATTiny 13a with Arduino?

Anybody can read some serial data from ATTiny 13A?

I dont know arduino but I have no problem when using command avrdude -p t13 -c usbasp -n

See also here

I believe extreme burner is reading it also

i dont wanna read the code…i will receive serial data from the attiny :wink:

There is no serial port in the tinys…I am sure some hackers have already made this with software but I don’t see any sense in that.

So the answer is no.

http://www.avrfreaks.net/forum/implement-serial-attiny13

Check out Communication with Tiny's for some pointers about Attiny serial communications. Most of the libraries likely won’t fit on a Attiny13A. The one that will fit likely won’t leave enough room for the flashlight firmware we typically use. If you can swap the 13A for a Attiny45 I think you could make it work — and possible a Attiny25.

Thank you very much guys! I think I will switch on the Attiny25 :wink:

I target an Attiny13A but I develop with an Attiny25 so I have some elbow room to experiment. That way I don’t need to always optimize for space. I hate running over by a few bytes when I just want to “blue sky” a bit.

Until you mentioned serial logging it hadn’t occurred to me to use some of the extra space to include a serial communications library to print debugging info to a PC.

Thanks for the inspiration.

Update

Here is what I found. It’s quite compact. Check out the link to an updated version about half way down the page.

I have it sending diagnostics to an Intel Edison using a simple voltage divider as a level shifter.

Something that I did not know until now is that the “.S” extension is case sensitive. Assemble it using avr-gcc and the uppercase “S” enables the C preprocessor — which is needed here.