当前位置:网站首页>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 .
边栏推荐
- 图像处理一百题(1-10)
- LeetCode 1638. Count the number of substrings with only one character difference
- ~83 form introduction
- Spark's RDD (elastic distributed data set) returns a large result set
- Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
- ~87 animation
- 字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
- 7-4 harmonic average
- How to generate six digit verification code
- LeetCode 1566. Repeat the pattern with length m at least k times
猜你喜欢
One hundred questions of image processing (1-10)
~79 Movie card exercise
Shell_ 00_ First meeting shell
Usage of insert() in vector
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
Chapter 5 yarn resource scheduler
LeetCode 1637. The widest vertical area between two points without any point
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
随机推荐
我走過最迷的路,是字節跳動程序員的腦回路
Submit several problem records of spark application (sparklauncher with cluster deploy mode)
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
Eureka high availability
Simple records of business system migration from Oracle to opengauss database
One hundred questions of image processing (1-10)
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
Solr standalone installation
LeetCode 1566. Repeat the pattern with length m at least k times
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
力扣leetcode第 280 场周赛
How to configure hosts when setting up Eureka
7-4 harmonic average
ByteDance new programmer's growth secret: those glittering treasures mentors
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Sublime text code formatting operation
Simply try the new amp model of deepfacelab (deepfake)
SQL quick start