Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3350 Datasheet(PDF) 181 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) 181 Page - STMicroelectronics

Back Button 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 AN3350 Datasheet HTML 182Page - STMicroelectronics AN3350 Datasheet HTML 183Page - STMicroelectronics AN3350 Datasheet HTML 184Page - STMicroelectronics AN3350 Datasheet HTML 185Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 181 / 185 page
background image
AN3350
eTPU specific features
Doc ID 018512 Rev 2
181/185
23.11
Fractional types
fract8, fract16, and fract24 types represent fractional numbers of the specified size in bits.
Unsigned and signed modifiers can be applied to them. Unsigned fract can represent
numbers between 0 and 1. Signed fract can represent numbers between -1 and 1.
23.12
Inline assembly
The inline assembly statement syntax is:
asm{"<assembly instructions>"};
Both multi line and single line assembly instructions may be omitted using this statement.
The <assembly instruction> would be according to the new assembly language which shall
be defined by DevTech.
23.12.1
Inline assembler usage
Use the inline assembler in order to write assembler code that is eTPU specific and cannot
be expressed using the C language:
asm{" add.f p, p, diob"};
23.12.2
Specifying variables and labels
You may also use local variable names and labels inside inline assembly statements to
reference variables of a C function or targets for change of flow directly.
In the example below, a local variable name needs a @Rn suffix to be recognized. Do not
replace @Rn with an actual register number. It has to be the verbatim text made of the
letters @, R, and n:
asm{" add x@Rn,p,diob"}; // x is a local variable
asm{" jmp label_name"};
asm{" ld p, glob_var"}; // glob_var is a global variable
asm{" ldm p, chan_var"}; // chan_var is a variable allocated on the
channel parameter ram
Finally, you can also declare labels using the inline assembler to, for example, mark the
beginning for a special assembly loop or branch target:
asm{__mysmstart: jmp __mysmstart};
23.12.3
Using datatype sizes
You might want to reference the size of a structure from the inline assembler:
asm {addi x@Rn, x@Rn, myStruct@sizeof};
23.13
#pragma write
#pragma write char, (text);



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