Owner manual

MAXQ1004
1-Wire and SPI Authentication Microcontroller
13
16-Bit Timer/Counter
The microcontroller has one instance of the 16-bit Timer
0 timer/counter peripheral, which supports the following
functions:
13-bit timer/counter
16-bit timer/counter
8-bit timer with autoreload
2 8-bit timer/counters
Serial Peripherals
Serial Peripheral Interface (SPI)
The integrated SPI is an independent serial communi-
cation channel that communicates synchronously with
peripheral devices in a multiple-master or multiple-slave
system. The interface allows access to a 4-wire, full-
duplex serial bus and can be operated in either master
mode or slave mode. Collision detection is provided
when two or more masters attempt a data transfer at the
same time.
The maximum SPI master transfer rate is Sysclk/2. When
operating as an SPI slave, the device can support up to
Sysclk/4 SPI transfer rate. Data is transferred as an 8-bit
or 16-bit value, MSB first. In addition, the SPI module
supports configuration of an active SSEL state through
the slave active select.
1-Wire Bus System
The 1-Wire bus is a system that has a single bus master
and one or more slaves. This microcontroller is always
a slave device in any system. The bus master is typi-
cally another microcontroller. The discussion of this bus
system is broken down into three topics: hardware con-
figuration, transaction sequence, and 1-Wire signaling
(signal types and timing). The 1-Wire protocol defines
bus transactions in terms of the bus state during specific
time slots, which are initiated on the falling edge of sync
pulses from the bus master. Refer to Application Note
937: Book of iButton
®
Standards for a more detailed
description the 1-Wire network and protocols.
The device permits the use of lower 1-Wire voltage levels
(as low as 1.7V) to support the device’s full operating
voltage, but can still be connected to a regular 1-Wire
bus of up to 6V.
Hardware Configuration
The 1-Wire bus has only a single data line (DQ); all
devices on the bus must be able to drive it at the appro-
priate time. This means that each device attached to the
1-Wire bus must have open-drain or high-impedance
outputs. The 1-Wire port is open drain.
Both the standard and overdrive communication speed
of 15.4kbps (max) and 111kbps (max), respectively,
are supported. The value of the pullup resistor primar-
ily depends on the network size and load conditions.
Recommended pullup resistor values can be found in
Table 4-1 of Application Note 937: Book of iButton
®
Standards.
The idle state for the 1-Wire bus is high. If, for any rea-
son, a transaction needs to be suspended, the bus must
remain in the idle state if the transaction is to resume. If
this does not occur and the bus is left low for more than
120Fs (standard speed), one or more devices on the bus
can be reset.
Table 1. Watchdog Interrupt Timeout
iButton is a registered trademark of Maxim Integrated
Products, Inc.
PMME CD[1:0]
WATCHDOG INTERRUPT TIMEOUT (Sysclk = 6MHz)
WD[1:0] = 00 WD[1:0] = 01 WD[1:0] = 10 WD[1:0] =11
0 00
2
12
(683Fs)
2
15
(5.46ms) 2
18
(43.7ms) 2
21
(350ms)
0 01 2
13
(1.36ms) 2
16
(11ms) 2
19
(87.4ms) 2
22
(700ms)
0 10 2
14
(2.73ms) 2
17
(21.8ms) 2
20
(175ms) 2
23
(1.4s)
0 11 2
15
(5.46ms) 2
18
(43.7ms) 2
21
(350ms) 2
24
(2.8s)
1 xx 2
20
(175ms) 2
23
(1.4s) 2
26
(11.2s) 2
29
(89.5s)