Serial output from an ATtiny85

Abstract: The serial protocol is used to display a multitude of information, and is often an indispensable aid that developers use on MCUs (microcontrollers) for debugging purposes. The ATtiny85 is a small device with a limited number of pins that has no standard serial module. This paper gives a high-level overview of the serial protocol itself, and presents code, with analysis, that can be used on an ATtiny85 to transmit data to a serial device. The code is designed to be easy to understand and conservative in its use of variable and program space. It is not aggressively optimised, though. The resulting code is less than 100 lines long, and is available online.

PDF link .

About mcturra2000

Computer programmer living in Scotland.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s