FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    IO operation in IO functions in STM32 STM32

     

    IO operation in IO functions in STM32 STM32 The library function of the STM32 series of microcontroller chips has many kinds, and the library function responsible for the IO operation is GPIO, the GPIO function is declared in the STM32 single-chip file STM32F10X_GPIO.H, which is defined in the main function STM32F10X_GPIO.C of the STM32 single chip. There are 8 configuration types of GPIO, namely: 1.GPIO_MODE_AIN analog input 2.GPIO_MODE_IN_FLOATING Empty Input 3.GPIO_MODE_IPD drop-down input 4.GPIO_MODE_IPU pull-up input 5.GPIO_MODE_OUT_OD Open Log 6.GPIO_MODE_OUT_PP push-pull output 7.GPIO_MODE_AF_OD multiplexing output 8.GPIO_MODE_AF_PP multiplex push output The IO Operation step of the STM32 single-chip microcomputer based on the library function: 1. Enable IO clock Function interface: void RCC_APB2PeriphClockCMD (uint32_t rcc_apb2periph, functionalstate newstate); Parameter list: RCC_APB2PeriPh: Peripheral name connected to the APB2 bus NewState: enanle or disable 2, initialization IO port Function interface: void gpio_init (gpio_typedef * gpiox, gpio_inittypedef * gpio_initstructure); Parameter list: GPIOX: Group of IO, such as GPIOA, GPIOB; GPIO_INITSTRUCT: GPIO initialized structure 3. Call the IO port control function to control the IO port level: Function interface Void gpio_setbits (gpio_typedef * gpiox, uint16_t gpio_pin); Void GPIO_RESETBITS (GPIO_TYPEDEF * GPIOX, UINT16_T GPIO_PIN); Void GPIO_WRITEBIT (GPIO_TYPEDEF * GPIOX, UINT16_T GPIO_PIN, BITACTION BITVAL); Void GPIO_WRITE (GPIO_TYPEDEF * GPIOX, UINT16_T Portval); The above is the IO function of the STM32 microcontroller, I hope to help users. This article integrates from CSDN Responsible for AJX, read the full text

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us