Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • thanx, GPT gave me some dumb code, but still, it don't work Commented Feb 9 at 15:11
  • 1
    Your code isn't any better than the original. You've just distributed the delays differently. But both versions fail to transmit a full stop bit, which becomes a problem when sending bytes back-to-back. Commented Feb 9 at 15:51
  • Start bit is the important part, stop bit isn't quite needed here as the receiving routine expects only 8 bits after this start bit, and then just stops reading after the whole byte has been read. I just cannot locate the problem... Commented Feb 9 at 17:06
  • @DaveTweed Compared to the code originally in the question when I wrote my answer, the answer solved the three pinpointed problems. These improvements were later incorporated in the code in the question. Commented Feb 9 at 20:57
  • @Milos There might be some timing problems on the ATtiny13. A possible solution to this is added to my answer. Commented Feb 9 at 20:57