| 数据搜索系统,热门电子元器件搜索 |
|
ST90135 数据表(PDF) 133 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST90135 数据表(HTML) 133 Page - STMicroelectronics |
|
133 / 190 page ![]() 133/190 ST90158 - SERIAL PERIPHERAL INTERFACE (SPI) SERIAL PERIPHERAL INTERFACE (Cont’d) Figure 66. SPI I/O Pins n 9.4.4 Interrupt Structure The SPI peripheral is associated with external in- terrupt channel B0 (pin INT2). Multiplexing be- tween the external pin and the SPI internal source is controlled by the SPEN and BMS bits, as shown in Table 25. The two possible SPI interrupt sources are: – End of transmission (after each byte). – S-bus/I 2C-bus start or stop condition. Care should be taken when toggling the SPEN and/or BMS bits from the “0,0” condition. Before changing the interrupt source from the external pin to the internal function, the B0 interrupt channel should be masked. EIMR.2 (External Interrupt Mask Register, bit 2, IMBO) and EIPR.2 (External Interrupt Pending Register bit 2, IMP0) should be “0” before changing the source. This sequence of events is to avoid the generating and reading of spurious interrupts. A delay instruction lasting at least 4 clock cycles (e.g. 2 NOPs) should be inserted between the SPEN toggle instruction and the Interrupt Pending bit reset instruction. The INT2 input Function is always mapped togeth- er with the SCK input Function, to allow Start/Stop bit detection when using S-bus/I2C-bus protocols. A start condition occurs when SDI goes from “1” to “0” and SCK is “1”. The Stop condition occurs when SDI goes from “0” to “1” and SCK is “1”. For both Stop and Start conditions, SPEN = “0” and BMS = “1”. Table 25. Interrupt Configuration SPI PORT LATCH SDI SCK INT2 SDO SCK SDO SDI INT2 BIT PORT LATCH BIT PORT LATCH BIT SPEN BMS Interrupt Source 0 0 External channel INT2 0 1 S-bus/I2C bus start or stop condition 1 X End of a byte transmission 9 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |