当前位置:网站首页>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(非), 其他的輸出都是高電平,只有一個是低電平。
边栏推荐
- LeetCode 1558. Get the minimum number of function calls of the target array
- Jedis
- Gridhome, a static site generator that novices must know
- 「博士毕业一年,我拿下 ACL Best Paper」
- ~79 Movie card exercise
- Chapter 5 namenode and secondarynamenode
- Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
- @RequestMapping、@GetMapping
- How to generate six digit verification code
- 【锟斤拷】的故事:谈谈汉字编码和常用字符集
猜你喜欢

Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.

视频压缩编码和音频压缩编码基本原理

第2章 HFDS的Shell操作

100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021

Cmake Express
![Solve the problem of intel12 generation core CPU [small core full, large core onlookers] (win11)](/img/92/9465a6c9f1ab88c4851a47fabe750c.jpg)
Solve the problem of intel12 generation core CPU [small core full, large core onlookers] (win11)

提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)

Spark独立集群动态上线下线Worker节点

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

第三章 MapReduce框架原理
随机推荐
How to generate six digit verification code
两个礼拜速成软考中级软件设计师经验
~71 abbreviation attribute of font
~85 transition
Redis standalone startup
Error: case label `15 'not within a switch statement
ffmpeg命令行使用
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
One hundred questions of image processing (11-20)
LeetCode 1566. Repeat the pattern with length m at least k times
Shell_ 05_ operator
第6章 Rebalance详解
How to configure hosts when setting up Eureka
7-4 harmonic average
第2章 HFDS的Shell操作
~69 other ways to use icon fonts
Two weeks' experience of intermediate software designer in the crash soft exam
Shell_ 04_ Shell script
LeetCode 1984. Minimum difference in student scores
CMake Error: Could not create named generator Visual Studio 16 2019解决方法