当前位置:网站首页>Instructions for Jerry's reset IO maintenance level [chapter]
Instructions for Jerry's reset IO maintenance level [chapter]
2022-04-23 01:31:00 【Rambo-Lamborghini】
1、 Set before reset IO state
Note that some packages are too IO Tied together inside , You need to set another IO High resistance mode , Such as PB8 High resistance :
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);
If there is no external pull-up resistor in the hardware, use the internal pull-up resistor
External hardware pull-down , You need to turn off the internal up and down
The hardware does not pull up or down , Use the internal pull-down menu : According to the output 1 Open, pull up, close and pull down , Output 0 Close and pull down
Such as : Use an internal pull-up resistor , Output 1,
gpio_latch_en(IO_PORTC_00,0);// Release first IO
gpio_direction_output(IO_PORTC_00, 1);// Set output
gpio_set_pull_up(IO_PORTC_00, 1)// Open and pull ,0 Then close and pull
gpio_set_pull_down(IO_PORTC_00, 0);// Turn off the pull-down ,1 Then open and pull
gpio_latch_en(IO_PORTC_00,1);// Lock the IO
版权声明
本文为[Rambo-Lamborghini]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220922460346.html
边栏推荐
- Detailed explanation of the usage of C language getchar
- Unrelated interprocess communication -- creation and use of named pipes
- gin框架的学习--golang
- Level 4 city area table xlsx, SQL file, domestic, provincial, county, street, township level 4 address in China (name, linkage ID, level, end level or not (1-yes))
- 蒜头君开公司(DFS全排列)
- DFS parity pruning
- gin -get请求的小示例2-Handle处理post请求
- Software maintenance exercises
- JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
- Gbase 8s Group by 功能介绍
猜你喜欢
gin框架的学习--golang
GBase 8s 备份介绍
Detailed explanation of the usage of C language getchar
Redis实现分布式锁
Error: permissionerror: [winerror 32] this file is in use by another program and cannot be accessed by the process. Solution of "+ file path"
engine. Post() handles post requests
2022 penetration job interview (thinking)
全排列(DFS和next_permutation解法)
Learning of gin framework -- golang
In the context of Internet plus, how can enterprises innovate customer service?
随机推荐
彻底卸载Antidote 10 ?Antidote卸载不干净怎么办?
[the first contact between Android engineers and smart home products ③] the specific implementation of smartconfig one key distribution network on the hardware side | the specific implementation of es
Innovative practice of short video content understanding and generation technology in meituan
清研环境深交所上市:年营收1.8亿 市值41亿
Prince saves Princess (DFS)
Use Charles to grab app package
Gbase 8s group by function introduction
Chris LATTNER, father of llvm: the golden age of compilers
How to introduce SPI into a project
GBase8s SQL 引擎框架简介
Small example of gin - get request 2-handle handles post requests
Vscode + PHP debug + namespace guidelines
轮转法分片
.NET(C#) MySQL conn.Open()报错:SSL Connection error的解决方法
Gbase 8s检查点简介
C language guessing game and trickery game
Gbase 8s Group by 功能介绍
Vs + C realizes that the form input box displays gray text by default
iTextSharp 基础结构
Itextsharp infrastructure