ST72F264G ST Microelectronics, ST72F264G Datasheet - Page 77

no-image

ST72F264G

Manufacturer Part Number
ST72F264G
Description
(ST72F260G - ST72F264G) 8-BIT MCU
Manufacturer
ST Microelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST72F264G1B5
Manufacturer:
ST
0
Part Number:
ST72F264G1M6
Manufacturer:
ST
0
Part Number:
ST72F264G2B5
Manufacturer:
ST
0
Part Number:
ST72F264G2B5
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST72F264G2B6
Manufacturer:
ST
Quantity:
10
Part Number:
ST72F264G2B6
Manufacturer:
NEC
Quantity:
6 097
Part Number:
ST72F264G2B6
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST72F264G2H
Manufacturer:
ST
0
Part Number:
ST72F264G2H1
Manufacturer:
CMD
Quantity:
1 020
Part Number:
ST72F264G2H1
Manufacturer:
ST
0
Part Number:
ST72F264G2H1
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST72F264G2H1E
Manufacturer:
ST
Quantity:
50 000
Part Number:
ST72F264G2H1E
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST72F264G2M6
Manufacturer:
SCS
Quantity:
1 225
Part Number:
ST72F264G2M6
Manufacturer:
ST
Quantity:
20 000
www.DataSheet4U.com
DataSheet
SERIAL PERIPHERAL INTERFACE (Cont’d)
11.4.3.3 Master Mode Operation
In master mode, the serial clock is output on the
SCK pin. The clock frequency, polarity and phase
are configured by software (refer to the description
of the SPICSR register).
Note: The idle state of SCK must correspond to
the polarity selected in the SPICSR register (by
pulling up SCK if CPOL=1 or pulling down SCK if
CPOL=0).
To operate the SPI in master mode, perform the
following two steps in order (if the SPICSR register
is not written first, the SPICR register setting may
be not taken into account):
1. Write to the SPICSR register:
2. Write to the SPICR register:
The transmit sequence begins when software
writes a byte in the SPIDR register.
11.4.3.4 Master Mode Transmit Sequence
When software writes to the SPIDR register, the
data byte is loaded into the 8-bit shift register and
then shifted out serially to the MOSI pin most sig-
nificant bit first.
When data transfer is complete:
Clearing the SPIF bit is performed by the following
software sequence:
1. An access to the SPICSR register while the
2. A read to the SPIDR register.
Note: While the SPIF bit is set, all writes to the
SPIDR register are inhibited until the SPICSR reg-
ister is read.
– Select the clock frequency by configuring the
– Select the clock polarity and clock phase by
– Either set the SSM bit and set the SSI bit or
– Set the MSTR and SPE bits
– The SPIF bit is set by hardware
– An interrupt request is generated if the SPIE
SPIF bit is set
4
SPR[2:0] bits.
configuring the CPOL and CPHA bits.
51
Note: The slave must have the same CPOL
and CPHA settings as the master.
clear the SSM bit and tie the SS pin high for
the complete byte transmit sequence.
Note: MSTR and SPE bits remain set only if
SS is high).
bit is set and the interrupt mask in the CCR
register is cleared.
U
shows the four possible configurations.
.com
www.DataSheet4U.com
Figure
11.4.3.5 Slave Mode Operation
In slave mode, the serial clock is received on the
SCK pin from the master device.
To operate the SPI in slave mode:
1. Write to the SPICSR register to perform the fol-
2. Write to the SPICR register to clear the MSTR
11.4.3.6 Slave Mode Transmit Sequence
When software writes to the SPIDR register, the
data byte is loaded into the 8-bit shift register and
then shifted out serially to the MISO pin most sig-
nificant bit first.
The transmit sequence begins when the slave de-
vice receives the clock signal and the most signifi-
cant bit of the data on its MOSI pin.
When data transfer is complete:
Clearing the SPIF bit is performed by the following
software sequence:
1. An access to the SPICSR register while the
2. A write or a read to the SPIDR register.
Notes: While the SPIF bit is set, all writes to the
SPIDR register are inhibited until the SPICSR reg-
ister is read.
The SPIF bit can be cleared during a second
transmission; however, it must be cleared before
the second SPIF bit in order to prevent an Overrun
condition (see
lowing actions:
– Select the clock polarity and clock phase by
– Manage the SS pin as described in
bit and set the SPE bit to enable the SPI I/O
functions.
– The SPIF bit is set by hardware
– An interrupt request is generated if SPIE bit is
SPIF bit is set.
configuring the CPOL and CPHA bits (see
Figure
Note: The slave must have the same CPOL
and CPHA settings as the master.
11.4.3.2
be held low continuously. If CPHA=0 SS must
be held low during byte transmission and
pulled up between each byte to let the slave
write in the shift register.
set and interrupt mask in the CCR register is
cleared.
ST72260G, ST72262G, ST72264G
51).
and
Section
Figure
11.4.5.2).
49. If CPHA=1 SS must
www.DataSheet
www.DataSheet
www.DataSheet
www.DataSheet4U
Section
77/171
4U
4U.com
4U
.com
.com
.com

Related parts for ST72F264G