---
# System prepended metadata

title: Arduino MEGA Dallas reader/writer

---

# Arduino MEGA Dallas reader/writer

DS1386

Vcc - 5.0v for Indy (non-W)

A0-A12
DQ0-DQ7

^CE - chip enable
^OE - output enable
^WE - write enable

SQW - square wave output, NC
^INTA, ^INTB - NC; maybe pull-up? Needs to be < Vcc + 0.3V.  Maybe only pull up to 3.3V?


^CE permanently active low

Read mode:
- set ^WE inactive-high
- set ^OE
loop:
- set address pins
- wait tACC (min 120ns)
- read data DQ0-DQ7
- goto loop

Write mode:
- set ^OE inactive-high
loop:
- set address pins
- set data pins
- set ^WE active-low
- wait t-WP (min 110ns)
- set ^WE inactive-high
- wait t-WR (min 10ns)
- goto loop

^CE + ^WE -- active low.