{"id":4784,"date":"2023-08-11T11:48:18","date_gmt":"2023-08-11T19:48:18","guid":{"rendered":"https:\/\/wonghoi.humgar.com\/blog\/?p=4784"},"modified":"2023-08-11T11:48:20","modified_gmt":"2023-08-11T19:48:20","slug":"tl866cs-and-tl866a-recovery-mode","status":"publish","type":"post","link":"https:\/\/wonghoi.humgar.com\/blog\/2023\/08\/11\/tl866cs-and-tl866a-recovery-mode\/","title":{"rendered":"TL866CS and TL866A recovery mode"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>I was playing around with my TL866 programmer trying to refresh the firmware and needed to get to the recovery mode. However, it seems like the recovery mode info on <a rel=\"noreferrer noopener\" href=\"http:\/\/www.autoelectric.cn\/en\/note.html\" target=\"_blank\">http:\/\/www.autoelectric.cn\/en\/note.html<\/a> is incorrect for 2014 design (the one I have). I tried the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8ea55fc4f28d4e055a7a3893655225d7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#52;&#48;&#92;&#79;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/> as recommended with a decade box and it doesn&#8217;t work . <\/p>\n\n\n\n<p>Usually my guess that if somebody is going to set a recovery mode in a micro-controller to be enabled with some hardware path to the power supply rail with a small resistor, it&#8217;s just saying that he wants you to pull the pin high. <\/p>\n\n\n\n<p>The said pin is a digital I\/O line so I took it as a GPIO pin used for input (I might be wrong)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-6-1024x382.png\" alt=\"\" class=\"wp-image-4806\" srcset=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-6-1024x382.png 1024w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-6-300x112.png 300w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-6-768x287.png 768w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-6.png 1195w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I measured the voltage of the said regulator with a decade box. Interesting that if I flip the resistance while the unit is on, it occasionally remembers the last state when I plug it in again! (EDIT: There is a Schmitt Trigger buffer in between. The buffer type says ST for RC1. Doh!) <\/p>\n\n\n\n<p>Here are some of my measurements with a decade box:<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Resistance (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-aec5209436746bf1698d314cb55e66a0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#79;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>)<\/td><td>Voltage at RC1 in Volts (Pin 29)<\/td><td>State<\/td><\/tr><tr><td>240<\/td><td>0.273<\/td><td>Autoelectric Recommended<\/td><\/tr><tr><td>100<\/td><td>0.614<\/td><td><\/td><\/tr><tr><td>50<\/td><td>1.132<\/td><td><\/td><\/tr><tr><td>45<\/td><td>1.246<\/td><td>Mid-point<\/td><\/tr><tr><td>40<\/td><td>1.358<\/td><td><\/td><\/tr><tr><td>30<\/td><td>1.665<\/td><td>Half rail of 3.3V<\/td><\/tr><tr><td>20<\/td><td>2.157<\/td><td><\/td><\/tr><tr><td>13<\/td><td>2.503<\/td><td>Logic High<\/td><\/tr><tr><td>3<\/td><td>3.041<\/td><td><\/td><\/tr><tr><td>1<\/td><td>3.185<\/td><td><\/td><\/tr><tr><td>0 (wire resistance)<\/td><td>3.191<\/td><td>Short \/ Full rail 3.3V<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>My guess is that the internal pull-ups config, open-drain changed between versions so the formula to temporarily override (fight) the default resistance that sets the logic level to 0 (basically it&#8217;s a tug of war) changed, so the suggested value no longer work consistently. <\/p>\n\n\n\n<p>It puzzles me why a 240<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-aec5209436746bf1698d314cb55e66a0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#79;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> which gives <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-6909cc833a7d3da4bc315c5ac1efdcbb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;&#46;&#50;&#55;&#51;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"55\" style=\"vertical-align: 0px;\"\/> will be qualified as a logic high by any stretch. Even assuming <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8aa499e28d851c337e7a6facf2f84413_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;&#95;&#123;&#68;&#68;&#125;&#61;&#50;&#46;&#53;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"95\" style=\"vertical-align: -3px;\"\/> (the supply is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-48241cd5403b75e67c878aa29aef0323_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#51;&#46;&#51;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"37\" style=\"vertical-align: 0px;\"\/>, but this chip has a internal <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-c60dd809de73b868ae6ef577567e7de9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#46;&#53;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"37\" style=\"vertical-align: 0px;\"\/> regulator for data lines), <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8ea55fc4f28d4e055a7a3893655225d7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#52;&#48;&#92;&#79;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/> sits comfortably in the &#8216;low for sure&#8217; bin given it&#8217;s <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-176e82cc4f858c2a3fac99641c069803_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#101;&#32;&#48;&#46;&#50;&#86;&#95;&#123;&#68;&#68;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"73\" style=\"vertical-align: -3px;\"\/>, which is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-b5d37a7f9f0ebfb2b878ba4c0c44bef4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;&#46;&#53;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"37\" style=\"vertical-align: 0px;\"\/>. This is how this project got started.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"642\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-7-1024x642.png\" alt=\"\" class=\"wp-image-4812\" srcset=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-7-1024x642.png 1024w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-7-300x188.png 300w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-7-768x482.png 768w, https:\/\/wonghoi.humgar.com\/blog\/wp-content\/uploads\/2022\/12\/image-7.png 1229w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The limbo range for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/ql-cache\/quicklatex.com-8aa499e28d851c337e7a6facf2f84413_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;&#95;&#123;&#68;&#68;&#125;&#61;&#50;&#46;&#53;&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"95\" style=\"vertical-align: -3px;\"\/> is 0.5V to 2.0V<\/figcaption><\/figure>\n\n\n\n<p>Given it&#8217;s a 3.3V\/2.5V capable microcontroller, I&#8217;m confident that no manufacturer will design their CPU so that it&#8217;d be harmed by forcing a 2.5V logic level line high with 3.3V, and my guess is correct (the digital lines tolerates up to 5.5V). <\/p>\n\n\n\n<p>Just tying the RC1 (Pin 29 where R26 interface with) to the 3.3V rail from the regulator do the trick. No heat-ups, no blow-ups, no malfunctions.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_4784\" class=\"pvc_stats all  \" data-element-id=\"4784\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I was playing around with my TL866 programmer trying to refresh the firmware and needed to get to the recovery mode. However, it seems like the recovery mode info on http:\/\/www.autoelectric.cn\/en\/note.html is incorrect for 2014 design (the one I have). &hellip; <a href=\"https:\/\/wonghoi.humgar.com\/blog\/2023\/08\/11\/tl866cs-and-tl866a-recovery-mode\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4784\" class=\"pvc_stats all  \" data-element-id=\"4784\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[18,41],"tags":[],"class_list":["post-4784","post","type-post","status-publish","format-standard","hentry","category-electronics","category-repair"],"_links":{"self":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/4784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/comments?post=4784"}],"version-history":[{"count":25,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/4784\/revisions"}],"predecessor-version":[{"id":4964,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/4784\/revisions\/4964"}],"wp:attachment":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/media?parent=4784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/categories?post=4784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/tags?post=4784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}