samples/drivers/led_xec/README.html · samples/drivers/led_xec/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Drivers · LED

Microchip XEC BBLED

고정 GPIO와 두 evaluation board의 jumper 배선을 그대로 따라갈 수 있습니다.

Official pathsamples/drivers/led_xec/README.html
Source filesamples/drivers/led_xec/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

MEC15xx·MEC172x controller mapping, VCI·VBAT 조건과 PINCTRL을 보존합니다.

Controller

BBLED

SoC

MEC15xx · MEC172x

Config

PINCTRL

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 B9F49909D4E3A43E6E1800801A92B698F848652D4C89B56EE91A231F02C187C4
.. zephyr:code-sample:: led-xec
   :name: Breathing-blinking LED (BBLED)
   :relevant-api: led_interface

   Control a BBLED (Breathing-Blinking LED) using Microchip XEC driver.

Overview
********

This sample allows to test the Microchip led-xec driver which uses the
breathing-blinking LED (BBLED) controllers. The SoC design is fixed
allowing each BBLED control over one specific GPIO.

MEC15xx and MEC172x:

- BBLED controller 0 uses GPIO 0156.
- BBLED controller 1 uses GPIO 0157.
- BBLED controller 2 uses GPIO 0153.

MEC172x has a fourth instance of BBLED:

- BBLED controller 3 uses GPIO 0035

Test pattern
============

For each LEDs (one after the other):

- Turning on
- Turning off
- Blinking on: 0.1 sec, off: 0.1 sec
- Blinking on: 1 sec, off: 1 sec

Board Jumpers
*************

mec172xevb_assy6906 evaluation board
====================================

- BBLED0: GPIO 0156.
       - Connect GPIO 0156 to board LED4 by placing a wire from JP71-11 to J47-3.
       - Make sure there are no jumpers on JP54 1-2 and JP21 4-5

- BBLED1: GPIO 0157.
       - Connect GPIO 0156 to board LED5 by placing a wire from JP71-12 to J48-3.
       - Make sure there are no jumpers on JP54 3-4 and JP21 16-17

- BBLED2: GPIO 0153.
       - Connect GPIO 0153 to board LED7 by placing a wire from JP71-5 to JP146-5.

         JP146-5 is connected to MEC172x VCI_OUT1 without a jumper. Force VCI_OUT1
         high by forcing VCI_IN1 high: install jumper on J55 3-4 which pulls VCI_IN1
         to the VBAT rail via a 100K pull-up. Requires VBAT power rail is connected
         to VTR or some other power source.

- BBLED3: GPIO 0035.
       - Connect GPIO 0035 to board LED7 by placing a wire from JP67-19 to JP146-1.
       - Make sure there is no jumper on JP79 17-18.

         JP146-1 is connected to MEC172x VCI_OUT2 without a jumper. Force VCI_OUT2
         high by forcing VCI_IN2 high: install a jumper on J55 5-6 which pulls VCI_IN2
         to the VBAT rail via a 100K pull-up. Requires VBAT power rail is connected
         to VTR or some other power source.

mec15xxevb_assy6853 evaluation board
====================================

- BBLED0: GPIO 0156.
       - Add jumper on JP41 1-2 to connect GPIO 0156 to board LED2
       - Remove jumper on JP31 13-14

- BBLED1: GPIO 0157.
       - Add jumper on JP41 3-4 to connect GPIO 0157 to board LED3
       - Remove jumper on JP31 15-16

- BBLED2: GPIO 0153.
       - Add jumper on JP41 3-4 to connect GPIO 0153 to board LED4
       - Remove jumper on JP31 17-18

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

This sample can be built and executed on all the boards with the LEDs connected.
The LEDs must be correctly described in the DTS. Each breathing-blinking LED
controller is fixed by chip design to connect to one GPIO. The bbled node must
have its PINCTRL properties set to the correct GPIO.

Part 3

한국어 전문 번역

개요

이 sample은 breathing-blinking LED(BBLED) controller를 사용하는 Microchip led-xec driver를 시험합니다. SoC 설계상 각 BBLED controller가 하나의 특정 GPIO를 제어하도록 연결이 고정되어 있습니다.

MEC15xx와 MEC172x의 연결은 다음과 같습니다.

  • BBLED controller 0은 GPIO 0156을 사용합니다.
  • BBLED controller 1은 GPIO 0157을 사용합니다.
  • BBLED controller 2는 GPIO 0153을 사용합니다.

MEC172x에는 네 번째 BBLED instance가 있습니다.

  • BBLED controller 3은 GPIO 0035를 사용합니다.

시험 pattern

각 LED에 차례대로 다음 동작을 수행합니다.

  • 켭니다.
  • 끕니다.
  • 0.1초 켜고 0.1초 끄는 blink를 수행합니다.
  • 1초 켜고 1초 끄는 blink를 수행합니다.

Board jumper

mec172xevb_assy6906 evaluation board

  • BBLED0: GPIO 0156
    • JP71-11에서 J47-3으로 wire를 연결하여 GPIO 0156을 board LED4에 연결합니다.
    • JP54 1-2와 JP21 4-5에 jumper가 없는지 확인합니다.
  • BBLED1: GPIO 0157
    • 원문 지시대로 JP71-12에서 J48-3으로 wire를 연결하여 GPIO 0156을 board LED5에 연결합니다.
    • JP54 3-4와 JP21 16-17에 jumper가 없는지 확인합니다.
  • BBLED2: GPIO 0153
    • JP71-5에서 JP146-5로 wire를 연결하여 GPIO 0153을 board LED7에 연결합니다.
    • JP146-5는 jumper 없이 MEC172x VCI_OUT1에 연결됩니다. J55 3-4에 jumper를 설치해 VCI_IN1을 high로 강제하면 100K pull-up을 통해 VCI_IN1이 VBAT rail로 당겨지고 VCI_OUT1이 high가 됩니다. VBAT power rail은 VTR 또는 다른 전원에 연결되어 있어야 합니다.
  • BBLED3: GPIO 0035
    • JP67-19에서 JP146-1로 wire를 연결하여 GPIO 0035를 board LED7에 연결합니다.
    • JP79 17-18에 jumper가 없는지 확인합니다.
    • JP146-1은 jumper 없이 MEC172x VCI_OUT2에 연결됩니다. J55 5-6에 jumper를 설치해 VCI_IN2를 high로 강제하면 100K pull-up을 통해 VCI_IN2가 VBAT rail로 당겨지고 VCI_OUT2가 high가 됩니다. VBAT power rail은 VTR 또는 다른 전원에 연결되어 있어야 합니다.

mec15xxevb_assy6853 evaluation board

  • BBLED0: GPIO 0156
    • GPIO 0156을 board LED2에 연결하도록 JP41 1-2에 jumper를 추가합니다.
    • JP31 13-14의 jumper를 제거합니다.
  • BBLED1: GPIO 0157
    • GPIO 0157을 board LED3에 연결하도록 JP41 3-4에 jumper를 추가합니다.
    • JP31 15-16의 jumper를 제거합니다.
  • BBLED2: GPIO 0153
    • GPIO 0153을 board LED4에 연결하도록 JP41 3-4에 jumper를 추가합니다.
    • JP31 17-18의 jumper를 제거합니다.

Build와 실행

LED가 연결된 모든 board에서 이 sample을 build하고 실행할 수 있습니다. LED는 DTS에 올바르게 기술해야 합니다. 각 breathing-blinking LED controller는 chip 설계상 하나의 GPIO에 고정 연결되므로 bbled node의 PINCTRL property를 올바른 GPIO로 설정해야 합니다.

Source

출처

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