当前位置:网站首页>Design of DS18B20 digital thermometer system
Design of DS18B20 digital thermometer system
2022-07-06 16:53:00 【Society, you Lei brother, life is hard, don't bend down】
STC89C52 Single chip microcomputer
STC89C52 Introduction to MCU interface
This single chip computer has 40 One pin .
①P0 mouth (P0.0~P0.7) 8 Bit drain switch type bidirectional switch I/O port . It can be used as a general purpose I/O Mouth use , But the pull resistance must be added .
②P1 mouth (P1.0~P1.7) With pull-up resistor inside 8 Position accurate two-way I/O port .
③P2 mouth (P2.0~P2.7) With pull-up resistor inside 8 Position accurate two-way I/O port .
④P3 mouth (P3.0~P3.7) With pull-up resistor inside 8 Bit multifunctional bidirectional I/O port , With external interrupt .
51 SCM interrupt trigger mode introduction
There are two ways to trigger interrupts , They are level trigger and edge trigger . Level trigger is to check the interrupt source line in each machine cycle , Detection of low level will be set as the flag of interrupt request . Edge trigger is when the MCU detects the high level of the interrupt source line in the last machine cycle , Low level detected in the next machine cycle , Will set the flag of the interrupt request , Request interrupt .
74HC245 Chip usage
The chip is in DS18B20 The function of digital thermometer system is to increase the driving ability , Increased the brightness of the nixie tube . In addition, this chip can protect the master chip , It also has the function of two-way asynchronous communication , It has 20 One pin , In the system, the chip A End 8 Pins and MCU P0.0-P0.7 Connected to a , The first pin of this chip DIR position 1 Hour high level from A End input B End output , by 0 The low level can be changed from B End input A End output . It also has a special pin OE Pin , That is, enable port , by 1 when A/B End is not conductive , by 0 Time conduction , In fact, it acts as a switch .
74HC138N chip
38 The decoder will 3 position 2 The hexadecimal number is converted into eight outputs in different states through the circuit
① When a strobe G1 High level , The other two strobes (G2) and (G3)) Low power level , The address end can be (A0、A1、A2) The binary code of is in Y0 to Y7 Corresponding output The terminal translates at a low level . such as : A2A1A0=1 10 when , be Y6 The output terminal outputs a low-level signal .
principle : There are three strobe ends , Only the selected through end is 100 when 138 Just work , Each binary number corresponds to a low-level output , such as 000 Corresponding y1( Not ), Other outputs are high , Only one is low level .
边栏推荐
猜你喜欢
Mp4 format details
Two weeks' experience of intermediate software designer in the crash soft exam
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
字节跳动技术面试官现身说法:我最想pick什么样的候选人
亮相Google I/O,字节跳动是这样应用Flutter的
第2章 HFDS的Shell操作
Spark independent cluster dynamic online and offline worker node
我在字节跳动「修电影」
How to configure hosts when setting up Eureka
Sublime text code formatting operation
随机推荐
ByteDance new programmer's growth secret: those glittering treasures mentors
~70 row high
One hundred questions of image processing (11-20)
(multiple methods, need to continue to see) 7-11 go deep into the tiger's Den
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
Educational Codeforces Round 122 (Rated for Div. 2)
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
我在字节跳动「修电影」
LeetCode 1545. Find the k-th bit in the nth binary string
LeetCode 1562. Find the latest group of size M
DS18B20數字溫度計系統設計
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
LeetCode 1640. Can I connect to form an array
Shell_ 03_ environment variable
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
TypeScript基本操作
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
~85 transition
Record the error reason
腾讯面试算法题