当前位置:网站首页>杰理之复位IO维持电平使用说明【篇】
杰理之复位IO维持电平使用说明【篇】
2022-04-21 19:40:00 【Rambo-Lamborghini】
1、复位前设置IO状态
注意有些封装多IO内绑在一起,则需要设置另外IO为高阻模式,如PB8高阻:
gpio_set_die(IO_PORTB_08, 0);
gpio_set_pull_up(IO_PORTB_08, 0);
gpio_set_pull_down(IO_PORTB_08, 0);
gpio_direction_input(IO_PORTB_08);
硬件没外置上拉电阻则使用内部上下拉电阻
硬件外部上下拉,则需要关闭内部的上下拉
硬件没有上下拉,则使用内部上下拉:根据输出1开上拉关下拉,输出0关上拉开下拉
如:使用内部上拉电阻,输出1,
gpio_latch_en(IO_PORTC_00,0);//先解除IO
gpio_direction_output(IO_PORTC_00, 1);//设置输出
gpio_set_pull_up(IO_PORTC_00, 1)//开上拉,0则关上拉
gpio_set_pull_down(IO_PORTC_00, 0);//关下拉,1则开上拉
gpio_latch_en(IO_PORTC_00,1);//锁住IO
版权声明
本文为[Rambo-Lamborghini]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u013820168/article/details/124312533
边栏推荐
- Redis基础
- JVM topic (XI) - garbage collection (II)
- Instruction of crystal Chem active GIP ELISA Kit
- Installing MySQL 8 on Linux centos7 (simple and practical)
- vtkjs介绍
- 关系型数据库与非关系型数据库概述,Redis简介、常用命令及优化
- 31 - Gru principle and source code line by line implementation
- Using MCU Xpress to develop rt1060 (1) -- drive RGB interface LCD
- Overview of relational database and non relational database, introduction to redis, common commands and optimization
- 数据分析之数据预处理
猜你喜欢

Redis installation and configuration startup

今天睡眠质量记录83分

MySQL (III) index optimization and case analysis

Redefinition of global variables in C language in multiple files

Some keywords of the robotframework cannot be used or are black

学历造假、考试包过……考证市场有多乱

Edgeboard records

JVM topic (XI) - garbage collection (II)

居家第二十一天的成果

MySQL 视图(详解)
随机推荐
Mysql database index interview questions (latest version)
auto 关键字的使用
Overview of relational database and non relational database, introduction to redis, common commands and optimization
leetcode541. 反转字符串 II
Automatic control principle Chapter 6 - correction and synthesis of control system (mind map)
Week to MySQL date
线程
关于SQL语句的执行顺序
MySQL MHA high availability cluster deployment and failover
Questions fréquemment incorrectes pour la certification quotidienne du CISSP (20 avril 2022)
《数字电子技术基础》5.1 触发器 概述
What is outsourcing?
调试 ms 源代码
Machine learning notes - Trace operator (tracking operator)
Abbexa MPO (FITC) / CD3 (PE) combined antibody
使用CMake构建/在命令行上构建项目
2023年南开大学税务专硕考研上岸前辈备考经验指导
Analysis of ribbon principle and Nacos service discovery principle
Joining Tsinghua full time, Qiu Chengtong: cultivating mathematics talents for the motherland and the global mathematics community
ParaView Glance 启动报错