mirror of
https://github.com/FunKey-Project/FunKey-Project.github.io.git
synced 2025-12-16 12:18:51 +01:00
1 line
54 KiB
HTML
1 line
54 KiB
HTML
<!doctype html><html lang=en class=no-js> <head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=description content="FunKey S - the world's smallest foldable handheld console Ultra-compact, foldable, powerful and comfortable, the FunKey S is the perfect handheld for playing retrogames anywhere, anytime."><meta name=author content="Michel Stempin"><link href=https://doc.funkey-project.com/developer_guide/hardware_reference/power/pmic/ rel=canonical><link href=../multiple_voltages/ rel=prev><link href=../dram_power/ rel=next><link rel=icon href=../../../../assets/favicon.png><meta name=generator content="mkdocs-1.6.0, mkdocs-material-9.5.21"><title>PMIC - FunKey Project Documentation</title><link rel=stylesheet href=../../../../assets/stylesheets/main.66ac8b77.min.css><link rel=stylesheet href=../../../../assets/stylesheets/palette.06af60db.min.css><link rel=preconnect href=https://fonts.gstatic.com crossorigin><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback"><style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style><link rel=stylesheet href=../../../../assets/css/custom.css><link rel=stylesheet href=../../../../assets/css/simple-lightbox.min.css><script>__md_scope=new URL("../../../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script></head> <body dir=ltr data-md-color-scheme=default data-md-color-primary=deep-purple data-md-color-accent=indigo> <input class=md-toggle data-md-toggle=drawer type=checkbox id=__drawer autocomplete=off> <input class=md-toggle data-md-toggle=search type=checkbox id=__search autocomplete=off> <label class=md-overlay for=__drawer></label> <div data-md-component=skip> <a href=#pmics class=md-skip> Skip to content </a> </div> <div data-md-component=announce> </div> <header class="md-header md-header--shadow" data-md-component=header> <nav class="md-header__inner md-grid" aria-label=Header> <a href=../../../.. title="FunKey Project Documentation" class="md-header__button md-logo" aria-label="FunKey Project Documentation" data-md-component=logo> <img src=../../../../assets/images/logo.png alt=logo> </a> <label class="md-header__button md-icon" for=__drawer> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg> </label> <div class=md-header__title data-md-component=header-title> <div class=md-header__ellipsis> <div class=md-header__topic> <span class=md-ellipsis> FunKey Project Documentation </span> </div> <div class=md-header__topic data-md-component=header-topic> <span class=md-ellipsis> PMIC </span> </div> </div> </div> <label class="md-header__button md-icon" for=__search> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg> </label> <div class=md-search data-md-component=search role=dialog> <label class=md-search__overlay for=__search></label> <div class=md-search__inner role=search> <form class=md-search__form name=search> <input type=text class=md-search__input name=query aria-label=Search placeholder=Search autocapitalize=off autocorrect=off autocomplete=off spellcheck=false data-md-component=search-query required> <label class="md-search__icon md-icon" for=__search> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg> </label> <nav class=md-search__options aria-label=Search> <button type=reset class="md-search__icon md-icon" title=Clear aria-label=Clear tabindex=-1> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg> </button> </nav> </form> <div class=md-search__output> <div class=md-search__scrollwrap data-md-scrollfix> <div class=md-search-result data-md-component=search-result> <div class=md-search-result__meta> Initializing search </div> <ol class=md-search-result__list role=presentation></ol> </div> </div> </div> </div> </div> <div class=md-header__source> <a href=https://github.com/FunKey-Project/FunKey-Project.github.io title="Go to repository" class=md-source data-md-component=source> <div class="md-source__icon md-icon"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 448 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg> </div> <div class=md-source__repository> GitHub </div> </a> </div> </nav> </header> <div class=md-container data-md-component=container> <main class=md-main data-md-component=main> <div class="md-main__inner md-grid"> <div class="md-sidebar md-sidebar--primary" data-md-component=sidebar data-md-type=navigation> <div class=md-sidebar__scrollwrap> <div class=md-sidebar__inner> <nav class="md-nav md-nav--primary" aria-label=Navigation data-md-level=0> <label class=md-nav__title for=__drawer> <a href=../../../.. title="FunKey Project Documentation" class="md-nav__button md-logo" aria-label="FunKey Project Documentation" data-md-component=logo> <img src=../../../../assets/images/logo.png alt=logo> </a> FunKey Project Documentation </label> <div class=md-nav__source> <a href=https://github.com/FunKey-Project/FunKey-Project.github.io title="Go to repository" class=md-source data-md-component=source> <div class="md-source__icon md-icon"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 448 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg> </div> <div class=md-source__repository> GitHub </div> </a> </div> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../.. class=md-nav__link> <span class=md-ellipsis> Overview </span> </a> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_2> <label class=md-nav__link for=__nav_2 id=__nav_2_label tabindex=0> <span class=md-ellipsis> User's Manual </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=1 aria-labelledby=__nav_2_label aria-expanded=false> <label class=md-nav__title for=__nav_2> <span class="md-nav__icon md-icon"></span> User's Manual </label> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_2_1> <label class=md-nav__link for=__nav_2_1 id=__nav_2_1_label tabindex=0> <span class=md-ellipsis> Tutorials </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=2 aria-labelledby=__nav_2_1_label aria-expanded=false> <label class=md-nav__title for=__nav_2_1> <span class="md-nav__icon md-icon"></span> Tutorials </label> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_2_1_1> <label class=md-nav__link for=__nav_2_1_1 id=__nav_2_1_1_label tabindex=0> <span class=md-ellipsis> Software </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_2_1_1_label aria-expanded=false> <label class=md-nav__title for=__nav_2_1_1> <span class="md-nav__icon md-icon"></span> Software </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/add_roms/ class=md-nav__link> <span class=md-ellipsis> Add New ROMs </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/add_opk/ class=md-nav__link> <span class=md-ellipsis> Add OPK Files </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/gba_bios/ class=md-nav__link> <span class=md-ellipsis> Install the GBA/PS1 BIOS </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/aspect_ratio/ class=md-nav__link> <span class=md-ellipsis> Change Aspect Ratio </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/snapshot/ class=md-nav__link> <span class=md-ellipsis> Take a Snapshot </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/firmware_update/ class=md-nav__link> <span class=md-ellipsis> Firmware Upgrade </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/gb_palette/ class=md-nav__link> <span class=md-ellipsis> Change Game Boy Palette </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/software/gmenu2x_wallpaper/ class=md-nav__link> <span class=md-ellipsis> Change GMenu2X Wallpaper </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_2_1_2> <label class=md-nav__link for=__nav_2_1_2 id=__nav_2_1_2_label tabindex=0> <span class=md-ellipsis> Hardware </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_2_1_2_label aria-expanded=false> <label class=md-nav__title for=__nav_2_1_2> <span class="md-nav__icon md-icon"></span> Hardware </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/hardware/teardown/ class=md-nav__link> <span class=md-ellipsis> Teardown </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/hardware/flash_change_sd_card/ class=md-nav__link> <span class=md-ellipsis> Flash & Change micro-SD Card </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/hardware/change_buttons/ class=md-nav__link> <span class=md-ellipsis> Change the Buttons </span> </a> </li> <li class=md-nav__item> <a href=../../../../user_manual/tutorials/hardware/fix_unstuck_screen/ class=md-nav__link> <span class=md-ellipsis> </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--active md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3 checked> <label class=md-nav__link for=__nav_3 id=__nav_3_label tabindex=0> <span class=md-ellipsis> Developer's Guide </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=1 aria-labelledby=__nav_3_label aria-expanded=true> <label class=md-nav__title for=__nav_3> <span class="md-nav__icon md-icon"></span> Developer's Guide </label> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--active md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_1 checked> <div class="md-nav__link md-nav__container"> <a href=../../ class="md-nav__link "> <span class=md-ellipsis> Hardware Reference </span> </a> <label class="md-nav__link " for=__nav_3_1 id=__nav_3_1_label tabindex=0> <span class="md-nav__icon md-icon"></span> </label> </div> <nav class=md-nav data-md-level=2 aria-labelledby=__nav_3_1_label aria-expanded=true> <label class=md-nav__title for=__nav_3_1> <span class="md-nav__icon md-icon"></span> Hardware Reference </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../architecture/ class=md-nav__link> <span class=md-ellipsis> Architecture </span> </a> </li> <li class=md-nav__item> <a href=https://htmlpreview.github.io/?https://github.com/FunKey-Project/FunKey-S-Hardware/blob/master/BOM/ibom.html class=md-nav__link> <span class=md-ellipsis> BOM </span> </a> </li> <li class=md-nav__item> <a href=../../cpu/ class=md-nav__link> <span class=md-ellipsis> CPU </span> </a> </li> <li class="md-nav__item md-nav__item--active md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_1_4 checked> <label class=md-nav__link for=__nav_3_1_4 id=__nav_3_1_4_label tabindex=0> <span class=md-ellipsis> Power </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_3_1_4_label aria-expanded=true> <label class=md-nav__title for=__nav_3_1_4> <span class="md-nav__icon md-icon"></span> Power </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../power_supplies_topologies/ class=md-nav__link> <span class=md-ellipsis> Regulated DC Power Supply Topologies </span> </a> </li> <li class=md-nav__item> <a href=../multiple_voltages/ class=md-nav__link> <span class=md-ellipsis> Multiple Power Supply Voltages </span> </a> </li> <li class="md-nav__item md-nav__item--active"> <input class="md-nav__toggle md-toggle" type=checkbox id=__toc> <label class="md-nav__link md-nav__link--active" for=__toc> <span class=md-ellipsis> PMIC </span> <span class="md-nav__icon md-icon"></span> </label> <a href=./ class="md-nav__link md-nav__link--active"> <span class=md-ellipsis> PMIC </span> </a> <nav class="md-nav md-nav--secondary" aria-label="Table of contents"> <label class=md-nav__title for=__toc> <span class="md-nav__icon md-icon"></span> Table of contents </label> <ul class=md-nav__list data-md-component=toc data-md-scrollfix> <li class=md-nav__item> <a href=#pmics class=md-nav__link> <span class=md-ellipsis> PMICs </span> </a> </li> <li class=md-nav__item> <a href=#axp20x-application-diagram class=md-nav__link> <span class=md-ellipsis> AXP20x Application Diagram </span> </a> </li> <li class=md-nav__item> <a href=#pmic-schematics class=md-nav__link> <span class=md-ellipsis> PMIC Schematics </span> </a> <nav class=md-nav aria-label="PMIC Schematics"> <ul class=md-nav__list> <li class=md-nav__item> <a href=#power-inputs-east-side class=md-nav__link> <span class=md-ellipsis> Power Inputs (East side) </span> </a> </li> <li class=md-nav__item> <a href=#internal-connections-all-sides class=md-nav__link> <span class=md-ellipsis> Internal Connections (All sides) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc1-pwm-battery-charger-north-east-side class=md-nav__link> <span class=md-ellipsis> DC-DC1 PWM Battery Charger (North East side) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc2-125v-16a-west-side class=md-nav__link> <span class=md-ellipsis> DC-DC2 +1.25V / 1.6A (West side) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc3-33v-12a-south-side class=md-nav__link> <span class=md-ellipsis> DC-DC3 +3.3V / 1.2A (South side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo1-33v-always-on-30ma-south-east-side class=md-nav__link> <span class=md-ellipsis> LDO1 +3.3V Always On 30mA (South East side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo2-30v-200ma-south-west-side class=md-nav__link> <span class=md-ellipsis> LDO2 +3.0V / 200mA (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo3-north-side class=md-nav__link> <span class=md-ellipsis> LDO3 (North side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo4-south-west-side class=md-nav__link> <span class=md-ellipsis> LDO4 (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#power-key-north-west-side class=md-nav__link> <span class=md-ellipsis> Power Key (North West side) </span> </a> </li> <li class=md-nav__item> <a href=#i2c-bus-north-west-side class=md-nav__link> <span class=md-ellipsis> I2C Bus (North West side) </span> </a> </li> <li class=md-nav__item> <a href=#gpios-south-and-west-sides class=md-nav__link> <span class=md-ellipsis> GPIOs (South and West sides) </span> </a> </li> <li class=md-nav__item> <a href=#pwrok-south-west-side class=md-nav__link> <span class=md-ellipsis> PWROK (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#enable-signals-west-side class=md-nav__link> <span class=md-ellipsis> Enable Signals (West side) </span> </a> </li> <li class=md-nav__item> <a href=#monitoring class=md-nav__link> <span class=md-ellipsis> Monitoring </span> </a> </li> <li class=md-nav__item> <a href=#coulomb-counters-fuel-gauge class=md-nav__link> <span class=md-ellipsis> Coulomb Counters / Fuel Gauge </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../dram_power/ class=md-nav__link> <span class=md-ellipsis> DRAM Power </span> </a> </li> <li class=md-nav__item> <a href=../decoupling/ class=md-nav__link> <span class=md-ellipsis> Decoupling </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../../screen/ class=md-nav__link> <span class=md-ellipsis> Screen </span> </a> </li> <li class=md-nav__item> <a href=../../audio/ class=md-nav__link> <span class=md-ellipsis> Audio </span> </a> </li> <li class=md-nav__item> <a href=../../buttons/ class=md-nav__link> <span class=md-ellipsis> Buttons </span> </a> </li> <li class=md-nav__item> <a href=../../sd-card/ class=md-nav__link> <span class=md-ellipsis> SD Card </span> </a> </li> <li class=md-nav__item> <a href=../../usb/ class=md-nav__link> <span class=md-ellipsis> USB </span> </a> </li> <li class=md-nav__item> <a href=../../uart/ class=md-nav__link> <span class=md-ellipsis> UART </span> </a> </li> <li class=md-nav__item> <a href=../../magnetic_switch/ class=md-nav__link> <span class=md-ellipsis> Magnetic Switch </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_2> <div class="md-nav__link md-nav__container"> <a href=../../../software_reference/ class="md-nav__link "> <span class=md-ellipsis> Software Reference </span> </a> <label class="md-nav__link " for=__nav_3_2 id=__nav_3_2_label tabindex=0> <span class="md-nav__icon md-icon"></span> </label> </div> <nav class=md-nav data-md-level=2 aria-labelledby=__nav_3_2_label aria-expanded=false> <label class=md-nav__title for=__nav_3_2> <span class="md-nav__icon md-icon"></span> Software Reference </label> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_2_1> <div class="md-nav__link md-nav__container"> <a href=../../../software_reference/boot_process/ class="md-nav__link "> <span class=md-ellipsis> Boot Process </span> </a> <label class="md-nav__link " for=__nav_3_2_1 id=__nav_3_2_1_label tabindex=0> <span class="md-nav__icon md-icon"></span> </label> </div> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_3_2_1_label aria-expanded=false> <label class=md-nav__title for=__nav_3_2_1> <span class="md-nav__icon md-icon"></span> Boot Process </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../software_reference/boot_process/boot_rom/ class=md-nav__link> <span class=md-ellipsis> Boot ROM </span> </a> </li> <li class=md-nav__item> <a href=../../../software_reference/boot_process/spl/ class=md-nav__link> <span class=md-ellipsis> SPL </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_2_2> <div class="md-nav__link md-nav__container"> <a href=../../../software_reference/sd_card_layout/ class="md-nav__link "> <span class=md-ellipsis> SD-Card Layout </span> </a> <label class="md-nav__link " for=__nav_3_2_2 id=__nav_3_2_2_label tabindex=0> <span class="md-nav__icon md-icon"></span> </label> </div> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_3_2_2_label aria-expanded=false> <label class=md-nav__title for=__nav_3_2_2> <span class="md-nav__icon md-icon"></span> SD-Card Layout </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../software_reference/sd_card_layout/directory_structure/ class=md-nav__link> <span class=md-ellipsis> Directory Structure </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_3> <label class=md-nav__link for=__nav_3_3 id=__nav_3_3_label tabindex=0> <span class=md-ellipsis> Tutorials </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=2 aria-labelledby=__nav_3_3_label aria-expanded=false> <label class=md-nav__title for=__nav_3_3> <span class="md-nav__icon md-icon"></span> Tutorials </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../tutorials/access_recovery/ class=md-nav__link> <span class=md-ellipsis> Access the Recovery Boot Mode </span> </a> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_3_3_2> <div class="md-nav__link md-nav__container"> <a href=../../../tutorials/build_system/ class="md-nav__link "> <span class=md-ellipsis> Build System </span> </a> <label class="md-nav__link " for=__nav_3_3_2 id=__nav_3_3_2_label tabindex=0> <span class="md-nav__icon md-icon"></span> </label> </div> <nav class=md-nav data-md-level=3 aria-labelledby=__nav_3_3_2_label aria-expanded=false> <label class=md-nav__title for=__nav_3_3_2> <span class="md-nav__icon md-icon"></span> Build System </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../tutorials/build_system/compilation_environments/ class=md-nav__link> <span class=md-ellipsis> Compilation Environments </span> </a> </li> <li class=md-nav__item> <a href=../../../tutorials/build_system/get_sources/ class=md-nav__link> <span class=md-ellipsis> Get the Sources </span> </a> </li> <li class=md-nav__item> <a href=../../../tutorials/build_system/compile_sdk/ class=md-nav__link> <span class=md-ellipsis> Compile SDK </span> </a> </li> <li class=md-nav__item> <a href=../../../tutorials/build_system/compile_distribution/ class=md-nav__link> <span class=md-ellipsis> Compile Distribution </span> </a> </li> <li class=md-nav__item> <a href=../../../tutorials/build_system/write_image/ class=md-nav__link> <span class=md-ellipsis> Write firmware to SD Card </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../../../tutorials/build_system/build_program_using_sdk/ class=md-nav__link> <span class=md-ellipsis> Build Programs using SDK </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=https://grabcad.com/library/funkey-s-1 class=md-nav__link> <span class=md-ellipsis> 3D files </span> </a> </li> <li class="md-nav__item md-nav__item--nested"> <input class="md-nav__toggle md-toggle " type=checkbox id=__nav_5> <label class=md-nav__link for=__nav_5 id=__nav_5_label tabindex=0> <span class=md-ellipsis> Miscellaneous </span> <span class="md-nav__icon md-icon"></span> </label> <nav class=md-nav data-md-level=1 aria-labelledby=__nav_5_label aria-expanded=false> <label class=md-nav__title for=__nav_5> <span class="md-nav__icon md-icon"></span> Miscellaneous </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../../../miscellaneous/glossary/ class=md-nav__link> <span class=md-ellipsis> Glossary </span> </a> </li> </ul> </nav> </li> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component=sidebar data-md-type=toc> <div class=md-sidebar__scrollwrap> <div class=md-sidebar__inner> <nav class="md-nav md-nav--secondary" aria-label="Table of contents"> <label class=md-nav__title for=__toc> <span class="md-nav__icon md-icon"></span> Table of contents </label> <ul class=md-nav__list data-md-component=toc data-md-scrollfix> <li class=md-nav__item> <a href=#pmics class=md-nav__link> <span class=md-ellipsis> PMICs </span> </a> </li> <li class=md-nav__item> <a href=#axp20x-application-diagram class=md-nav__link> <span class=md-ellipsis> AXP20x Application Diagram </span> </a> </li> <li class=md-nav__item> <a href=#pmic-schematics class=md-nav__link> <span class=md-ellipsis> PMIC Schematics </span> </a> <nav class=md-nav aria-label="PMIC Schematics"> <ul class=md-nav__list> <li class=md-nav__item> <a href=#power-inputs-east-side class=md-nav__link> <span class=md-ellipsis> Power Inputs (East side) </span> </a> </li> <li class=md-nav__item> <a href=#internal-connections-all-sides class=md-nav__link> <span class=md-ellipsis> Internal Connections (All sides) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc1-pwm-battery-charger-north-east-side class=md-nav__link> <span class=md-ellipsis> DC-DC1 PWM Battery Charger (North East side) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc2-125v-16a-west-side class=md-nav__link> <span class=md-ellipsis> DC-DC2 +1.25V / 1.6A (West side) </span> </a> </li> <li class=md-nav__item> <a href=#dc-dc3-33v-12a-south-side class=md-nav__link> <span class=md-ellipsis> DC-DC3 +3.3V / 1.2A (South side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo1-33v-always-on-30ma-south-east-side class=md-nav__link> <span class=md-ellipsis> LDO1 +3.3V Always On 30mA (South East side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo2-30v-200ma-south-west-side class=md-nav__link> <span class=md-ellipsis> LDO2 +3.0V / 200mA (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo3-north-side class=md-nav__link> <span class=md-ellipsis> LDO3 (North side) </span> </a> </li> <li class=md-nav__item> <a href=#ldo4-south-west-side class=md-nav__link> <span class=md-ellipsis> LDO4 (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#power-key-north-west-side class=md-nav__link> <span class=md-ellipsis> Power Key (North West side) </span> </a> </li> <li class=md-nav__item> <a href=#i2c-bus-north-west-side class=md-nav__link> <span class=md-ellipsis> I2C Bus (North West side) </span> </a> </li> <li class=md-nav__item> <a href=#gpios-south-and-west-sides class=md-nav__link> <span class=md-ellipsis> GPIOs (South and West sides) </span> </a> </li> <li class=md-nav__item> <a href=#pwrok-south-west-side class=md-nav__link> <span class=md-ellipsis> PWROK (South West side) </span> </a> </li> <li class=md-nav__item> <a href=#enable-signals-west-side class=md-nav__link> <span class=md-ellipsis> Enable Signals (West side) </span> </a> </li> <li class=md-nav__item> <a href=#monitoring class=md-nav__link> <span class=md-ellipsis> Monitoring </span> </a> </li> <li class=md-nav__item> <a href=#coulomb-counters-fuel-gauge class=md-nav__link> <span class=md-ellipsis> Coulomb Counters / Fuel Gauge </span> </a> </li> </ul> </nav> </li> </ul> </nav> </div> </div> </div> <div class=md-content data-md-component=content> <article class="md-content__inner md-typeset"> <h1>PMIC</h1> <p>From the previous section, we can summarize the V3s power supply requirements to:</p> <ul> <li><abbr title="Switched-Mode Power Supply">SMPS</abbr> for +3.3V / 1.2A for the <abbr title=Input/Output>I/O</abbr> power supply</li> <li><abbr title="Low Drop-Out">LDO</abbr> for +3.3V_AO / 30 mA for the Always-On power supply (<abbr title="Real-Time Clock">RTC</abbr> timer)</li> <li><abbr title="Low Drop-Out">LDO</abbr> for +3.0V / 200 mA for the analog power supply</li> <li><abbr title="Switched-Mode Power Supply">SMPS</abbr> for +1.8V / 1A for the DDR2 <abbr title="Dynamic Random-Access Memory">DRAM</abbr> power supply</li> <li><abbr title="Switched-Mode Power Supply">SMPS</abbr> for +1.25V / 1.6 A for the core power supply</li> </ul> <p>On the <a href=https://licheepizero.us/ >LicheePi Zero board</a> used in our <strong><a href=https://hackaday.io/project/134065-funkey-zero>FunKey Zero</a></strong> prototype, a triple <abbr title="Switched-Mode Power Supply">SMPS</abbr> <a href=http://club.szlcsc.com/article/downFile_D72C44885C60F9F1.html>EA3036</a> is used for generating these +3.3V, +1.8V and +1.2V voltages, with an additional <a href=https://www.torexsemi.com/file/xc6206/XC6206.pdf>XC6206</a> <abbr title="Low Drop-Out">LDO</abbr> for the +3.0V (the +3.3V Always On is connected directly to +3.3V). Although compact (the EA3036 is a tiny 3 mm x 3 mm QFN20 package), this solution is not ideal as it does not provide a battery charger and monitoring capability, which is a requirement for the <strong>FunKey S</strong> device.</p> <h2 id=pmics>PMICs<a class=headerlink href=#pmics title="Permanent link">¶</a></h2> <p>As it is generally the case with such a complex <abbr title="System on Chip">SoC</abbr> requiring multiple voltages, high current and proper voltage sequencing, all major manufacturers provide dedicated companion chips called PMICs (Power Management Integrated Circuits), in charge of these tasks. Allwinner is not an exception through its sister company <a href=http://www.x-powers.com/en.php>X-Powers</a>.</p> <p>Their AXP20x products are highly-integrated PMICs that are optimized for applications requiring single-cell Li-battery (Li-Ion/Polymer), multiple output DC-DC converters and LDOs. Here is a block diagram:</p> <p><img alt="PMIC Block Diagram" class=lightbox src=/assets/images/AXP20x_Block_Diagram.png></p> <p>The AXP20x features:</p> <ul> <li> <p>A wide choice of input power source, the best source is output as IPSOUT inside the <abbr title="In-Plane Switching or Intelligent Power Select">IPS</abbr> (Intelligent Power Select) block:</p> <ul> <li> <p><abbr title="Universal Serial Bus">USB</abbr> VBUS</p> </li> <li> <p>Battery BAT</p> </li> <li> <p>ACIN wall plug (not used in the <strong>FunKey S</strong>)</p> </li> <li> <p>BACKUP battery (not used in the <strong>FunKey S</strong>)</p> </li> </ul> </li> <li> <p>A 1.8A fast <abbr title="Pulse Width Modulation">PWM</abbr> battery charger (also called DC/DC1) with battery voltage / current sense and programmable charge indication <abbr title="Ligh-Emitting Diode">LED</abbr></p> </li> <li> <p>A soft key power-on/off logic with timer (just as in smartphones!)</p> </li> <li> <p>An <abbr title="Inter-Integrated Circuit Bus">I2C</abbr> interface with interrupt signal to communicate with the <abbr title="Central Processing Unit">CPU</abbr></p> </li> <li> <p>An optional battery temperature monitoring if the battery is equipped with an <abbr title="Negative Temperature Coefficient">NTC</abbr> resistor (not used in the <strong>FunKey S</strong>)</p> </li> <li> <p>A reference voltage</p> </li> <li> <p>A built-in 12-channel 12 bit <abbr title="Analog to Digital Converter">ADC</abbr> that measures various voltages and currents data, as well as feeding an internal Coulomb counter and fuel gauge system (more on this later)</p> </li> <li> <p>A "power OK" output used to generate the global RESET signal for the <strong>FunKey S</strong></p> </li> <li> <p>5x GPIOs (not used in the <strong>FunKey S</strong>), GPIO0 can be programmed as LDO5 output</p> </li> <li> <p>2x DC/DC <abbr title="Switched-Mode Power Supply">SMPS</abbr> DC-DC2 and DC-DC3</p> </li> <li> <p>5x LDOs (only 2 are used in the <strong>FunKey S</strong>, LDO5 is optionnaly output to GPIO0)</p> </li> </ul> <p>Looking at their datasheets, it is difficult to tell the difference between the <a href=http://www.x-powers.com/en.php/Info/down/id/55>AXP202</a>, <a href=https://github.com/Squonk42/V3s_Documentation/raw/master/AXP203_Datasheet_V1.0.pdf>AXP203</a> and <a href=https://github.com/Squonk42/V3s_Documentation/raw/master/AXP209_Datasheet_v1.0en.pdf>AXP209</a> (any hint welcome!). In the <strong>FunKey S</strong> design, we use an AXP209 because it is the one that comes along with the V3s when you buy it on AliExpress.</p> <h2 id=axp20x-application-diagram>AXP20x Application Diagram<a class=headerlink href=#axp20x-application-diagram title="Permanent link">¶</a></h2> <p>For complex dedicated chips like this, the best option is to follow as much as possible the application diagram and reference design given by the manufacturer, as the internals of the chips are seldom fully disclosed, so you need to take their word on some of the external component values to use.</p> <p>The <a href=https://github.com/Squonk42/V3s_Documentation/blob/master/V3S_CDR_STD_V1_0_20150514.pdf>Allwinner V3s Reference Design</a> contains on page 6 the schematics for using an AXP203 to supply the power to a V3s-based dashboard camera design. It follows closely the application diagram provided in the AXP20x datasheets:</p> <p><img alt="AXP20x Application Diagram" class=lightbox src=/assets/images/AXP20x_Application_Diagram.png></p> <p>More hints are provided in our self-translated <a href=https://github.com/Squonk42/V3s_Documentation/raw/master/V3s%20hardware%20design%20guide%20V1.0_20150519%20EN%20Non%20Official.pdf>V3s Hardware Design Guide</a> (page 7) too.</p> <h2 id=pmic-schematics><abbr title="Power Management Integrated Circuit">PMIC</abbr> Schematics<a class=headerlink href=#pmic-schematics title="Permanent link">¶</a></h2> <p>The <strong>FunKey S</strong> device uses all of the <strong>U5</strong> AXP209 integrated <abbr title="Switched-Mode Power Supply">SMPS</abbr>:</p> <ul> <li>the <abbr title="Pulse Width Modulation">PWM</abbr> charger DC-DC1 for the battery</li> <li>the DC-DC2 for providing the +1.25 V / 1.6A to the core</li> <li>the DC-DC3 for providing the +3.3V / 1.2A to the I/Os</li> </ul> <p>But compared to the sophisticated reference design above, the <strong>FunKey S</strong> device only uses 2 out of the 5 integrated LDOs:</p> <ul> <li>LDO1 supplies the +3.3V / 30 mA Always On for the <abbr title="Real-Time Clock">RTC</abbr></li> <li>LDO2 provides the +3.0V / 200 mA for the analog power supply</li> <li>LDO3 / LDO4 / LDO5 are not used in the <strong>FunKey S</strong></li> </ul> <p>Here are the <abbr title="Power Management Integrated Circuit">PMIC</abbr> schematics:</p> <p><img alt="PMIC Schematics" class=lightbox src=/assets/images/PMIC_Schematics.png></p> <p>These schematics may look intimidating and complex, but they are in fact just a collection of simple basic elements, and it is actually very close to the manufacturer-recommended design.</p> <p>Here are the details for each <abbr title="Power Management Integrated Circuit">PMIC</abbr> functions, one by one:</p> <h3 id=power-inputs-east-side>Power Inputs (East side)<a class=headerlink href=#power-inputs-east-side title="Permanent link">¶</a></h3> <p>A wall-plug AC adapter input is not used in the <strong>FunKey S</strong> device, so +VIN is just filtered using C75 on pins 32 and 33.</p> <p>The <abbr title="Universal Serial Bus">USB</abbr> power input +VUSB on pin 31 is filtered using <strong>C70</strong>, and the best (between +VUSB and +VBAT) available voltage is output to +VOUT on pins 34 and 35 and filtered using <strong>C78</strong>.</p> <p>The BACKUP supply on pin 30 is not used and is left unconnected.</p> <h3 id=internal-connections-all-sides>Internal Connections (All sides)<a class=headerlink href=#internal-connections-all-sides title="Permanent link">¶</a></h3> <p>Some AXP20x signals are externally available and should be connected to external components:</p> <ul> <li> <p>The BIAS connection on pin 23 is connected to a precision 200k 1% resistor <strong>R22</strong>, as recommended</p> </li> <li> <p>The reference voltage VREF on pin 24 is decoupled with <strong>C64</strong></p> </li> <li> <p>The +2.5V internal logic voltage VINT on pin 26 is filtered using the recommended value for <strong>C67</strong></p> </li> </ul> <p>Additionally, the AXP20x is actually made up of separate flexible blocks that require external interconnections to set their desired operation:</p> <ul> <li> <p>All DC/DC inputs (VIN1 on pin 44, VIN2 on pin 7 and VIN3 on pin 14), as well as LDO3IN input on pin 40 are connected to the best available voltage +VOUT with filter capacitors <strong>C59</strong>, <strong>C23</strong>, <strong>C30</strong>, and <strong>C69</strong>, respectively</p> </li> <li> <p>LDO1SET on pin 27 is used to set the initial voltage of LDO1, and according to the datasheets, setting it to VINT sets its voltage to the desired +3.3V for the +3.3V Always On power supply</p> </li> <li> <p>OTOH, combined <abbr title="Low Drop-Out">LDO</abbr> 2 and 4 input LDOIN24 on pin 13 is instead connected to +3.3V in order to minimize the voltage drop for LDO2 to generate the +3.0V. Here too, there is a filter capacitor <strong>C34</strong></p> </li> <li> <p>It is not clear what is the exact function of APS on pin 21 (it is described as "Internal Power Input"), but it must be connected to +VOUT, too</p> </li> </ul> <h3 id=dc-dc1-pwm-battery-charger-north-east-side>DC-DC1 <abbr title="Pulse Width Modulation">PWM</abbr> Battery Charger (North East side)<a class=headerlink href=#dc-dc1-pwm-battery-charger-north-east-side title="Permanent link">¶</a></h3> <p>The battery is connected to J5 (a <a href=https://github.com/FunKey-Project/FunKey-S-Hardware/blob/master/Datasheets/1811151533_JST-Sales-America-SM02B-SRSS-TB-LF-SN_C160402.pdf>2-pin JST 1.0 mm pitch receptacle</a>) and uses <strong>R21</strong> as a precision current sense resistor, with <strong>C53</strong>/<strong>C56</strong>/<strong>C60</strong> filter capacitors and <strong>L5</strong> (a low-profile ferrite-core power inductor rated with a saturation current of 1.2A and low < 0.1 Ω resistance).</p> <div class="admonition warning"> <p class=admonition-title>Warning</p> <p>The battery is not protected on the board against reversing polarity, as the model used already contains a built-in protection.</p> </div> <p><strong>R24</strong> is mounted to simulate a battery <abbr title="Negative Temperature Coefficient">NTC</abbr> resistor for measuring temperature, as the chosen <abbr title="Lithium Polymer">LiPo</abbr> battery does not feature this temperature sensor.</p> <p>A user-programmable (through the <abbr title="Inter-Integrated Circuit Bus">I2C</abbr> interface) charge <a href=https://github.com/FunKey-Project/FunKey-S-Hardware/blob/master/Datasheets/C165977_%E8%B4%B4%E7%89%87LED%E8%93%9D%E8%89%B2_2018-01-26.PDF><abbr title="Ligh-Emitting Diode">LED</abbr></a> <strong>D30</strong> is provided, with its current-limiting resistor <strong>R26</strong>, as well as a <abbr title="Transcient Voltage Suppressor">TVS</abbr> diode <strong>d31</strong> to prevent <abbr title="Electro-Static Discharge">ESD</abbr>, as the <abbr title="Ligh-Emitting Diode">LED</abbr> body will be indirectly accessible to user.</p> <h3 id=dc-dc2-125v-16a-west-side>DC-DC2 +1.25V / 1.6A (West side)<a class=headerlink href=#dc-dc2-125v-16a-west-side title="Permanent link">¶</a></h3> <p>This <abbr title="Switched-Mode Power Supply">SMPS</abbr> is built around the ferrite core power inductor <strong>L3</strong> and filter capacitors <strong>C26</strong> and <strong>C29</strong>.</p> <h3 id=dc-dc3-33v-12a-south-side>DC-DC3 +3.3V / 1.2A (South side)<a class=headerlink href=#dc-dc3-33v-12a-south-side title="Permanent link">¶</a></h3> <p>This <abbr title="Switched-Mode Power Supply">SMPS</abbr> is built around the ferrite core power inductor <strong>L4</strong> and filter capacitors <strong>C39</strong> and <strong>C43</strong>.</p> <h3 id=ldo1-33v-always-on-30ma-south-east-side>LDO1 +3.3V Always On 30mA (South East side)<a class=headerlink href=#ldo1-33v-always-on-30ma-south-east-side title="Permanent link">¶</a></h3> <p>The <abbr title="Low Drop-Out">LDO</abbr> output on pin 28 is filtered with capacitor <strong>C72</strong>.</p> <h3 id=ldo2-30v-200ma-south-west-side>LDO2 +3.0V / 200mA (South West side)<a class=headerlink href=#ldo2-30v-200ma-south-west-side title="Permanent link">¶</a></h3> <p>The <abbr title="Low Drop-Out">LDO</abbr> output on pin 12 is filtered with capacitor <strong>C33</strong>.</p> <h3 id=ldo3-north-side>LDO3 (North side)<a class=headerlink href=#ldo3-north-side title="Permanent link">¶</a></h3> <p>This <abbr title="Low Drop-Out">LDO</abbr> is not used and its output on pin 41 is nevertheless filtered with a capacitor <strong>C63</strong>.</p> <h3 id=ldo4-south-west-side>LDO4 (South West side)<a class=headerlink href=#ldo4-south-west-side title="Permanent link">¶</a></h3> <p>This <abbr title="Low Drop-Out">LDO</abbr> is not used and its output on pin 11 is nevertheless filtered with a capacitor <strong>C38</strong>.</p> <h3 id=power-key-north-west-side>Power Key (North West side)<a class=headerlink href=#power-key-north-west-side title="Permanent link">¶</a></h3> <p>The AXP20x features a soft power key with internal short and long-press detection with user-programmable time settings, which enables turning power ON or OFF much like the way it is done in cellular phones.</p> <p>Only a few external components are required: the tactile switch <strong>S13</strong>, its <abbr title="Electro-Static Discharge">ESD</abbr> protection <abbr title="Transcient Voltage Suppressor">TVS</abbr> <strong>D29</strong>, and a low-pass filter <strong>R18</strong> and <strong>C42</strong> for debouncing the switch.</p> <h3 id=i2c-bus-north-west-side><abbr title="Inter-Integrated Circuit Bus">I2C</abbr> Bus (North West side)<a class=headerlink href=#i2c-bus-north-west-side title="Permanent link">¶</a></h3> <p>The AXP20x can be externally controlled by the main <abbr title="Central Processing Unit">CPU</abbr> using the <abbr title="Inter-Integrated Circuit Bus">I2C</abbr> bus on pins 1 and 2. This bus has pull-up resistors to +3.3V <strong>R14</strong> and <strong>R16</strong>, and the <abbr title="Interrupt ReQuest">IRQ</abbr>/WAKEUP signal on pin 48 enables warning or waking up the <abbr title="Central Processing Unit">CPU</abbr> on a selection of AXP20x-generated events, with a pull-up resistor <strong>R13</strong> to +3.3V.</p> <h3 id=gpios-south-and-west-sides>GPIOs (South and West sides)<a class=headerlink href=#gpios-south-and-west-sides title="Permanent link">¶</a></h3> <p>GPIO0-3 on pins 19, 18, 5 and 3 are not used in the <strong>FunKey S</strong> and are left unconnected.</p> <h3 id=pwrok-south-west-side>PWROK (South West side)<a class=headerlink href=#pwrok-south-west-side title="Permanent link">¶</a></h3> <p>The PWROK signal on pin 25 is used to generate the global RESET signal for the whole board, with a pull-up resistor <strong>R15</strong> to the +3.3V Always On power supply and a filter capacitor <strong>C18</strong>.</p> <h3 id=enable-signals-west-side>Enable Signals (West side)<a class=headerlink href=#enable-signals-west-side title="Permanent link">¶</a></h3> <p>The global chip enable signal N_OE on pin 4 is activated by default through a 47kΩ resistor <strong>R17</strong> to GND, but a magnetic Reed switch <strong>S14</strong> can disable it by forcing its level to +VOUT, with a filter capacitor <strong>C83</strong>. This circuit will be disscused later in the <a href=/developer_guide/hardware_reference/magnetic_switch/ >Magnetic Switch section</a>.</p> <p>The <abbr title="Universal Serial Bus">USB</abbr> enable signal N_VBUSEN on pin 6 is directly tied to GND to always enable power from the <abbr title="Universal Serial Bus">USB</abbr> bus.</p> <h3 id=monitoring>Monitoring<a class=headerlink href=#monitoring title="Permanent link">¶</a></h3> <p>Through the <abbr title="Inter-Integrated Circuit Bus">I2C</abbr> bus and the numerous internal available registers, the AXP20x provides a very fine control of its operation, including many threshold and timing settings, but also many voltage and curent monitoring values.</p> <h3 id=coulomb-counters-fuel-gauge>Coulomb Counters / Fuel Gauge<a class=headerlink href=#coulomb-counters-fuel-gauge title="Permanent link">¶</a></h3> <p>It is well known that battery discharge voltage curve over time is very flat, making it very difficult to estimate the real charge/discharge state of the battery. Moreover, this state will vary with temperature, load, and aging.</p> <p>The only accurate way to monitor the battery status is to actually count the energy that is stored when charging, and the one that is consumed. This particularly important feature is achieved in the AXP20x using a dual Coulomb counter which continuously sums the current intensity over time for monitoring the battery accurate charge and discharge status, with user-defined alert thresholds.</p> <p>This fuel gauge is providing the ability to precisely report the remaining battery capacity, just like people are used to with cellular phones.</p> </article> </div> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> </main> <footer class=md-footer> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class=md-copyright> <div class=md-copyright__highlight> © 2020-2024 FunKey Project<br> Last updated on 2024-05-04 by DrUm78<br> <a href=http://creativecommons.org/licenses/by-sa/4.0/ rel=license> <img alt="Creative Commons License" style=border-width:0 src=https://i.creativecommons.org/l/by-sa/4.0/80x15.png> </a><br>This work is licensed under a <a href=http://creativecommons.org/licenses/by-sa/4.0/ rel=license>Creative Commons Attribution-ShareAlike 4.0 International License</a>. </div> Made with <a href=https://squidfunk.github.io/mkdocs-material/ target=_blank rel=noopener> Material for MkDocs </a> </div> <div class=md-social> <a href=https://www.facebook.com/FunKeyProjectOfficial target=_blank rel=noopener title=www.facebook.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 512 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256c0 120 82.7 220.8 194.2 248.5V334.2h-52.8V256h52.8v-33.7c0-87.1 39.4-127.5 125-127.5 16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287v175.9C413.8 494.8 512 386.9 512 256z"/></svg> </a> <a href=https://twitter.com/FunKeyProject target=_blank rel=noopener title=twitter.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 512 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg> </a> <a href=https://www.instagram.com/funkey_project/ target=_blank rel=noopener title=www.instagram.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 448 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg> </a> <a href=https://www.youtube.com/channel/UCm6RThJXazA1VMhimqOtjww target=_blank rel=noopener title=www.youtube.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 576 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></svg> </a> <a href=https://www.pinterest.fr/davidlarbi/funkey-project/ target=_blank rel=noopener title=www.pinterest.fr class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 496 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"/></svg> </a> <a href=https://github.com/FunKey-Project target=_blank rel=noopener title=github.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 496 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg> </a> <a href=https://hub.docker.com/r/funkeyproject/funkey-os/ target=_blank rel=noopener title=hub.docker.com class=md-social__link> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 640 512"><!-- Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1l-13.3-8.9zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm-78.1-72.1h-66.1v60.1h66.1v-60.1z"/></svg> </a> </div> </div> </div> </footer> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../../../..", "features": [], "search": "../../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script> <script src=../../../../assets/javascripts/bundle.a7c05c9e.min.js></script> <script src=../../../../assets/js/jquery-3.5.1.min.js></script> <script src=../../../../assets/js/simple-lightbox.jquery.min.js></script> <script src=../../../../assets/js/custom.js></script> </body> </html> |