|
The OP
Published on 2013-10-12 17:23
Only look at the author
This post is from MCU
Latest reply
The 750ms is for temperature conversion, and there is no read or write operation, so the interrupt can be turned on to execute the operation in the interrupt routine, such as display. The interrupt cannot be turned on during the read or write operation. If an interrupt occurs during the read or write process and the interrupt operation is executed, the 18B20 operation timing will definitely be destroyed. There are nine operations behind, all of which are in the microsecond level. Turning off the interrupt in less than 1ms will affect the display, but the human eye usually cannot feel it because the time is very short.
Details
Published on 2013-10-13 13:12
Comments
18B20 has strict requirements on operation timing. Usually, interruption is not allowed when operating 18B20. However, the read and write operation time of 18B20 is not very long (tens of microseconds), and the conversion time is long (about 1 second). Therefore, interruption needs to be turned off when reading and writing 18B20, and interruption is turned on after reading and writing (conversion command), so that 18B20 can convert by itself, and then the conversion is completed.
Details
Published on 2013-10-12 18:33
| ||
|
|
||
|
2
Published on 2013-10-12 18:33
Only look at the author
This post is from MCU
Comments | ||
|
|
||
|
|
|
3
Published on 2013-10-12 20:20
Only look at the author
This post is from MCU
Comments | ||
|
|
||
|
|
This post is from MCU
Comments | ||
|
|
||
|
|
This post is from MCU
| ||
|
|
||
|
|
|
6
Published on 2013-10-13 11:59
Only look at the author
This post is from MCU
Comments
But, I tried it. It is really no different from the original. It is really annoying. Does anyone know the specific timing of 18B20? For example, how long does it take to reset, convert temperature, read temperature, etc.? It seems that it takes less than 1s. Newbie please help!!!
Details
Published on 2013-10-13 12:10
| ||
|
|
||
|
|
This post is from MCU
| ||
|
|
||
|
|
|
8
Published on 2013-10-13 12:44
Only look at the author
| |
|
|
|
|
|
|
9
Published on 2013-10-13 12:52
Only look at the author
This post is from MCU
Comments | ||
|
|
||
|
|
This post is from MCU
Comments
The 750ms is for temperature conversion, and there is no read or write operation. Therefore, the interrupt can be enabled to execute the operation in the interrupt routine as shown. The interrupt cannot be enabled during the read or write operation. If an interrupt occurs during the read or write process and the interrupt operation is executed, the 18B20 operation timing will be destroyed. There are nine operations behind, all of which take microseconds.
Details
Published on 2013-10-13 13:12
| ||
|
|
||
|
|
|
11
Published on 2013-10-13 13:12
Only look at the author
This post is from MCU
Comments | ||
|
|
||
|
|
This post is from MCU
| ||
|
|
||
|
|
Visited sections |
EEWorld Datasheet Technical Support
EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building,
Block B, 18 Zhongguancun Street, Haidian District,
Beijing 100190, China
Tel:(010)82350740
Postcode:100190
京公网安备 11010802033920号

