当前位置:网站首页>[proteus simulation] Arduino uno uses 74ls148 to extend interrupt
[proteus simulation] Arduino uno uses 74ls148 to extend interrupt
2022-06-30 17:14:00 【perseverance52】
【Proteus Simulation 】Arduino UNO utilize 74LS148 Extended interrupt
- Proteus Simulation demonstration
Arduino UNO Hardware only 2 External interrupt pins
1
and2
, utilize 74LS148 You can extend the 8 External interrupts , But it will cost extra 3 Data pins , The function realized by interrupt is much less than that of traditional port scanning CPU spending . If you will 2 All external interrupts are extended , It can be extended to 16 External middle fracture , And there is no need to rely on other third-party library functions to implement .
AVR Knowledge of operating instructions
- AVR Single chip microcomputer IO Port is a standard two-way port , First, set IO The state of the mouth , namely : Input or output .
DDRx Register is AVR MCU port direction register , By setting DDRx You can set x The state of the port .
DDRx The corresponding bit of the port direction register is set to 1 Corresponding x The corresponding bit of the port is the output state ,DDRx The corresponding bit of the port direction register is set to 0 Corresponding x The corresponding bit of the port is the input state .
- for example :
DDRA = 0xFF; // Set port A All ports are in output state , because 0xFF The corresponding binary is 11111111b
DDRA = 0x0F // Set port A high 4 Bit is input status
边栏推荐
- leetcode:1042. 不邻接植花【随机填入符合要求的 + 后面不会形成矛盾 + set.pop】
- Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
- 【C语言】详解线程 — 线程分离函数 pthread_detach
- 万卷书 - 书单整理 [01]
- differential analysis between different groups nichenet for silicosis成功运行!
- 力士乐液控单向阀Z2S10-1-3X/
- 【JVM】类加载相关面试题——类加载过程、双亲委派模型
- List announced - outstanding intellectual property service team in China in 2021
- In order to make remote work unaffected, I wrote an internal chat room | community essay
- Compile u-boot source code for stm32p157 development board
猜你喜欢
随机推荐
【C语言】详解线程 — 多线程进行协同运算
Etcd tutorial - Chapter 8 compact, watch, and lease APIs for etcd
leetcode:1042. 不邻接植花【随机填入符合要求的 + 后面不会形成矛盾 + set.pop】
巩固入门-C#基础变量和常量
SSH tool pyqt
数据安全合规之后,给风控团队带来了新的问题
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
几个跨端开发神器
阿里云盘分享压缩包
leetcode:787. K 站中转内最便宜的航班【k步最短路 + dfs记忆化 + defaultdict(dict)】
Multi terminal collaboration of Huawei accounts to create a better internet life
[JVM] takes you to learn about the garbage collection mechanism (GC) in the JVM -- including diagrams
商鼎雲新版來襲 | 收藏夾功能已上線,滿足個人使用需求
Mysql8 NDB cluster installation and deployment
STL tutorial 7-set, pair pair pair group and functor
IO流_递归
Lambda expression_ Stream stream_ File class
基于51单片机的计件器设计
More than 20million videos have been played in the business list! Why is the reform of Agricultural Academies urged repeatedly?
addmodule_allmerge_ams_im