| 전자부품 데이터시트 검색엔진 |
|
AN2169 데이터시트(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2169 데이터시트(HTML) 17 Page - STMicroelectronics |
|
17 / 33 page ![]() AN2169 New functionalities 17/33 ● XIR0SEL = 0x0100, only CAN1 interrupt is enabled and will generate an interrupt to the ST10 through XP0IC ● XIR2SEL = 0x0, not used ● XIR3SEL = 0x2000, only PLL unlock interrupt is enabled and will generate an interrupt to the ST10 through XP3IC. Then, in the interrupt routines associated to the XPxIC, the respective flag in XIRxSEL register must be cleared. Since the XIRxSEL registers are not bit addressable, a pair of registers (a pair for each XIRxSEL) is provided to allow setting and clearing the bits of XIRxSEL without risking to overwrite requests coming after reading the register and before writing it. Therefore the following registers must be written to clear the flags: ● in the CAN1 interrupt routine, XIR0CLR (@ EB14h) = 0x0001 ● in the PLL unlock interrupt routine, XIR3CLR (@ EB44h) = 0x0020 Additional information on the X-Interrupt multiplexer structure Figure 2 shows that the X-Interrupt sources are connected to the interrupt request flag of the XIRxSEL registers and to the XPxIR request flag via an AND gate with the enable bit. This AND gate is activated by a transition on the Interrupt source line and not by the latched value in the XIRxSEL register meaning: ● A transition on the IT source line will generate an interrupt to the ST10 core if the source is enabled. ● Writing to an interrupt request flag in a XIRxSEL register will not generate an interrupt to the ST10 core. Example: If XIR0SEL = 0x0100: CAN1 interrupt enabled on XP0IC interrupt To trigger by software the CAN1 interrupt routine with XP0IC register, the following code must be used: XIR0SET = 0x0001;/* Set CAN1 interrupt request Flag in XIR0SEL register */ XP0IC = XP0IC | 0x0080;/* Set XP0IR flag and generate an interrupt routine to the ST10 */ Executing only the first line will only set the flag in the XIR0SEL register but will not be seen by the AND gate and can not set the XP0IR flag. 2.6 Programmable divider on CLKOUT A specific register mapped on the XBUS allows to choose the division factor on the CLKOUT signal (P3.15). XCLKOUTDIV (E902h) XBUS Reset Value: --00h 15 14 13 12 11 10 987654 3210 ----- --- DIV rw rw rw rw rw rw rw rw |
|
링크 URL |
| 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 |