$SIM/de

From MCS Wiki AVR
< $SIM(Difference between revisions)
Jump to: navigation, search
((**COPIED FROM ENGLISH PAGE**) =)
(Example)
 
(3 intermediate revisions by one user not shown)
Line 15: Line 15:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Remarks</span> =
+
= <span class="f_Header">Anmerkungen</span> =
  
Simulation of a WAIT statement can take a long time especially when memory view windows are opened.
+
Die Simulation von WAIT-Befehlen kann sehr viel Zeit in Anspruch nehmen - besonders wenn Speicherabbilder geöffnet sind.
  
The $SIM compiler directive instructs the compiler to not generate code for WAITMS and WAIT. This will of course allows faster simulation.
+
Die $SIM Compiler Direktive weist den Compiler an, keinen Code für WAIT und WAITMS zu generieren. Dadurch wird die Simulation schneller.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
When your application is ready you must remark the $SIM directive or otherwise the WAIT and WAITMS statements will not work as expected.
+
Wenn das BASCOM-Programm fertig getestet ist dann muss die $SIM-Direktive auskommentiert oder gelöscht werden weil sonst WAIT und WAITMS nicht wie erwartet funktionieren.
  
When you forget to remove the $SIM option and you try to program a chip you will receive a warning that $SIM was used.
+
Wenn vergessen wird, $SIM zu entfernen und das Programm auf den Chip gebrannt wird dann erscheint eine Warnung, dass $SIM angegeben ist.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 31: Line 31:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">See also</span> =
+
= <span class="f_Header">Siehe auch</span> =
  
 
NONE
 
NONE
Line 39: Line 39:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">ASM</span> =
+
= <span class="f_Header">Assembler</span> =
  
 
NONE
 
NONE
Line 47: Line 47:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Example</span> =
+
= <span class="f_Header">Beispiel</span> =
  
 
<br/><source lang="bascomavr">
 
<br/><source lang="bascomavr">
Line 55: Line 55:
 
Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
 
Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
 
   
 
   
$sim
+
$sim ' Nur für Simulation
 
Do
 
Do
 
Wait 1
 
Wait 1
Print "Hello"
+
Print "Hallo"
 
Loop
 
Loop
 
</source><br/>{{Languages}}
 
</source><br/>{{Languages}}
  
 
[[Category:BASCOM_Language_Reference/de]]
 
[[Category:BASCOM_Language_Reference/de]]

Latest revision as of 01:02, 20 February 2013

Contents

Funktion

Weist den Compiler an, für WAIT und WAITMS leere (wirkungslose) Warteschleifen zu generieren. Dadurch wird eine schnellere Simulation möglich.

 

 

Syntax

$SIM

 

 

Anmerkungen

Die Simulation von WAIT-Befehlen kann sehr viel Zeit in Anspruch nehmen - besonders wenn Speicherabbilder geöffnet sind.

Die $SIM Compiler Direktive weist den Compiler an, keinen Code für WAIT und WAITMS zu generieren. Dadurch wird die Simulation schneller.

 

Wenn das BASCOM-Programm fertig getestet ist dann muss die $SIM-Direktive auskommentiert oder gelöscht werden weil sonst WAIT und WAITMS nicht wie erwartet funktionieren.

Wenn vergessen wird, $SIM zu entfernen und das Programm auf den Chip gebrannt wird dann erscheint eine Warnung, dass $SIM angegeben ist.

 

 

Siehe auch

NONE

 

 

Assembler

NONE

 

 

Beispiel


$regfile = "m48def.dat"
$crystal = 4000000
$baud = 19200
Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
 
$sim  ' Nur für Simulation
Do
Wait 1
Print "Hallo"
Loop

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language