当前位置:网站首页>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(非), 其他的输出都是高电平,只有一个是低电平。
边栏推荐
- 第7章 __consumer_offsets topic
- JS encapsulates the method of array inversion -- Feng Hao's blog
- @RestController、@Controller
- LeetCode 1641. Count the number of Lexicographic vowel strings
- Market trend report, technical innovation and market forecast of tabletop dishwashers in China
- One hundred questions of image processing (11-20)
- LeetCode 1638. Count the number of substrings with only one character difference
- Basic principles of video compression coding and audio compression coding
- Chapter 5 detailed explanation of consumer groups
- 7-6 sum of combinatorial numbers
猜你喜欢

Hbuilder x format shortcut key settings

Solr standalone installation

ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues

ByteDance open source Gan model compression framework, saving up to 97.8% of computing power - iccv 2021

LeetCode 1637. The widest vertical area between two points without any point

Basic principles of video compression coding and audio compression coding

CMake速成

MP4格式详解

Redis standalone startup

Cmake Express
随机推荐
Chapter 5 detailed explanation of consumer groups
提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
JS encapsulates the method of array inversion -- Feng Hao's blog
[unsolved]7-14 calculation diagram
音视频开发面试题
我走過最迷的路,是字節跳動程序員的腦回路
7-6 sum of combinatorial numbers
~70 row high
Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
谢邀,人在工区,刚交代码,在下字节跳动实习生
图像处理一百题(1-10)
第一章 MapReduce概述
Research Report on market supply and demand and strategy of China's four seasons tent industry
Mp4 format details
Market trend report, technical innovation and market forecast of double-sided foam tape in China
Jedis
视频压缩编码和音频压缩编码基本原理
Research Report on market supply and demand and strategy of China's four flat leadless (QFN) packaging industry
Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog
Record the error reason