Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1105 Datasheet(PDF) 16 Page - STMicroelectronics

Part # AN1105
Description  ST7 pCAN PERIPHERAL DRIVER
PDF  100 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1105 Datasheet(HTML) 16 Page - STMicroelectronics

Back Button AN1105 Datasheet HTML 12Page - STMicroelectronics AN1105 Datasheet HTML 13Page - STMicroelectronics AN1105 Datasheet HTML 14Page - STMicroelectronics AN1105 Datasheet HTML 15Page - STMicroelectronics AN1105 Datasheet HTML 16Page - STMicroelectronics AN1105 Datasheet HTML 17Page - STMicroelectronics AN1105 Datasheet HTML 18Page - STMicroelectronics AN1105 Datasheet HTML 19Page - STMicroelectronics AN1105 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 100 page
background image
16/100
ST7 pCAN PERIPHERAL DRIVER
functions defined in can_custom.c on certain events. The user only has to enter these func-
tions according to his needs before compiling the software.
2.1.3 Principle of Use
During compilation, the values of the hardware control registers are calculated by the preproc-
essor according to the compilation options selected in can_custom.h.
If the software filtering feature is enabled, the values of accepted identifiers have to be entered
by the user as a list in can_custom.h (See “Filtering” on page 29)
The functions in can.c are compiled or not, according to the selected
#define directives. (The
unwanted ones are simply left as comments).
Figure 10. Driver Customization System
During the first initialization (performed using the CAN_First_Init function), the peripheral’s
registers are written with the values defined at compilation time, the transmission FIFO is ini-
tialized and the cell starts (a wake up by bus can be chosen).
Then:
– The
CAN_Transmit_Request function initiates a transmission which begins with an in-queu-
ing of the message to be sent. Then, hardware buffer no.1 (the static transmission buffer) is
filled according to hardware requirements. (See Section 1.6.2 "Cell Behaviour").
#define INIT_BRPR 0x11
...
#define STATUS_CHANGE_NOTIFICATION
...
//#define DEBUG
#ifdef STATUS_CHANGE_NOTIFICATION
void CAN_Bus_Passive_Notification(void)
{
//To implement if defined
}
#endif
...
...
#ifdef DEBUG
void CAN_Overrun_Notification(void)
{
//To implement if defined
}
#endif
CAN_CUSTOM.H FILE
CAN_CUSTOM.C FILE
Compiled
Not Compiled
BRPR Register
0x11
Compilation
Compilation
ST7 Registers



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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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