English
Language : 

71M6531D_10 Datasheet, PDF (50/120 Pages) Teridian Semiconductor Corporation – Energy Meter IC
Data Sheet 71M6531D/F-71M6532D/F
FDS 6531/6532 005
Table 49: SPI Command Description
Command
Description
11xx xxxx ADDR Byte0 ... ByteN
Read data starting at ADDR. The ADDR will auto-increment until PCSZ
is raised. Upon completion:
SP__CMD=11xx xxxx, SP_ADDR=ADDR+N+1.
No MPU interrupt is generated if the command is 1100 0000. Otherwise,
an SPI interrupt is generated.
10xx xxxx ADDR Byte0 ... ByteN
Write data starting at ADDR. The ADDR will auto-increment until PCSZ
is raised. Upon completion:
SP_CMD=10xx xxxx, SP_ADDR=ADDR+N+1.
No MPU interrupt is generated if the command is 1000 0000. Otherwise,
an SPI interrupt is generated.
Certain I/O RAM registers can be written and read using the SPI port (see Table 50). However, the MPU
takes priority over the I/O RAM bus, and SPI operation may fail without notice. To avoid this situation, the
SPI host should send a command other than 11xxxxxx or 10xxxxxx (read or write) before the actual read
or write command. The SPI slave interface will load the command register and generate an INT2 inter-
rupt upon receiving the command. The MPU should service the interrupt and halt any external data memory
operations to effectively grant the bus to the SPI. When the SPI host finishes, it should send another
command so the MPU can release the bus. There are no issues with Data RAM access; SPI and the
MPU will share the bus with no conflicts for Data RAM access.
Table 50: I/O RAM Registers Accessible via SPI
Name
CE0
CE1
CE2
CONFIG0
CONFIG1
VERSION
CONFIG2
DIO0
DIO1 to DIO6
−
RTM0H
RTM0L
RTM1H
RTM1L
RTM2H
RTM2L
RTM3H
RTM3L
PLS_W
PLS_I
SLOT0 to SLOT9
CE3
CE4
CE5
WAKE
CONFIG3
CONFIG4
−
Address (hex)
2000
2001
2002
2004
2005
2006
2007
2008
2009 to 200E
200F
2060
2061
2062
2063
2064
2065
2066
2067
2080
2081
2090 to 209A
209D
20A7
20A8
20A9
20AC
20AD
20AF
Bit Range
7:3
7:0
5:3, 1:0
7:6, 3:0
5:2, 0
7:0
7:0
7:6, 4:0
6:4, 2:0
7:6, 3:2
1:0
7:0
1:0
7:0
1:0
7:0
1:0
7:0
7:0
7:0
7:0
3:0
7:0
7:0
7:5, 3:0
5:4, 1:0
5:4, 1:0
2:0
Read/Write
RW
RW
RW
RW
RW
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
R
RW
RW
RW
50
© 2005-2010 TERIDIAN Semiconductor Corporation
v1.3