C Control I Micro-PCB 5 V/DC, 12 Vdc Inputs / outputs 1 x digital I/O / 1 x digital input / 4 x digital I/O or analogue 198289 Hoja De Datos

Los códigos de productos
198289
Descargar
Página de 41
68
Define ADPORT1                AD[1] 
Define TRANSMIT        PORT[1]



deact TRANSMIT
a=ADPORT1
deactivates the function TXD of the ports and activates it as an analogue input.
The analogues value is written in variable a.
• Data output
Data output takes place as text through the serial interface of the C-control/BASIC
control computer. If a PC with a terminal program is connected by means of an inter-
face cable, for example, the data output can be displayed there.
PRINT term
outputs the result of the calculation of term.
PRINT "text"
transmits the text contained within the exclamation marks. In both cases, a new-line
character is attached to the transmission which prompts the terminal program to
carry out the next output in the next screen line. The line-feed can be suppressed if
a semi-colon is added to the PRINT command after the parameter (term or "text”).
PRINT term;
or:
PRINT "text";
CCBASIC also supports several outputs with a PRINT command whereby the indi-
vidual parameters are separated by commas or semi-colons. A comma will insert a
tabulator sign into the output which, in accordance with the settings in the terminal
program, appears as a number of blanks on the screen. If two outputs follow each
other without any blanks, these are to be separated in the PRINT command by
means of a semi-colon.
PRINT "a= ", a
PRINT "a= "; a
A single PRINT command without parameter outputs only a line-feed.
13
Achtung:
Ein Verstoß gegen diese Richtlinien insbesondere betreffend der max. Strom-
aufnahme führt zur Zerstörung empfindlicher Komponenten auf der Leiterplatte.
Die Anschlussdrähte der C-Control Micro haben folgende Funktionen:
ROT -      VDD +5V
SCHWARZ - GND
GRÜN -   P6/AD6/BEEP
VIOLETT -   P1/AD1/BEEP/TXD
BRAUN - P5/AD5/BEEP
BLAU -         P2/AD2/BEEP/RXD
GRAU -   P4/BEEP/FREQ
WEISS -        P3 INPUT
Erste Inbetriebnahme
Software-Installation
Legen Sie die mitgelieferte CD in das Laufwerk an Ihrem PC. Nach wenigen Sekun-
den erscheint selbstständig das Auswahlmenü, das Ihnen verschiedene Installatio-
nen anbietet.
1) Wählen sie zunächst  > C-CONTROL I
Sie Befinden Sich jetzt in der Auswahl zu Installationen der C-Control I Geräten.
2) Wählen Sie hier C-CONTROL/BASIC – MICRO
3) Das erscheinende Fenster bietet die Option "ÖFFNEN"
Wählen Sie diese Option um die Installation zu beginnen
4) Nach Abschluss der Installation wird die Entwicklungsumgebung geöffnet.
Ein erstes Programm laden und starten
P/E Board betriebsbereit machen
Stellen Sie die Betriebsbereitschaft des P/E Boards und der C-Control MICRO, wie
im Kapitel Handhabung beschrieben her.
Vergewissern Sie sich dass die Jumper gesteckt sind (JP1 auf Pos. 1-2) und der
Schiebeschalter auf OFF steht.
Vergewissern Sie sich dass die Entwicklungsumgebung die richtige Schnittstelle
benutzt ( die Auswahl erfolgt über das Menü OPTIONEN > UMGEBUNG > LADER
Programm in die Entwicklungsumgehung laden
Wählen Sie "DATEI ÖFFNEN" in der Menüleiste. Öffnen Sie die Datei "1_EIN-
FÜHRUNG_PORTS1.BAS" im Ordner PROGRAMME/CC1MICRO/BASIC