{"id":3449,"date":"2021-07-12T11:58:22","date_gmt":"2021-07-12T09:58:22","guid":{"rendered":"http:\/\/www.dclabs.lt\/dainiaus\/?p=3449"},"modified":"2021-07-15T15:54:52","modified_gmt":"2021-07-15T13:54:52","slug":"ch341-mod-for-33v","status":"publish","type":"post","link":"https:\/\/www.dclabs.lt\/dainiaus\/ch341-mod-for-33v\/","title":{"rendered":"CH341 mod for 3,3V"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Thought I will write this post in English. Not because its something global, but to practice the language. For a long time used the Chinese programmer CH341, basically for 5V IC&#8217;s, but now I needed to program BIOS on the video card (should be separate post about the repair of it). The EPROM with BIOS should be powered by 1,8V and I was surprised, that originally it is powered by 3,3V, by the power supply on the video card. Not much of a help, because I did not have a 1,8V or 3,3V programmer. But I remember, when I received couple of CH341&#8217;s I saw a 3,3V converter on board. It uses AMS1117 chip to make 3,3V, but strange &#8211; there is no way to switch to 3,3V power supply for the programmed IC. I mean, the CH341 is always powered by 5V from USB, and it cant be switched to have 3,3V on the programming pins (CS, CLK, MISO, MOSI, etc). Its, probably, a mistake, made by the creator of that PCB. A mistake, which can be easily corrected.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"307\" src=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341.jpg\" alt=\"\" class=\"wp-image-3451\" srcset=\"https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341.jpg 400w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341-300x230.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Lets analyze a bit how to properly do the 3,3V mod. First, the AMS1777. It looks like a clone of LM1117 by Texas Instruments :D.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image-1024x400.png\" alt=\"\" class=\"wp-image-3452\" srcset=\"https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image-1024x400.png 1024w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image-300x117.png 300w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image-768x300.png 768w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image-1536x600.png 1536w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/image.png 1976w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The middle pin and tab of the package are outputs, giving 3,3V, we will take them from here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While writing this found the CH341 programmer schematics:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341a_miniprogrammer.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"551\" src=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341a_miniprogrammer.png\" alt=\"\" class=\"wp-image-3453\" srcset=\"https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341a_miniprogrammer.png 840w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341a_miniprogrammer-300x197.png 300w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341a_miniprogrammer-768x504.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The CH341 chip has only one positive power supply pin, so we will have to disconnect it from 5V and connect it to 3,3V. This should make it output 3,3V on all pins. According to <a href=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341ds1.pdf\" data-type=\"URL\" data-id=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/ch341ds1.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">CH341 datasheet<\/a>, it supports both 5V and 3,3V, so we&#8217;re OK here. The datasheet is written in Chinglish, so I had to think what the hell do they mean by this:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>CH341 support 5V and 3.3V source voltage. When working on 5V source voltage, the VCC input 5V<br>power from outside, and V3 connects to 4700pF or 0.01uF decoupling capacitance. If the work power is<br>3.3V, connect V3 to VCC, input 3.3V source voltage. The voltage of other circuit which is connected to<br>CH341 is no pass than 3.3V.<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">I decided, that this means if chip is powered by 3,3V, I should connect the V3 (pin 9) to VCC. Leaving the last sentence for you to crack :D. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The work took just a couple of minutes &#8211; lifted the pin 28 from PCB, soldered one strand of copper wire, routed that wire to pin 9, soldered to pin 9 and went to the finish on the 1117 tab. Looks like this:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"1024\" src=\"http:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042-930x1024.jpg\" alt=\"\" class=\"wp-image-3454\" srcset=\"https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042-930x1024.jpg 930w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042-273x300.jpg 273w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042-768x846.jpg 768w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042-1395x1536.jpg 1395w, https:\/\/www.dclabs.lt\/dainiaus\/wp-content\/uploads\/2021\/07\/IMG_20210709_2351042.jpg 1635w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Surprisingly &#8211; it reads and writes the BIOS on the video card, thus leaving it in my programmers box as a cheap but still useful tool.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thought I will write this post in English. Not because its something global, but to practice the language. For a long time used the Chinese programmer CH341, basically for 5V IC&#8217;s, but now I needed to program BIOS on the video card (should be separate post about the repair of it). The EPROM with BIOS&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-3449","post","type-post","status-publish","format-standard","hentry","category-programatoriai"],"_links":{"self":[{"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/posts\/3449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/comments?post=3449"}],"version-history":[{"count":7,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/posts\/3449\/revisions"}],"predecessor-version":[{"id":3461,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/posts\/3449\/revisions\/3461"}],"wp:attachment":[{"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/media?parent=3449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/categories?post=3449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dclabs.lt\/dainiaus\/wp-json\/wp\/v2\/tags?post=3449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}