C Control I programmer/evolution Board 8-12 Vdc Inputs / outputs - Program memory 2 kB 198302 Hoja De Datos

Los códigos de productos
198302
Descargar
Página de 40
36
Interner Timer,Tonerzeugung, Frequenzmessung
• Timer
Der interne 20-Millisekunden-Timer kann über den vordefinierten Bezeichner TIMER
ausgelesen werden. Der Timer ist freilaufend und darf nicht gestellt werden. Er
nimmt maximal den Wert 59 an und rollt danach auf  0
x = Timer ist zulässig, 
Timer = x ist nicht zulässig!
Der Timer wird zurückgesetzt, wenn die Systemvariable SECOND beschrieben wird.
Sie können mit dem Timer die Dauer von Ereignissen messen (Dauer eines Tasten-
druckes z.B.) 
• Ausgabe von Tönen mit BEEP
Der C-Control BASIC Steuercomputer kann an fast jedem seiner Digitalports eine
Rechteckschwingung ausgeben die mit einem Schallwandler hörbar gemacht wer-
den können.
BEEP ton, t, Portbezeichner
Für die ersten zwei Parameter können Konstanten oder Terme eingesetzt werden.
Dabei bestimmt ton die Tonhöhe zulässig sind Werte zwischen 1 und 255
, t bestimmt die Dauer des Tons. Die Einheit für die Zeitangaben beträgt 20 Millise-
kunden. 
Der Befehl Port gibt den Digitalport an, auf welchem die Ausgabe erfolgen soll. Die
verfügbaren Ports sind PORT1, PORT2, PORT4, PORT5, PORT6.
Andere Ports werden von der Entwicklungsumgebung zwar akzeptiert (um die Kom-
patibilität zu C-Control I zu wahren), jedoch führt deren Verwendung zu absolut
unkontrollierbaren Verhalten der MICRO
define TONPORT port[5]
BEEP 168, 10, TONPORT
gibt also für 10*20=200 Millisekunden einen Ton an Port 5  aus. 
• Frequenzmessung mit der Funktion FREQ
PORT4 (und nur dieser, sonst kein anderer) kann, neben seinen anderen Funktionen
als Zähler von Ereignissen, mit einstellbarer Torzeit, verwendet werden.  Die Mes-
sung erfolgt ständig im Hintergrund, parallel zur Abarbeitung des BASIC-Pro-
gramms. Der Systemvariablen FREQ kommen zwei verschiedene Bedeutungen zu.
45
Each C-Control MICRO as well as the P/E Board leave our factory in perfect and
function-tested condition!
For these products, Conrad Electronic grants a warranty of 24 months. Within this
time, we will remedy possible transport damages during delivery, production flaws or
breakdowns on the device free of charge.
If the performance features of the C-CONTROL MICRO or the P/E Board do not
meet your individual requirements, please make use of our 14-day money back
guarantee. 
Send the device back to us within this time without traces of use and in
its original packaging for refund or offset. 
All periods valid as of the invoice respectively receipt date. 
Conrad Electronic will not assume any liability for consequential damages to assets
or persons resulting from the application of these products!  
Service
Conrad Electronic provides a competent team of service staff for your consultation.
Each inquiry will be processed as fast as possible. Special inquiries will be passed
on to the development engineers of CTC. 
In order to avoid unnecessary delays, however, we kindly as you to once again study
this manual, the online help of the programming software, the text and example files
and, if possible, the information pages in the Internet prior to your inquiry.  This often
already provides the solution to a problem! 
Please direct your inquiries to our technical customer service department. 
In case of questions, consult our technical information service 
Germany:
Tel. 0180/5 31 21 16 or 09604/40 88 47
Fax 09604/40 88 48
e-mail: tkb@conrad.de
Mon - Fri 8.00 to 18.00
Austria: 
Tel. 0 72 42/20 30 60
Fax 0 72 42/20 30 66
e-mail: support@conrad.at
Mon - Thu 8.00 to 17.00
Fri. 8.00 to 14.00
Switzerland: 
Tel. 0848/80 12 88
Fax 0848/80 12 89
e-mail: support@conrad.ch
Mon - Fri 8.00 to 12.00, 13.00 to 17.00