When the power supply is turned on, VCC rises continuously from VSS to VCC. During this
time, the Chip Select (S
therefore recommended to connect the S
Figure 3: Bus master and memory devices on the SPI bus).
) line is not allowed to float but should follow the VCC voltage. It is
line to VCC via a suitable pull-up resistor (see
In addition, the Chip Select (S
sensitive as well as level sensitive: after power-up, the device does not become selected
until a falling edge has first been detected on Chip Select (S
(S
) must have been high, prior to going low to start the first operation.
The V
voltage has to rise continuously from 0 V up to the minimum VCC operating voltage
CC
defined in Table 8: Operating conditions (M950x0), Table 9: Operating conditions (M950x0-
W) and Table 10: Operating conditions (M950x0-R) and the rise time must not vary faster
than 1 V/µs.
2.9.4 Power-down
During power-down (continuous decrease in the VCC supply voltage below the minimum
V
operating voltage defined in Table 8: Operating conditions (M950x0), Ta b le 9 :
CC
Operating conditions (M950x0-W) and Table 10: Operating conditions (M950x0-R)), the
device must be:
●deselected (Chip Select S should be allowed to follow the voltage applied on V
●in Standby Power mode (there should not be any internal write cycle in progress).
) input offers a built-in safety feature, as the S input is edge
). This ensures that Chip Select
)
CC
10/44Doc ID 6512 Rev 10
M950x0 M950x0-W M950x0-RConnecting to the SPI bus
AI12304b
Bus master
SPI memory
device
SDO
SDI
SCK
CQD
S
SPI memory
device
CQD
S
SPI mmory
device
CQD
S
CS3CS2 CS1
SPI Interface with
(CPOL, CPHA) =
(0, 0) or (1, 1)
W
HOLD
W
HOLD
W
HOLD
RRR
V
CC
V
CC
V
CC
V
CC
V
SS
V
SS
V
SS
V
SS
R
3 Connecting to the SPI bus
The device is fully compatible with the SPI protocol.
All instructions, addresses and input data bytes are shifted in to the device, most significant
bit first. The Serial Data Input (D) is sampled on the first rising edge of the Serial Clock (C)
after Chip Select (S
All output data bytes are shifted out of the device, most significant bit first. The Serial Data
Output (Q) is latched on the first falling edge of the Serial Clock (C) after the instruction
(such as the Read from Memory Array and Read Status Register instructions) have been
clocked into the device.
Figure 3: Bus master and memory devices on the SPI bus shows an example of three
memory devices connected to an MCU, on an SPI bus. Only one memory device is selected
at a time, so only one memory device drives the Serial Data output (Q) line at a time, the
other memory devices are high impedance.
The pull-up resistor R (represented in Figure 3: Bus master and memory devices on the SPI
bus) ensures that a device is not selected if the bus master leaves the S
impedance state.
In applications where the bus master might enter a state where all SPI bus inputs/outputs
would be in high impedance at the same time (for example, if the bus master is reset during
the transmission of an Instruction), the clock line (C) must be connected to an external pull-
down resistor so that, if all inputs/outputs become high impedance, the C line is pulled low
(while the S
line is pulled high): this ensures that S and C do not become high at the same
time, and so, that the t
) goes low.
requirement is met. The typical value of R is 100 kΩ.
SHCH
line in the high
Figure 3.Bus master and memory devices on the SPI bus
1. The Write Protect (W) and Hold (HOLD) signals should be driven, high or low as appropriate.
Doc ID 6512 Rev 1011/44
Connecting to the SPI busM950x0 M950x0-W M950x0-R
AI01438B
C
MSB
CPHA
D
0
1
CPOL
0
1
Q
C
MSB
3.1 SPI modes
The device can be driven by a microcontroller with its SPI peripheral running in either of the
two following modes:
●CPOL=0, CPHA=0
●CPOL=1, CPHA=1
For these two modes, input data is latched in on the rising edge of Serial Clock (C), and
output data is available from the falling edge of Serial Clock (C).
The difference between the two modes, as shown in Figure 4: SPI modes supported, is the
clock polarity when the bus master is in Stand-by mode and not transferring data:
●C remains at 0 for (CPOL=0, CPHA=0)
●C remains at 1 for (CPOL=1, CPHA=1)
Figure 4.SPI modes supported
12/44Doc ID 6512 Rev 10
M950x0 M950x0-W M950x0-ROperating features
AI02029D
HOLD
C
Hold
Condition
Hold
Condition
4 Operating features
4.1 Hold condition
The Hold (HOLD) signal is used to pause any serial communications with the device without
resetting the clocking sequence.
During the Hold condition, the Serial Data Output (Q) is high impedance, and Serial Data
Input (D) and Serial Clock (C) are Don’t Care.
To enter the Hold condition, the device must be selected, with Chip Select (S
) low.
Normally, the device is kept selected, for the whole duration of the Hold condition.
Deselecting the device while it is in the Hold condition has the effect of resetting the state of
the device, and this mechanism can be used if it is required to reset any processes that had
been in progress.
The Hold condition starts when the Hold (HOLD
) signal is driven low at the same time as
Serial Clock (C) already being low (as shown in Figure 5: Hold condition activation).
The Hold condition ends when the Hold (HOLD
) signal is driven high at the same time as
Serial Clock (C) already being low.
Figure 5: Hold condition activation also shows what happens if the rising and falling edges
are not timed to coincide with Serial Clock (C) being low.
Figure 5.Hold condition activation
4.2 Status register
Figure 6: Block diagram shows the position of the Status register in the control logic of the
device. This register contains a number of control bits and status bits, as shown in Ta bl e 5 :
Status register format. For a detailed description of the Status register bits, see Section 6.3:
Read Status Register (RDSR).
Doc ID 6512 Rev 1013/44
Operating featuresM950x0 M950x0-W M950x0-R
4.3 Data protection and protocol control
To help protect the device from data corruption in noisy or poorly controlled environments, a
number of safety features have been built in to the device. The main security measures can
be summarized as follows:
●The WEL bit is reset at power-up.
●Chip Select (S) must rise after the eighth clock count (or multiple thereof) in order to
start a non-volatile Write cycle (in the memory array or in the Status register).
●Accesses to the memory array are ignored during the non-volatile programming cycle,
and the programming cycle continues unaffected.
●Invalid Chip Select (S) and Hold (HOLD) transitions are ignored.
For any instruction to be accepted and executed, Chip Select (S
) must be driven high after
the rising edge of Serial Clock (C) that latches the last bit of the instruction, and before the
next rising edge of Serial Clock (C).
For this, “the last bit of the instruction” can be the eighth bit of the instruction code, or the
eighth bit of a data byte, depending on the instruction (except in the case of RDSR and
READ instructions). Moreover, the “next rising edge of CLOCK” might (or might not) be the
next bus transaction for some other device on the bus.
When a Write cycle is in progress, the device protects it against external interruption by
ignoring any subsequent READ, WRITE or WRSR instruction until the present cycle is
complete.
Table 3.Write-protected block size
Status register bits
Protected block
BP1 BP0 M95040 M95020M95010
00none none nonenone
01Upper quarter 180h - 1FFhC0h - FFh 60h - 7Fh
10Upper half 100h - 1FFh80h - FFh 40h - 7Fh
11Whole memory000h - 1FFh00h - FFh 00h - 7Fh
Protected array addresses
14/44Doc ID 6512 Rev 10
Loading...
+ 30 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.