当前位置:网站首页>GPIO operation method of imx6ull
GPIO operation method of imx6ull
2022-06-22 17:45:00 【Proficient in embedded】
List of articles
Preface
This article will take you to learn how to operate imx6ull Of GPIO port , I'm sure you're interested in GPIO Now I will take you to learn how to operate imx6ull Of GPIO.
One 、CCM Clock Controller Module ( Clock control module )
Want to use GPIO The first step is to enable GPIO 了 ,CCM It is a clock controller. Under the chip manual, we can find its location as follows .
1. First navigate to the... Of the directory 18 Chapter
2. find CCM Clock tree
3. find GPIOn
4. find GPIOn Post view corresponding GPIO Group 
Two 、IOMUXC : IOMUX Controller,IO Multiplex controller
The second step is to set the pin to GPIO Pattern .
In chapter of the chip manual 32 Chapter can be found IOMUX Set the corresponding pin to GPIO Pattern 
3、 ... and 、GPIO: General-purpose input/output, Universal input and output port
The third step is to set GPIO Input or output mode
Find chapter of the chip manual 28 Chapter
find GPIO_GDIR This register is GPIO Direction register for , By setting this register GPIO Set to input or output mode .
Four 、 Read GPIO state
Find No 28 Chapter GPIO_PSR Register read the contents of this register to read GPIO The state of .
5、 ... and 、 Write GPIO state
Find No 28 Chapter GPIO_DR Register read this register and write the level you want to control into this pin to control GPIO Output level of .
summary
Specific operation GPIO Methods let's move on to the next article , This article mainly wants to let you know how to read the chip manual to control GPIO port .
边栏推荐
- WPF 实现星空效果
- 以小见大:一个领域建模的简单示例,理解“领域驱动”。
- Gridhome, a must-have static site generator for beginners
- Fluentd is easy to get started. Combined with the rainbow plug-in market, log collection is faster
- Arrays Aslist uses bug
- 可能是全网最全的Matplotlib可视化教程
- 来厦门了!线上交流限额免费报名中
- Traitement des valeurs manquantes
- 【人脸识别】基于GoogleNet深度学习网络的人脸识别matlab仿真
- STM32系列(HAL库)——F103C8T6硬件SPI点亮带字库OLED屏
猜你喜欢

UI automation positioning edge -xpath actual combat

You call this crap high availability?

诺亚财富拟登陆港交所:第一季度业绩大幅下滑,曾踩雷“承兴案”
![[face recognition] matlab simulation of face recognition based on googlenet deep learning network](/img/e8/050ca85542ccbf1402b84c5dbf6f5e.png)
[face recognition] matlab simulation of face recognition based on googlenet deep learning network

STM32 series (HAL Library) - f103c8t6 hardware SPI illuminates OLED screen with word library

Noah fortune plans to land on the Hong Kong Stock Exchange: the performance fell sharply in the first quarter, and once stepped on the thunder "Chengxing case"

如何做好研发效能度量及指标选取

Figure operation flow of HAMA BSP Model

. Net release and support plan introduction

云端极简部署Svelte3聊天室
随机推荐
写给 Kubernetes 工程师的 mTLS 指南
【招聘】[北京中关村/远程][TensorBase][开源数据仓库]等一群人,做一件事
无心剑中文随感《探求真谛》
Heartless sword in Chinese
[recruitment] [Beijing Zhongguancun / remote] [tensorbase][open source data warehouse] and other people do one thing
redis. clients. jedis. exceptions. JedisDataException ERR invalid password.
It may be the most comprehensive Matplotlib visualization tutorial in the whole network
QT notes qmap user defined key
Description of new features and changes in ABP Framework version 5.3.0
Principle of synchronized implementation
MTLs guidelines for kubernetes engineers
How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
新手必会的静态站点生成器——Gridsome
Tried several report tools, and finally found a report based on Net 6
WPF效果第一百九十篇之再耍ListBox
170million passwords of Netcom learning link have been leaked! What are the remedies?
快速掌握 ASP.NET 身份认证框架 Identity - 用户注册
Arrays Aslist uses bug
What is flush software? Is it safe to open a mobile account?
CMB model 23 ukey is not recognized on win7