欢迎访问ic37.com |
会员登录 免费注册
发布采购

ST72254G1B1 参数 Datasheet PDF下载

ST72254G1B1图片预览
型号: ST72254G1B1
PDF下载: 下载PDF文件 查看货源
内容描述: 与单电压闪存的8位MCU 。 ADC。 16位定时器。 SPI 。\n [8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY. ADC. 16-BIT TIMERS. SPI. ]
分类和应用: 闪存
文件页数/大小: 140 页 / 1350 K
品牌: ETC [ ETC ]
 浏览型号ST72254G1B1的Datasheet PDF文件第58页浏览型号ST72254G1B1的Datasheet PDF文件第59页浏览型号ST72254G1B1的Datasheet PDF文件第60页浏览型号ST72254G1B1的Datasheet PDF文件第61页浏览型号ST72254G1B1的Datasheet PDF文件第63页浏览型号ST72254G1B1的Datasheet PDF文件第64页浏览型号ST72254G1B1的Datasheet PDF文件第65页浏览型号ST72254G1B1的Datasheet PDF文件第66页  
ST72104G, ST72215G, ST72216G, ST72254G  
SERIAL PERIPHERAL INTERFACE (Cont’d)  
12.3.4 Functional Description  
In this configuration the MOSI pin is a data output  
and to the MISO pin is a data input.  
Figure 37 shows the serial peripheral interface  
(SPI) block diagram.  
This interface contains 3 dedicated registers:  
– A Control Register (CR)  
Transmit sequence  
The transmit sequence begins when a byte is writ-  
ten the DR register.  
– A Status Register (SR)  
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.  
– A Data Register (DR)  
Refer to the CR, SR and DR registers in Section  
12.3.7for the bit definitions.  
12.3.4.1 Master Configuration  
When data transfer is complete:  
– The SPIF bit is set by hardware  
In a master configuration, the serial clock is gener-  
ated on the SCK pin.  
– An interrupt is generated if the SPIE bit is set  
and the I bit in the CCR register is cleared.  
Procedure  
– Select the SPR0 & SPR1 bits to define the se-  
rial clock baud rate (see CR register).  
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.  
– Select the CPOL and CPHA bits to define one  
of the four relationships between the data  
transfer and the serial clock (see Figure 40).  
Clearing the SPIF bit is performed by the following  
software sequence:  
– The SS pin must be connected to a high level  
signal during the complete byte transmit se-  
quence.  
1. An access to the SR register while the SPIF bit  
is set  
– The MSTR and SPE bits must be set (they re-  
main set only if the SS pin is connected to a  
high level signal).  
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.  
62/140  
 复制成功!