Skip to content

Commit 06df3b2

Browse files
xorbitdpgeorge
authored andcommitted
extmod/modonewire: Adopt Maxim recommended read timings.
The timing of the onewire module was way too fast when reading. This commit adopts read timings as recommended in Maxim application note 126: 6 us (pulse) / 9 us (sample) / 55 us (bit slot). See also: https://www.analog.com/en/technical-articles/1wire-communication-through-software.html Signed-off-by: Damien George <damien@micropython.org>
1 parent de3e83a commit 06df3b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extmod/modonewire.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
#define TIMING_RESET1 (480)
3939
#define TIMING_RESET2 (70)
4040
#define TIMING_RESET3 (410)
41-
#define TIMING_READ1 (5)
42-
#define TIMING_READ2 (5)
43-
#define TIMING_READ3 (40)
41+
#define TIMING_READ1 (6)
42+
#define TIMING_READ2 (9)
43+
#define TIMING_READ3 (55)
4444
#define TIMING_WRITE1 (10)
4545
#define TIMING_WRITE2 (50)
4646
#define TIMING_WRITE3 (10)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy