当前位置:网站首页>DS18B20数字温度计系统设计
DS18B20数字温度计系统设计
2022-07-06 09:29:00 【社会你磊哥,命硬不弯腰】
STC89C52单片机
STC89C52单片机接口介绍
这个单片机一共有40个引脚。
①P0口(P0.0~P0.7) 8位漏极开关型双向I/O端口。可以作为通用I/O口使用,但必须加上拉电阻。
②P1口(P1.0~P1.7) 内部带上拉电阻的8位准双向I/O端口。
③P2口(P2.0~P2.7) 内部带上拉电阻的8位准双向I/O端口。
④P3口(P3.0~P3.7) 内部带上拉电阻的8位多功能双向I/O端口,具有外中断。
51单片机中断触发方式介绍
有两种中断触发方式,分别是电平触发和边沿触发。电平触发是每个机器周期内检查中断源口线,检测到低电平会置为中断请求的标志。边沿触发是单片机在上一个机器周期检测到中断源口线高电平,下一个机器周期内检测到低电平,会置位中断请求的标志,请求中断。
74HC245芯片使用
该芯片在DS18B20数字温度计系统中的作用是增加驱动能力,增加了数码管的亮度。另外这个芯片可以保护主控芯片,它还具有双向异步通信的功能,它一共有20个引脚,在系统中该芯片的A端8个引脚和单片机的P0.0-P0.7相连,这个芯片的第一个引脚DIR位1时高电平从A端输入B端输出,为0时低电平可以从B端输入A端输出。它还有一个比较特殊的引脚是OE引脚,也就是使能端口,为1时A/B端不导通,为0时导通,其实就是起到了开关的作用。
74HC138N芯片
38译码器是将3位2进制数通过电路转换成八路不同状态的输出
①当一个选通端G1为高电平,另两个选通端(G2)和(G3))为低电平时, 可将地址端(A0、A1、A2)的二进制编码在Y0至Y7对应的输出 端以低电平译出。比如: A2A1A0=1 10时,则Y6输出端输出低电平信号。
原理:有三个选通端,只有当选通端为100时138才工作, 每一个二进制数对应一个低电平的输出,比如000对应y1(非), 其他的输出都是高电平,只有一个是低电平。
边栏推荐
- Redis standalone startup
- Chapter III principles of MapReduce framework
- One hundred questions of image processing (1-10)
- LeetCode 1558. Get the minimum number of function calls of the target array
- Chapter 7__ consumer_ offsets topic
- China tetrabutyl urea (TBU) market trend report, technical dynamic innovation and market forecast
- Simple records of business system migration from Oracle to opengauss database
- 音视频开发面试题
- LeetCode 1584. Minimum cost of connecting all points
- ~84 form supplement
猜你喜欢
随机推荐
Solr new core
MP4格式详解
Market trend report, technological innovation and market forecast of China's double sided flexible printed circuit board (FPC)
Record the error reason: terminate called after throwing an instance
LeetCode 1545. Find the k-th bit in the nth binary string
第5章 消费者组详解
Chapter III principles of MapReduce framework
Market trend report, technical innovation and market forecast of tabletop dishwashers in China
Tencent interview algorithm question
Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment
~81 long table
第五章 Yarn资源调度器
Hbuilder x format shortcut key settings
~78 radial gradient
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
我走过最迷的路,是字节跳动程序员的脑回路
~79 Movie card exercise
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
Research Report on market supply and demand and strategy of China's tetraacetylethylenediamine (TAED) industry
~74 JD top navigation bar exercise