ST72T331N2T6 STMicroelectronics, ST72T331N2T6 Datasheet - Page 72

no-image

ST72T331N2T6

Manufacturer Part Number
ST72T331N2T6
Description
8-bit Microcontrollers - MCU OTP EPROM 8K SPI/SCI
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72T331N2T6

Product Category
8-bit Microcontrollers - MCU
Rohs
yes
Core
ST7
Data Bus Width
8 bit
Maximum Clock Frequency
16 MHz
Program Memory Size
8 KB
Data Ram Size
384 B
On-chip Adc
Yes
Package / Case
TQFP-64
Mounting Style
SMD/SMT
A/d Bit Size
8 bit
A/d Channels Available
8
Interface Type
SCI, SPI
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
44
Number Of Timers
2
On-chip Dac
No
Program Memory Type
EPROM
Factory Pack Quantity
90
Supply Voltage - Max
5.5 V
Supply Voltage - Min
3.5 V
ST72E331 ST72T331
SERIAL PERIPHERAL INTERFACE (Cont’d)
5.6.4 Functional Description
Figure 1
(SPI) block diagram.
This interface contains 3 dedicated registers:
Refer to the CR, SR and DR registers in
0.1.7
5.6.4.1 Master Configuration
In a master configuration, the serial clock is gener-
ated on the SCK pin.
Procedure
72/107
72
– A Control Register (CR)
– A Status Register (SR)
– A Data Register (DR)
– Select the SPR0 & SPR1 bits to define the se-
– Select the CPOL and CPHA bits to define one
– The SS pin must be connected to a high level
– The MSTR and SPE bits must be set (they re-
rial clock baud rate (see CR register).
of the four relationships between the data
transfer and the serial clock (see
signal during the complete byte transmit se-
quence.
main set only if the SS pin is connected to a
high level signal).
for the bit definitions.
shows the serial peripheral interface
Figure
Section
4).
In this configuration the MOSI pin is a data output
and to the MISO pin is a data input.
Transmit sequence
The transmit sequence begins when a byte is writ-
ten the DR register.
The data byte is parallel loaded into the 8-bit shift
register (from the internal bus) during a write cycle
and then shifted out serially to the MOSI pin most
significant bit first.
When data transfer is complete:
During the last clock cycle the SPIF bit is set, a
copy of the data byte received in the shift register
is moved to a buffer. When the DR register is read,
the SPI peripheral returns this buffered value.
Clearing the SPIF bit is performed by the following
software sequence:
1. An access to the SR register while the SPIF bit
2. A read to the DR register.
Note: While the SPIF bit is set, all writes to the DR
register are inhibited until the SR register is read.
– The SPIF bit is set by hardware
– An interrupt is generated if the SPIE bit is set
is set
and the I bit in the CCR register is cleared.

Related parts for ST72T331N2T6