Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1105 Datasheet(PDF) 29 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) 29 Page - STMicroelectronics

Back Button AN1105 Datasheet HTML 25Page - STMicroelectronics AN1105 Datasheet HTML 26Page - STMicroelectronics AN1105 Datasheet HTML 27Page - STMicroelectronics AN1105 Datasheet HTML 28Page - STMicroelectronics AN1105 Datasheet HTML 29Page - STMicroelectronics AN1105 Datasheet HTML 30Page - STMicroelectronics AN1105 Datasheet HTML 31Page - STMicroelectronics AN1105 Datasheet HTML 32Page - STMicroelectronics AN1105 Datasheet HTML 33Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 100 page
background image
29/100
ST7 pCAN PERIPHERAL DRIVER
Let’s choose, for example, BTR = 3, BS1 = 3, BS2 = 2 (second row).
We have to complete the code:
#define INIT_BRPR 0x03
#define INIT_BTR 0x23
2.2.2.2 Filtering
The driver is able to filter out all messages not needed by the application. First by using hard-
ware filters, and second by using software filters.
Use the hardware filters to eliminate as many identifiers as possible and to avoid further
processing. Use the software filters to eliminate IDs that are unwanted, but that can not
stopped by the hardware.
Hardware Filter Configuration
Let’s define the values of hardware masks and filters. To do this, we must split the IDs into two
groups:
– 0x127, 0x311 and 0x3A5, on one hand; and,
– 0x500 and 0x600 on the other.
Note: When grouping the IDs, try to maximize the number of identical bits inside the same group, thus
minimizing the width of the ID ranges accepted by the cell.
Then let’s find the first filter/mask pair (12 bits to be determined):
– 0x500 is written in binary: 101 0000 0000
– 0x600 is written in binary: 110 0000 0000
In the first three bits, only the most significant bit (MSB) of both identifiers is the same, the fol-
lowing two being different. So, the three MSBs of the mask will be 1 0 0 (match, don’t care,
don’t care) and the three MSBs of the filter will be 1 and then either 1 or 0.
The following eight bits are identically null. So the last eight bits of the filter will be 0, and the
last eight bits of the mask will be 1 (match required).
The least significant bit (LSB) of the filter/mask is used to separate remote frames and data
frames. Here we have a data frame and a remote frame, so it does not have to be checked (1
or 0 into the filter, 0 into the mask).
So we have:
– Filter 1000 0000 0000
– Mask 1001 1111 1110
48
84
BTR+1
BS1+BS2+3



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