Intel Edison Compute Module (IoT) Dokumentacja Strona 27

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 32
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 26
Shield pin configuration
11 Shield pin configuration
This chapter will help you configure the Arduino* shield pins.
To configure the Arduino* shield pins, do the following:
1. Identify the Arduino* shield pin number of the pin you want to use, in the range IO0-IO19.
2. Identify the functions available for the given pin, and select the function you want to use. Typical functions
are GPIO, PWM, UART, I
2
C, SPI, ADC. Only some functions are available on each pin.
3. Determine which GPIO signals, if any, need to be configured to select the correct pin muxing option for the
selected function. Some pins only have a single function, or do not require mux control.
4. Determine which GPIO signals, if any, need to be configured to select the pin buffer direction for input or
output, and determine the direction that is required.
5. Determine which GPIO signals, if any, need to be configured to select the pullup resistor control, and
whether the pullup resistor should be enabled or disabled. For most pin functions, the pullup resistors
should typically be disabled. For GPIO input functions, the pullup resistor may optionally be enabled or
disabled, according to your needs.
6. Export the above GPIO numbers for access in the Linux user-space environment (from the command
shell).
7. Configure the above GPIO numbers for output.
8. Assert the TRI_STATE_ALL signal to disconnect the shield pins.
9. Set the above GPIO numbers to assert their output logic levels as high or low.
10. Set the SoC GPIO pin mode for the required functionality.
11. Deassert the TRI_STATE_ALL signal to reconnect the shield pins.
11.1 Configure IO5 as a GPIO input, with pullup resistor disabled
To configure IO5 as a GPIO input, with pullup resistor disabled, do the following:
1. Refer to Table 2 for the GPIO number. According to Table 2, the GPIO number for IO5 is 13.
2. According to Table 4, GPIO 43 pin-mux must be set to mode0 to select the GPIO.
3. According to Table 7, GPIO 253 must be set to 0 to disable the output direction for IO5.
4. According to Table 7, GPIO 221 must be set as a high-impedance input to disable the external pullup
resistor for IO5.
5. According to Table 6, the TRI_STATE_ALL signal is controlled by GPIO 214.
After you have gathered all of this information, enter the following commands in Linux:
# echo 13 > /sys/class/gpio/export
# echo 253 > /sys/class/gpio/export
# echo 221 > /sys/class/gpio/export
# echo 214 > /sys/class/gpio/export
# echo high > /sys/class/gpio/gpio214/direction
# echo low > /sys/class/gpio/gpio253/direction
# echo in > /sys/class/gpio/gpio221/direction
# echo mode0 > /sys/kernel/debug/gpio_debug/gpio13/current_pinmux
# echo in > /sys/class/gpio/gpio13/direction
# echo low > /sys/class/gpio/gpio214/direction
You should be able to use IO5 as a GPIO input. For example:
# cat /sys/class/gpio/gpio13/value
Intel® Edison Kit for Arduino*
December 2014 Hardware Guide
Document Number: 331191-004 27
Przeglądanie stron 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32

Komentarze do niniejszej Instrukcji

Brak uwag

LG LD-2157LH manuels

Manuels d'utilisation et guides de l'utilisateur pour Lave-vaisselle LG LD-2157LH.
Nous fournissons des manuels en pdf 1 LG LD-2157LH à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Lave-vaisselle LG

Modèles Type de document
LD-2052SH Manuel de l'utilisateur   LG LD-2052SH Owner’s Manual, 24 pages
LD-2161SH Manuel de l'utilisateur   LG LD-2161SH Owner’s Manual, 24 pages
WZ-6808TH Manuel de l'utilisateur   LG WZ-6808TH Owner's manual, 28 pages
LDF5545ST Manuel de l'utilisateur    LG LDF5545WW,LDF5545ST Owner’s Manual [en] , 108 pages
D1453WF Manuel de l'utilisateur   LG D1453WF Owner's manual, 68 pages
LD-2050SH Manuel de l'utilisateur   LG LD-2050SH Owner’s Manual, 35 pages
LD-2060LH Manuel de l'utilisateur   LG LD-2060LH Owner’s Manual, 24 pages
D1417WFB Manuel de l'utilisateur   LG D1417WFB Owner's manual, 36 pages
LD-2050WH Manuel de l'utilisateur   LG LD-2050WH Owner’s Manual, 35 pages
LD-2131SH Manuel de l'utilisateur   LG LD-2131SH Owner’s Manual, 24 pages
D1452WF Manuel de l'utilisateur   LG D1452WF Owner’s Manual, 36 pages
39232533 Manuel de l'utilisateur     LG 39232533 Owner’s Manual, 100 pages
LDF8922ST Manuel de l'utilisateur    LG LDF8922ST Owner’s Manual, 48 pages
DW-EN105T Manuel de l'utilisateur   LG DW-EN105T Owner's manual, 32 pages
LDS5540BB Manuel de l'utilisateur     LG LDS5540BB manuel du propriétaire [en] , 80 pages
WZ-6805MF Manuel de l'utilisateur   LG WZ-6805MF Owner's manual, 28 pages
KD-C706SW Manuel de l'utilisateur   LG DC65W Owner's manual, 36 pages
KD-823NT Manuel de l'utilisateur   LG KD-823NT Owner's manual, 37 pages
LD-2261THB Manuel de l'utilisateur   LG LD-2080TH Owner’s Manual [ja] [zh] , 24 pages
LD-12AS6 Manuel de l'utilisateur   LG LD-12AT7 Owner’s Manual, 20 pages