samples/shields/npm1300_ek/doc/index.html · samples/shields/npm1300_ek/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Shields · PMIC

nPM1300 EK sample

BUCK1/2·LDO1/2를 shell에서 나열·활성화·설정·조회합니다.

Official pathsamples/shields/npm1300_ek/doc/index.html
Source filesamples/shields/npm1300_ek/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Arduino-host 요구 사항, 자동 SHIELD 설정과 regulator command 7종을 설명합니다.

PMIC

nPM1300

Rails

BUCK1/2 · LDO1/2

Interface

Shell

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 6291A3ECBA3727C21A9B464D0F61E1C748E0994F7E4C1E13D4A16635873E65C0
.. _npm1300_ek_sample:

nPM1300 EK sample
#################

Overview
********

This sample is provided for evaluation of the :ref:`npm1300_ek`.
The sample provides a shell interface to support the features of the
nPM1300 PMIC, including:

- Regulators (BUCK1/2, LDO1/2)
- GPIO

Requirements
************

The shield needs to be wired to a host board supporting the Arduino connector.

Examples and images to follow

Building and Running
********************

The sample is designed so that it can run on any platform. For example, when
building for the nRF52 DK, the following command can be used:

.. zephyr-app-commands::
   :zephyr-app: samples/shields/npm1300_ek
   :board: nrf52dk/nrf52832
   :goals: build
   :compact:

Note that this sample automatically sets ``SHIELD`` to ``npm1300_ek``. Once
flashed, you should boot into the shell interface. The ``regulator`` command is
provided to test the PMIC. Below you can find details for each subcommand.

Regulators
==========

The ``regulator`` shell interface provides several subcommand to test
the regulators embedded in the PMIC. Below you can find some command examples.

.. code-block:: bash

   # list all the supported voltages by BUCK1
   regulator vlist BUCK1
   1.000 V
   1.100 V
   ...

.. code-block:: bash

   # enable BUCK2
   regulator enable BUCK2
   # disable BUCK2
   regulator disable BUCK2

.. code-block:: bash

   # set BUCK2 voltage to exactly 2V
   regulator vset BUCK2 2V
   # obtain the actual BUCK1 configured voltage
   regulator vget BUCK1
   1.800 V
   # set BUCK1 voltage to a value between 2.35V and 2.45V
   regulator set BUCK1 2.35V 2.45V
   # obtain the actual BUCK1 configured voltage
   regulator get BUCK1
   2.400 V

Part 3

한국어 전문 번역

개요

npm1300_ek 평가용 sample입니다. nPM1300 PMIC의 regulator(BUCK1·BUCK2, LDO1·LDO2)와 GPIO 기능을 지원하는 shell interface를 제공합니다.

요구 사항

Shield를 Arduino connector를 지원하는 host board에 배선해야 합니다. 공식 문서의 추가 example과 image는 아직 ‘추후 추가’ 상태입니다.

빌드 및 실행

Sample은 어떤 platform에서도 실행할 수 있도록 설계되었습니다. 다음은 nRF52 DK용 build 예입니다.

west build -b nrf52dk/nrf52832 samples/shields/npm1300_ek

이 sample은 SHIELD를 npm1300_ek로 자동 설정합니다. Flash한 뒤 shell interface로 boot하며, PMIC 시험을 위한 regulator command를 사용할 수 있습니다.

Regulator

regulator shell interface는 PMIC에 내장된 regulator를 시험하는 여러 subcommand를 제공합니다.

# list all the supported voltages by BUCK1
regulator vlist BUCK1
1.000 V
1.100 V
...
# enable BUCK2
regulator enable BUCK2
# disable BUCK2
regulator disable BUCK2
# set BUCK2 voltage to exactly 2V
regulator vset BUCK2 2V
# obtain the actual BUCK1 configured voltage
regulator vget BUCK1
1.800 V
# set BUCK1 voltage to a value between 2.35V and 2.45V
regulator set BUCK1 2.35V 2.45V
# obtain the actual BUCK1 configured voltage
regulator get BUCK1
2.400 V

vlist는 지원 voltage를 나열하고, enable·disable은 output을 전환합니다. vset·vget은 exact voltage를 설정·조회하며, set·get은 허용 범위로 설정하고 실제 선택된 voltage를 확인합니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.