| Motore di ricerca datesheet componenti elettronici |
|
AN2628 Scheda tecnica(PDF) 1 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2628 Scheda tecnica(HTML) 1 Page - STMicroelectronics |
|
1 / 27 page ![]() October 2007 Rev 1 1/28 AN2628 Application note Programming ST10F27x CAN interrupt drivers Introduction This application note describes the CAN interrupt drivers of the ST10F27x and provides programming examples that can be used to define interrupt schemes and write interrupt drivers. Two C-CAN modules are implemented on ST10F27x, mapped on XBUS. Interrupt sources, the way the sources of interrupts are identified and the two methods of handling interrupts are described: One using the hardware features of the CAN modules and the other through polling internal sources. Programming the CAN interrupt drivers through CAN hardware features uses the RXIE and TXIE bits of each message object. All 32 message objects are accessed through interface registers. Two sets of register are available for each module, for example CANxIF1 registers can be used to read from a message object whereas CANxIF2 registers can be used to write into a message object. Whenever a message is transmitted or received by a message object, the corresponding interrupt is serviced according to its priority (based on the value of IntId). This method requires minimum CPU overhead and is the preferred method for most applications. CAN polling generates an interrupt whenever a successful transmission or reception occurs. Polling is high in CPU overhead, as the CPU is interrupted every time a message is acknowledged on the CAN bus. Therefore, programming the interrupt driver using polling is only recommended for small networks. Sample programs are provided for each method as examples. www.st.com |
Codice articolo simile - AN2628 |
|
Descrizione simile - AN2628 |
|
|
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 |
| 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 |