поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN1105 датащи(PDF) 28 Page - STMicroelectronics

номер детали AN1105
подробное описание детали  ST7 pCAN PERIPHERAL DRIVER
PDF  100 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1105 датащи(HTML) 28 Page - STMicroelectronics

Back Button AN1105 Datasheet HTML 24Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 100 page
background image
28/100
ST7 pCAN PERIPHERAL DRIVER
– Identifiers may exist on the bus that do not concern our cell.
2.2.2 Cell Configuration
Open then the can_custom.h file. You can see the two first lines of code:
//#define WAKE_UP_PULSE
//#define RUN_ON_START_UP
According to our requirements (See Section 2.2.1 "Application"), we only want to define the
RUN_ON_STARTUP option.
So modify the code the following way:
//#define WAKE_UP_PULSE
#define RUN_ON_START_UP
2.2.2.1 Bit Timing
First of all, we have to decide the speed of our network. Let’s say, for example, 250 kilobaud.
Look in your can_custom.h file. You see the following code:
#define INIT_BRPR 0x00
#define INIT_BTR 0x00
The following two registers define the bit timing in the cell.
The BRPR register contains the size of time quantum, in number of clock ticks, in a bit field
named BRP (See Section 1.3.2 "Bit timing").This field ranges from 0 to 63. The true value for
a time quanta is then BRPR+1.
The BTR register contains the size of the two synchronization segments in time quanta, in two
different bit fields: BS1 and BS2(“). BS1 ranges from 0 to 7and BS2 from 0 to 3. The actual
length of bit segments in time quanta is then BS1+1 and BS2+1.
You must always chose BS1>BS2, so that the sampling point takes place in the second half of
the bit.
Use the following formula:
For example, in our case, fcpu = 8 MHz.
So, fbus = fcpu/32.
We have then the following possibilities:
BTR+1
BS1+BS2+3
216
fbus Bauds
()
fcpu Hz
()
1
BRP
+
()
3
BS1
BS2
++
()
×
-------------------------------------------------------------------------
=



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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