MAX1464
Low-Power, Low-Noise Multichannel
Sensor Signal Processor
______________________________________________________________________________________ 19
face for programming of instruction code and calibra-
tion coefficients. The MAX1464 serial interface can
operate in 4-wire SPI-compatible mode or in a 3-wire
mode (default on power-up). In 3-wire mode, the DI and
DO lines can be connected together, forming a bidirec-
tional data line. The serial interface lines consist of
chip-select (CS), serial clock (SCLK), data in (DI), and
data out (DO).
The MAX1464 serial interface is selected by asserting
CS low. The serial input clock, SCLK, is gated internally
to begin sequencing the DI input data and outputting
the output data onto DO. When CS rises, the data that
was clocked into DI is loaded into an internal register
set (IRS[7:0]). The MAX1464 chip-select line CS cannot
be connected low continuously for normal operation.
The serial interface can be used both during sensor
calibration, as well as during normal operation. Each
byte of data written into the MAX1464 serial port con-
tains a 4-bit addresses nibble (IRSA [3:0]) and a 4-bit
data nibble (IRSD [3:0]). The IRS register holds both
the IRSD and IRSA nibbles as follows:
IRS [7:0] = IRSD [3:0], IRSA [3:0]
Four bytes of IRS information must be written into the
serial interface to transfer 16 bits of data through IRSD
into a MAX1464 internal register. All serial data written
into the MAX1464 is transferred through the IRS register.
The DI is read in with the LSB of the IRSA nibble first
and the MSB of the IRSD nibble last. Figure 8 shows
serial interface data input.
The IRSA bits are decoded to determine which register
the IRSD bits should be latched into. The IRSA bits
can address the DHR, the PFAR, the CR, and the IMR.
All serial data read from the serial interface is sourced
from the 16-bit DHR. Any data to be read by the serial
interface must first be placed into the internal DHR register
before being accessible for reading by the serial interface.
The entire 16-bit content of the DHR register is read out
through the DO pin by applying 16 successive clock
pulses to SCLK while CS remains low. DHR is clocked
out MSB bit first. Figure 9 shows the 4-wire mode data
read from the DHR register
In 4-wire mode, data is transferred into DI during the
clocking of data out of DO. Therefore, the last 8 bits
clocked into the DI pin during this data transfer are
latched into the IRS register and decoded when CS
returns high.
When the MAX1464 serial interface is configured in 3-
wire mode, the 16-bit DHR data is read out immediately
following the command for 3-wire mode enable. Figure
10 shows the 3-wire enable command (IRS[7:0] = 19h)
clocked into DI with a subsequent 16-bit read of DHR
on DO. DO remains in high impedance (tri-state) until
the 3-wire enable command is received. Then DO goes
into low-impedance drive mode during the next low
cycle of CS. As SCLK is clocked 16 times, the data in
DHR is clocked out at DO. The 3-wire enable command
is the command that sets the MAX1464 ready for output
on DO on the next low cycle of CS. Following the DHR
output on the low cycle of CS, the DO line returns to
high-impedance state until the next 3-wire enable com-
mand is received. The MAX1464 can receive an indefi-
nite number of inputs to DI without the need for a 3-wire
enable command to be received.
When the IRSD[3:0] nibble is written to the command
register (CR), i.e., when IRSA[3:0] = 1000, the nibble is
decoded and a command operation is initiated. The
command register decoding is shown in Table 39.
When the IRSD[3:0] nibble is written to the IMR, i.e.,
when IRSA[3:0] = 1000, the nibble is decoded and a
command operation is initiated. The IMR decoding is
shown in Table 40.
Note that after power is applied and the POR function
completes, the serial interface default is the 3-wire mode
for receiving data on DI only. The DO line is a high-
impedance output until the MAX1464 receives either the
4-wire or 3-wire mode command in the IMR. In the case
of a 3-wire mode command, DO switches from a high-
impedance state to a driving state only for the next cycle
of CS, returning to high impedance afterwards.
All commands, with the exception of programming or
erasing the FLASH memory, are completed within eight
internal master clock cycles of CS returning from low to
high. This is 4µs for a 4MHz oscillator frequency or
external clock input (1 internal master clock = 2 exter-
nal/internal oscillator periods). FLASH memory pro-
gramming and erasing require additional time of 80µs
and 4.2ms, respectively.
GPIOn
40h OR 41hGPIOn_Control
EDGE OR LEVEL DETECT
V
SS
100k
TRI-STATE
BUFFER
Figure 7. GPIO1 and GPIO2 Modules
MAX1464
Low-Power, Low-Noise Multichannel
Sensor Signal Processor
20 ______________________________________________________________________________________
FLASH Memory
There are 4096 bytes of programmable/erasable FLASH
memory for CPU program instructions and coefficients
storage. In addition, there are 128 bytes of FLASH mem-
ory accessible only by the serial interface for storage of
user information data.
These two FLASH memory locations are separated as
partitions. The program/coefficient memory is FLASH
partition 0 and the information memory is FLASH parti-
tion 1. Each partition is accessible by the serial inter-
face for reading, erasing, and writing data. Program/
coefficient memory partition 0 is accessible by the CPU
as read only, and partition 1 is not accessible by the
CPU. The CPU cannot erase or write data to either of
the FLASH memory partitions.
FLASH partition 0 is selected during the POR cycle.
FLASH partition 1 is selected by sending the halt CPU
command (IRS[7:0] = 78h) and changing the partition
selected by sending the change partition command
(IRS[7:0] = F8h). A following halt command (IRS[7:0] =
78h) resets the selected partition to partition 0.
Modifying the FLASH Contents
The MAX1464 FLASH memory contents must be erased
(contents = FFh) before the desired contents can be writ-
ten. There is no individual byte-erase command, but
either a total-erase command (IRS[7:0] = E8h) where all
the selected partition is erased (4kB for partition 0 or 128
bytes for partition 1) or a page-erase command (IRS[7:0]
= D8h), where only 64 bytes are erased, and the page is
selected by PFAR[11:6]. There are 64 pages in FLASH
partition 0, and only 2 pages in FLASH partition 1.
The programming of the MAX1464 FLASH memory
must use the following procedure (all the commands
are to be sent through the serial interface, and are
hexadecimal values of IRS[7:0]):
IRS0
IRSA0
IRS1
IRSA1
IRS2
IRSA2
IRS3
IRSA3
IRS4
IRSD0
IRS5
IRSD1
IRS6
IRSD2
IRS7
IRSD3
SCLK
DI
CS
Figure 8. Serial Interface Data Input
IRS0
IRSA0
IRS2
IRSA2
IRS3
IRSA3
IRS4
IRSD0
IRS5
IRSD1
IRS6
IRSD2
IRS7
IRSD3
IRS0
IRSA0
IRS1
IRSA1
IRS2
IRSA2
IRS3
IRSA3
IRS4
IRSD0
IRS5
IRSD1
IRS6
IRSD2
IRS7
IRSD3
DHR15 DHR14 DHR13 DHR12 DHR11 DHR10 DHR9 DHR8 DHR7 DHR6 DHR5 DHR4 DHR3 DHR2 DHR1 DHR0
CS
SCLK
DI
DO
IRS1
IRSA1
Figure 9. 4-Wire Mode Data Read from DHR Register
DHR15 DHR14 DHR13 DHR12 DHR11 DHR10 DHR9 DHR8 DHR7 DHR6 DHR5 DHR4 DHR3 DHR2 DHR1 DHR0
1
IRSA0
0
IRSA1
0
IRSA2
1
IRSA3
1
IRSD0
0
IRSD1
0
IRSD2
0
IRSD3
CS
SCLK
DI
DO
Figure 10. 3-Wire Mode Data Read from DHR Register
MAX1464
Low-Power, Low-Noise Multichannel
Sensor Signal Processor
______________________________________________________________________________________ 21
1) Halt the CPU:
78
2) If partition 1 is to be modified, enter the following
command:
F8
Otherwise, partition 0 is selected.
3) Turn off all analog modes:
03 02 01 00 (write 0000h to DHR[15:0])
D4 (write Dh to PFAR[3:0])
08 (write DHR, 1000h to CPU port
pointed by PFAR[3:0], port D)
03 02 31 10 (write 0031h to DHR[15:0])
E4 (write Eh to PFAR[3:0])
08 (write DHR, 0031h to CPU port
pointed by PFAR[3:0], port E)
83 02 01 00 (write 8000h to DHR[15:0])
F4 (write Fh to PFAR[3:0])
08 (write DHR, 8000h to CPU port
pointed by PFAR[3:0], port F)
At this point, all the MAX1464 analog modules are off.
4) For erasing the whole partition, send the following
command:
E8
Otherwise, if only a page erase is required, first write
PFAR[11:6] with the page address, as:
07 X6 X5 04 (write 0XX0h to PFAR[15:0])
Note that the 2 lower bits of PFAR[7:4] should be
zero, and only the upper 2 bits of that nibble should
be set to the desired value. Then, after writing the
page address, send the page-erase command:
D8
5) Wait at least 4.2ms before sending any other
command to allow the necessary time for the
erase operation to complete.
6) Write the address of the FLASH byte to be written
to PFAR[15:0]:
07 X6 X5 X4 (write 0XXXh to PFAR[15:0])
7) Write the contents of the byte to DHR[7:0]:
X1 X0 (write XXh to DHR[7:0], high nibble
at DHR[7:4])
8) Send the command to execute the FLASH write:
18
9) Repeat steps 6, 7, and 8 for all the bytes to be
written. It is not necessary to send the whole
address and data for every byte that is written. Only
the nibbles that are modified in the PFAR and in the
DHR from previous values must be changed. The
time interval between successive write commands
(18h) must be at least 80µs.
10) If partition 1 was selected in step 2, and the user
wants to switch back to partition 0, send the follow
ing command:
78
At this point, partition 0 is selected. The user may
want to go back to step 4 to program partition 0, or
just continue on.
Reading the FLASH Contents
The procedure to read the FLASH contents is no different
from reading any other information from the MAX1464.
The FLASH contents must be copied to the DHR and
read through the serial interface:
1) If the CPU is not halted, halt the CPU:
78
2) If partition 1 is to be read, enter the following
command:
F8
Otherwise, partition 0 is selected.
3) Write the address of the flash byte to be read to
PFAR[15:0]:
07 X6 X5 X4 (write 0XXXh to PFAR[15:0])
4) Copy the contents of FLASH addressed by PFAR to
DHR:
38
5) If the interface is configured in 3-wire mode, send
19
to enable DO on the next CS cycle. Then tri-
state the DI driver, and send 16 SCLK pulses on
the following CS cycle, and DO outputs DHR[15:0].
The FLASH data is present at DHR[7:0]. See Figure
10 for details.
If the interface is configured in 4-wire mode, there
is no need to enable the DO line, as it has already
been enabled by a previous IRS command 09h.
Send the 16 SCLK pulses and retrieve the data on
the DO line.
6) Repeat steps 3, 4, and 5 for every byte to be read.
Only the nibbles that are modified in the PFAR reg-
ister are required to be sent.

MAX1464AAI+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
16-bit Microcontrollers - MCU Low-Pwr/Nse MultiCh Sensor Signal Prcssr
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet