1 1-wire peripheral regis, 1 1-wire address regist, 2 1-wire data register – Maxim Integrated MAXQ Family User Manual
Page 132: 1 1-wire peripheral registers -3, 1 1-wire address register (owa) -3, 2 1-wire data register (owd) -3, Maxq family user’s guide, 1 1-wire peripheral registers, 1 1-wire address register (owa), 2 1-wire data register (owd)
13.1 1-Wire Peripheral Registers
The MAXQ microcontroller interfaces to the 1-Wire Bus Master through two peripheral registers: 1-Wire Master Address (OWA) and
1-Wire Master Data (OWD). These two registers allow read/write access of the six internal registers of the 1-Wire Bus Master. The inter-
nal registers provide a means for the CPU to configure and control transmit/receive activity through the Bus Master.
The three least significant bits (A[2:0]) of the OWA peripheral register specify the address of the internal register to be accessed. The
OWD SFR is used for read/write access to the implemented bits of the specified internal register. To access an internal 1-Wire regis-
ter, a valid address must be specified in the OWA peripheral register prior to performing a read/write operation to the OWD peripher-
al register. As long as a valid address is presented in OWA, read accesses of OWD will return data content from the internal target reg-
ister and writes to OWD will update the internal target register with the data provided via OWD (with exception of the interrupt flag
Register, which is read only). The following details the OWA and OWD registers.
13.1.1 1-Wire Address Register (OWA)
Bits 7 to 3: Reserved
Bits 2 to 0: 1-Wire Internal Register Address Bits (A[2:0]). These bits are used to select one of the 1-Wire Master internal registers
to be accessed via the OWD register. Prior to accessing any of the 1-Wire Master internal registers, the address for the target internal
register must be specified. Addresses where A[2:0] = 11xb are considered reserved addresses and are not supported by the Bus
Master. Read access to these addresses will return invalid data in OWD and write accesses will not change the content of any writable
registers.
13.1.2 1-Wire Data Register (OWD)
Bits 7 to 0: 1-Wire Data Register (OWD.[7:0]). This register contains the data value read from the target internal register as selected
by the A[2:0] bits in the OWA register when read. A write to the OWD causes the data to be written to the target internal register select-
ed by the A[2:0] bits of the OWA register (with exception of the interrupt flag register, which is read-only).
13-3
MAXQ Family User’s Guide
Bit #
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
A2
A1
A0
Reset
0
0
0
0
0
1
1
1
Access
r
r
r
r
r
rw
rw
rw
r = read, w = write
Bit #
7
6
5
4
3
2
1
0
Name
OWD.7
OWD.6
OWD.5
OWD.4
OWD.3
OWD.2
OWD.1
OWD.0
Reset
0
0
0
0
0
0
0
0
Access
rw
rw
rw
rw
rw
rw
rw
rw
r = read, w = write
A2
A1
A0
INTERNAL REGISTER (READ/WRITE ACCESSIBILITY)
0
0
0
Command (Read/Write)
0
0
1
Transmit/Receive Buffer (Read/Write)
0
1
0
Interrupt Flag (Read)
0
1
1
Interrupt Enable (Read/Write)
1
0
0
Clock Divisor (Read/Write)
1
0
1
Control (Read/Write)
1
1
X
Reserved
Maxim Integrated