| 数据搜索系统,热门电子元器件搜索 |
|
ST7MC1K2-Auto 数据表(PDF) 136 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7MC1K2-Auto 数据表(HTML) 136 Page - STMicroelectronics |
|
136 / 371 page ![]() Obsolete Product(s) - Obsolete Product(s) On-chip peripherals ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto 136/371 10.4.7 Interrupts Note: The SPI interrupt events are connected to the same interrupt vector (see Interrupts chapter). They generate an interrupt if the corresponding Enable Control Bit is set and the interrupt mask in the CC register is reset (RIM instruction). 10.4.8 SPI registers SPI control register (SPICR) Table 55. SPI interrupt control/wake-up capability Interrupt event Event flag Enable control bit Exit from WAIT Exit from HALT SPI end of transfer event SPIF SPIE Yes Yes Master mode fault event MODF No Overrun error OVR SPICR Reset value: 0000 xxxx (0xh) 7 654 32 10 SPIE SPE SPR2 MSTR CPOL CPHA SPR[1:0] R/W R/W R/W R/W R/W R/W R/W Table 56. SPICR register description Bit Name Function 7 SPIE Serial peripheral interrupt enable This bit is set and cleared by software. 0: Interrupt is inhibited 1: An SPI interrupt is generated whenever an end of transfer event, master mode fault or overrun error occurs (SPIF = 1, MODF = 1 or OVR = 1 in the SPICSR register). 6 SPE Serial peripheral output enable This bit is set and cleared by software. It is also cleared by hardware when, in master mode, SS = 0 (see Master mode fault (MODF) on page 133). The SPE bit is cleared by reset, so the SPI peripheral is not initially connected to the external pins. 0: I/O pins free for general purpose I/O 1: SPI I/O pin alternate functions enabled 5 SPR2 Divider enable This bit is set and cleared by software and is cleared by reset. 0: Divider by 2 enabled 1: Divider by 2 disabled This bit is used with the SPR[1:0] bits to set the baud rate: 100: Serial clock = fCPU/4 000: Serial clock = fCPU/8 001: Serial clock = fCPU/16 110: Serial clock = fCPU/32 010: Serial clock = fCPU/64 011: Serial clock = fCPU/128 This bit has no effect in slave mode. Obsolete Product(s) - Obsolete Product(s) |
|
链接网址 |
| 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 |