当前位置:网站首页>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 1447. Simplest fraction
- Educational Codeforces Round 122 (Rated for Div. 2)
- Mp4 format details
- 谢邀,人在工区,刚交代码,在下字节跳动实习生
- Eureka single machine construction
- 解决Intel12代酷睿CPU【小核载满,大核围观】的问题(WIN11)
- 字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
- 这116名学生,用3天时间复刻了字节跳动内部真实技术项目
- ~73 other text styles
- LeetCode 1562. Find the latest group of size M
猜你喜欢

Chapter 7__ consumer_ offsets topic

Error occurred during initialization of VM Could not reserve enough space for object heap

~87 animation

~Introduction to form 80

Chapter 2 shell operation of hfds

Solr word segmentation analysis

~74 JD top navigation bar exercise

~86m rabbit practice

How to configure hosts when setting up Eureka

【锟斤拷】的故事:谈谈汉字编码和常用字符集
随机推荐
Spark's RDD (elastic distributed data set) returns a large result set
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
~70 row high
One hundred questions of image processing (1-10)
~82 style of table
~74 JD top navigation bar exercise
~77 linear gradient
LeetCode 1638. Count the number of substrings with only one character difference
~69 other ways to use icon fonts
The 116 students spent three days reproducing the ByteDance internal real technology project
【锟斤拷】的故事:谈谈汉字编码和常用字符集
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
7-5 blessing arrived
QT system learning series: 1.2 style sheet sub control lookup
LeetCode 1637. The widest vertical area between two points without any point
LeetCode 1557. The minimum number of points that can reach all points
第5章 消费者组详解
提交Spark应用的若干问题记录(sparklauncher with cluster deploy mode)
Chapter 5 namenode and secondarynamenode
LeetCode 1566. Repeat the pattern with length m at least k times