Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3350 Datasheet(PDF) 177 Page - STMicroelectronics

Part # AN3350
Description  eTPU compiler tools
PDF  185 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3350 Datasheet(HTML) 177 Page - STMicroelectronics

Back Button AN3350 Datasheet HTML 173Page - STMicroelectronics AN3350 Datasheet HTML 174Page - STMicroelectronics AN3350 Datasheet HTML 175Page - STMicroelectronics AN3350 Datasheet HTML 176Page - STMicroelectronics AN3350 Datasheet HTML 177Page - STMicroelectronics AN3350 Datasheet HTML 178Page - STMicroelectronics AN3350 Datasheet HTML 179Page - STMicroelectronics AN3350 Datasheet HTML 180Page - STMicroelectronics AN3350 Datasheet HTML 181Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 177 / 185 page
background image
AN3350
eTPU specific features
Doc ID 018512 Rev 2
177/185
23.3
eTPU functions structure
eTPU functions have a special structure. An eTPU function consists of several threads. A
thread is executed when the eTPU scheduler assigns execution to it. Using the special
structure the programmer can associate each thread's code with different conditions in the
entry table. The special structure of an eTPU function inludes the following elements:
●
A #pragma ETPU_function declaration.
●
A void function.
●
In the main scope of the function, a series of if()/else statements, each testing one or
more elements of the channel condition see restrictions below.
–
- hsr - Host service request 0..7
–
- lsr - Link service request 0/1
–
- m1 - Match1/Transition2 0/1
–
- m2 - Match2/Transition1 0/1
–
- pin - Input pin 0/1
–
- flag0 0/1
–
- flag1 0/1
The threads code itself resides between these if then elses. Using the conditions the
compiler associates the thread's code with the correct entry points.
A final else (without if) should be present at the end of this structure to collect all the unused
entry points. A warning shall be issued if that else shall be omitted by the user.
In the thread's condition expression, usage of constants is allowed as well as the following
operators: ==, !=, &&, ||, !.
There are restrictions on both possible conditions and the order in which they may occur.
The following notes give details:
●
In expressions that do not explicitly test hsr, an implicit test of hsr==0 is assumed.
●
The compiler would issue an error message if the condition expression is not valid
given the entry table that was chosen in the ETPU_function pragma. If there is an x in
the column of a condition in the table in all qualified entries, the condition cannot be
tested in that expression. For example the statement – if (lsr && pin) is legal because
after evaluating lsr==1 we have entries 10,11,24-31 qualified and in some of them pin
has a specific value.
●
But, if (lsr && m1 && pin) is not valid since lsr && m1 qualifies 10,11,30,31 and in all of
them pin has an X value and therefore none of them might be selected.
●
The order of the conditions and events should be as follows. There are 3 groups.
Identifiers from a lower group number should appear first. There is no order that should
be enforced within the group:
a)
hsr
b)
lsr, m1,m2
c)
pin, flag0, flag1
An error should be generated when appropriate.
The order of the if then else blocks counts:



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  ...More


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