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
48
Programmer/Evaluation Board
The P/E Board provides the user with a serial interface with level conversion in order
to load compiled programs from the development environment into the C-Control
computers version MICRO and MICRO.
In addition, there are a number or input/output possibilities (LEDs, beepers, buttons,
potis) so that you can quickly and comfortably try out the example programs or your
own applications. 
Power supply takes place with a 9 V battery or a power pack (8 to 12 V). 
Attention!
For technical reasons, the P/E-Board does not support 19200 Baud 
(time con-
stants in the level converter)
Handling
Programmer/Evaluation Board
Connection of the C-Control Computers
Plug one C-Control computer, version MICRO into the provided IC socket.
Observe the correct polarity. The notch on the casing of the IC is next to the con-
denser C3.
If you want to program the version MICRO PCB, connect the connection wires to the
clamp bar according to the colour marking.
ATTENTION!
There may never be 2 C-Control MICRO plugged and connected at the same time. 
Connection to the PC
Connect your PC's serial interface with the interface socket on the P/E Board.
Use the provided interface cable.
Power supply:
The P/E Board is powered with a 9 V battery or a power pack. If you use a power
pack, make absolutely certain that you use the right polarity (negative must be on the
outside of the plug) and the right voltage range (8 to 12 V DC).
The P/E Board is now ready for operation.
Operating Elements
In order to download a user program from the development environment, keep the
button "DOWNLOAD" depressed 
and slide the slider switch to the position "ON"
(towards the interface plug).
The readiness for download is indicated with the yellow LED (L5).
Port 1 and 2 now have interface function, therefore LED L1 and L2 are lit.
33
benutzen. TOG steht für englisch ,,toggle”. Der TOG Befehl benötigt weniger Platz im
EEPROM und wird schneller als die klassische NOT-P-Konstruktion ausgeführt. Die
Portvariable P darf beim TOG Befehl nur für einen einzelnen Digitalport stehen
• Deaktivieren eines Ports mit DEACT
Sobald einer Portvariablen erstmalig ein Wert zugewiesen wird, schaltet
der Steuercomputer die zugehörigen Hardwarestrukturen im Prozessorchip (Transi-
storen) auf Ausgangsbetrieb. Es fließt also entsprechend der angeschlossenen
Schaltung Strom aus bzw. in den Prozessor (max. 10 mA zulässig!). Der Befehl
DEACT portvar
deaktiviert den angegebenen Port. Das heißt, der Port wird in einen hochohmigen
Zustand geschaltet und arbeitet im Eingangsbetrieb. Der DEACT Befehl darf auf ein-
zelne Digitalports oder Byteports angewendet werden.
Definition und Anwendungung von Datentabellen
Im Standard-BASIC dienen DATA-Zeilen zum Ablegen von konstanten Daten-
blöcken, auf die dann sequentiell zugegriffen werden kann. CCBASIC unterstützt
keine DATA-Zeilen, bietet jedoch ein weitaus flexibleres Werkzeug zur Definition und
zum Zugriff auf Datenblocks. Konstante Daten können in Form von Tabellen abge-
legt werden. Jede Tabelle bekommt einen Bezeichner (tablename) zugewiesen und
kann beliebig viele Einträge enthalten, soweit der Programmspeicher Platz bietet.
Jeder Dateneintrag (Cx) wird als Integerwert abgelegt und belegt somit zwei Bytes.
Dabei können die Daten direkt im Quelltext aufgeführt werden, dürfen aber nur Wer-
te bis max. 255 annehmen, da auch Tabellen nur Byteweise verarbeitet werden
TABLE tablename
CO Cl C2 C3 C4 C5 . . -.. . Cn
TABEND
oder vom CCBASIC-Compiler aus einer externen Textdatei importiert werden
TABLE tablename "tabfilename"
Die Tabellendefinitionen müssen stets am Ende eines Programms, hinter dem END
Befehl stehen, da die Daten nahtlos hinter den vorangehenden Codebytes im
EEPROM-Speicherchip abgelegt werden. Die Programm-abarbeitung darf nie über
Tabellendaten laufen, da die Daten sonst als BASIC Befehle interpretiert werden
würden, was sicher zum Absturz des Systems führt. Der Zugriff auf die Tabellenda-
ten erfolgt mit dem Befehl