| 数据搜索系统,热门电子元器件搜索 |
|
ST7LITE3 数据表(PDF) 165 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7LITE3 数据表(HTML) 165 Page - STMicroelectronics |
|
165 / 167 page ![]() ST7LITE3 165/167 IMPORTANT NOTES (Cont’d) Impact on application Software may execute the interrupt routine twice after header reception. Moreover, in reception mode, as the receiver is no longer in mute mode, an interrupt will be generat- ed on each data byte reception. Workaround The problem can be detected in the LINSCI inter- rupt routine. In case of timeout error (LHE is set and LHLR is loaded with 00h), the software can check the RWU bit in the SCICR2 register. If RWU is cleared, it can be set by software. Refer to Fig- ure 108. Workaround is shown in bold characters. Figure 108. LINSCI Interrupt routine @interrupt void LINSCI_IT ( void ) /* LINSCI interrupt routine */ { /* clear flags */ SCISR_buffer = SCISR; SCIDR_buffer = SCIDR; if ( SCISR_buffer & LHE )/* header error ? */ { if (!LHLR)/* header time-out? */ { if ( !(SCICR2 & RWU) )/* active mode ? */ { _asm("sim");/* disable interrupts */ SCISR; SCIDR;/* Clear RDRF flag */ SCICR2 |= RWU;/* set mute mode */ SCISR; SCIDR;/* Clear RDRF flag */ SCICR2 |= RWU;/* set mute mode */ _asm("rim");/* enable interrupts */ } } } } Example using Cosmic compiler syntax |
|
链接网址 |
| 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 |