Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN2628 Scheda tecnica(PDF) 4 Page - STMicroelectronics

Il numero della parte AN2628
Spiegazioni elettronici  Programming ST10F27x CAN interrupt drivers
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2628 Scheda tecnica(HTML) 4 Page - STMicroelectronics

  AN2628 Datasheet HTML 1Page - STMicroelectronics AN2628 Datasheet HTML 2Page - STMicroelectronics AN2628 Datasheet HTML 3Page - STMicroelectronics AN2628 Datasheet HTML 4Page - STMicroelectronics AN2628 Datasheet HTML 5Page - STMicroelectronics AN2628 Datasheet HTML 6Page - STMicroelectronics AN2628 Datasheet HTML 7Page - STMicroelectronics AN2628 Datasheet HTML 8Page - STMicroelectronics AN2628 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 27 page
background image
Interrupt sources and identification
AN2628
4/27
1
Interrupt sources and identification
Interrupts generated by the CAN modules can come from different sources: Global interrupt
sources and individual interrupt sources.
1.1
Global interrupt sources
Four interrupt control registers (XIRxSEL, x = 0, 1, 2, 3) are provided in order to generate an
interrupt from different event sources. Each module is linked to its corresponding XPxIC
register (x = 0, 1, 2, 3). Note that an event source can be connected to several XIRxSEL
registers. In particular, each CAN1 and CAN2 event is connected on two interrupt lines:
The new 16-bit register XIRxSEL (x = 0, 1, 2, 3) is divided into two parts:
When different sources submit an interrupt request, the enable bits (Byte High of XIRxSEL
register) define a mask to select the sources to be associated with the unique available
vector. If more than one source is enabled to issue the request, the service routine must
identify the real event to be serviced. This can easily be done by checking the flag bits (Byte
Low of XIRxSEL register). Note that the flag bit provides information about events which are
not currently serviced by the interrupt controller (since masked through the enable bits),
allowing effective software management even when the related interrupt request cannot be
served: A periodic polling of the flag bits may be implemented inside the user application.
Figure 1.
X-Interrupt basic structure
●
CAN1:
XP0INT, XP3INT
●
CAN2:
XP1INT, XP3INT
●
Byte high
(XIRxSEL[15:8])
Interrupt enable bits
●
Byte low
(XIRxSEL[7:0])
Interrupt flag bits
XIRxSEL[7:0] (x = 0, 1, 2, 3)
XIRxSEL[15:8] (x = 0, 1, 2, 3)
XPxIC.IR (x = 0, 1, 2, 3)
70
15
8
IT Source 7
IT Source 6
IT Source 5
IT Source 4
IT Source 3
IT Source 2
IT Source 1
IT Source 0
Enable[7:0]
Flag[7:0]



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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