{"id":100,"date":"2011-06-16T04:41:25","date_gmt":"2011-06-16T04:41:25","guid":{"rendered":"15bc7e76-40d8-4dc4-93b1-c121c333b49b"},"modified":"2011-09-18T06:16:44","modified_gmt":"2011-09-18T06:16:44","slug":"software-usb-to-serial","status":"publish","type":"post","link":"http:\/\/zethus.ca\/wp\/?p=100","title":{"rendered":"Software usb to serial"},"content":{"rendered":"<p><a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/09\/P6140001.jpg\"><img loading=\"lazy\" style=\"padding-right: 10px; padding-bottom: 10px; width: 160px; height: 120px;\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2011\/09\/P6140001.jpg\" alt=\"\" width=\"160\" height=\"120\" \/><\/a>Ok so this was crazy. I spent 3 hours putting together this usb to serial converter, based on this design: <a href=\"http:\/\/www.recursion.jp\/avrcdc\/cdc-232.html\">http:\/\/www.recursion.jp\/avrcdc\/cdc-232.html<\/a> .  It is based on an attiny45.  It worked first time.  But what a mess. Max baud rate is 4800 for this part, but it will do the job.  You will see the application in the next post<\/p>\n<p>By the way this blog is moving to <a href=\"http:\/\/www.zethus.ca\/ELX\">www.zethus.ca\/ELX<\/a>.  Update your links!<\/p>\n<p>Update: buddy at recursion messed up the serial interrupt edge in the code when using ttl levels. Here is the patch:<br \/>\nChucks-Mac:tiny45 chuck$ diff uart.h.bad uart.h<\/p>\n<p>61a62,64<br \/>\n&gt; #ifdef UART_INVERT<br \/>\n&gt; #define UART_INTR_CFG_SET        (_BV(ISC01)|_BV(ISC00))  \/*  int on rising edge *\/<br \/>\n&gt; #else<br \/>\n62a66<br \/>\n&gt; #endif<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok so this was crazy. I spent 3 hours putting together this usb to serial converter, based on this design: http:\/\/www.recursion.jp\/avrcdc\/cdc-232.html . It is based on an attiny45. It worked first time. But what a mess. Max baud rate is &hellip; <a href=\"http:\/\/zethus.ca\/wp\/?p=100\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/100"}],"collection":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":1,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":164,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/164"}],"wp:attachment":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}