当前位置:网站首页>DS18B20數字溫度計系統設計
DS18B20數字溫度計系統設計
2022-07-06 16:53: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(非), 其他的輸出都是高電平,只有一個是低電平。
边栏推荐
- 音视频开发面试题
- 亮相Google I/O,字节跳动是这样应用Flutter的
- [unsolved]7-14 calculation diagram
- JS encapsulates the method of array inversion -- Feng Hao's blog
- 第5章 NameNode和SecondaryNameNode
- Error occurred during initialization of VM Could not reserve enough space for object heap
- 腾讯面试算法题
- Ffmpeg command line use
- LeetCode 1020. Number of enclaves
- Two weeks' experience of intermediate software designer in the crash soft exam
猜你喜欢

第5章 NameNode和SecondaryNameNode

7-5 blessing arrived

MP4格式详解

LeetCode 1558. Get the minimum number of function calls of the target array

字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了

Chapter 5 detailed explanation of consumer groups

Simply try the new amp model of deepfacelab (deepfake)

我在字节跳动「修电影」

Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog

I'm "fixing movies" in ByteDance
随机推荐
Spark独立集群Worker和Executor的概念
Mp4 format details
~83 form introduction
Educational Codeforces Round 122 (Rated for Div. 2)
LeetCode 1562. Find the latest group of size M
LeetCode 1560. The sector with the most passes on the circular track
~77 linear gradient
~Introduction to form 80
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
Eureka high availability
Detailed explanation of FLV format
Sublime text code formatting operation
~79 Movie card exercise
SQL快速入门
亮相Google I/O,字节跳动是这样应用Flutter的
[unsolved] 7-15 shout mountain
~81 long table
第五章 Yarn资源调度器
图像处理一百题(11-20)
LeetCode 1551. Minimum operand to make all elements in the array equal