Conrad Electronic C- CONTROL 1 UNIT M 2.0 User manual

Preface........................................................................................................................ 3
Introduction................................................................................................................ 3
What is the C-Control BASlC Computer?....................................................................................... 3
Brief overview......................................................................................................................................4
C-CONTROL Connectors and Ports......................................................................... 5
Pin rows...................................................................................................................... 5
Interface Connector............................................................................................................................ 5
Jumpers...............................................................................................................................................5
Autostart: ..........................................................................................................................................................5
Uref....................................................................................................................................................................5
Connecting external circuits to ports...................................................................... 5
A vices for connecting external circuits to ports .......................................................................... 6
Special igital ports.............................................................................................................................6
Start and Reset...................................................................................................................................................6
FREQ1 und FREQ2.......................................................................................................................................... 6
IRQ.................................................................................................................................................................... 6
Beep...................................................................................................................................................................6
.RXD/TXD........................................................................................................................................................ 6
Stan ar igital I/O ports.................................................................................................................. 7
D g tal Input Port...............................................................................................................................................7
D g tal Output Port............................................................................................................................................ 7
Spec al D g tal Port Funct ons ..........................................................................................................................7
Analogports..........................................................................................................................................7
Reference voltage..............................................................................................................................................7
A/D Converter Ports..........................................................................................................................................7
D/A Converter Ports..........................................................................................................................................7
Operating Voltage...................................................................................................... 8
Starting....................................................................................................................... 8
Operat ng the C-Control M 1.2 and 2.0 together w th the Appl cat onboard.................................................. 8
Operat ng the C-Control M1.2 / 2.0 n User Appl cat ons................................................................................ 8
Operat ng the C-Control M 1.2 u. 2.0 together w th the Interface Adapter ..................................................... 8
Connection to a PC..............................................................................................................................9
Running the Integrate Development Environment (IDE).............................................................9
Downloa to the C-Control Unit......................................................................................................9
EEPROM Boot Option (only M 2.0 un Station).............................................................................9
Running the user program............................................................................................................... 10
Technical specifications ........................................................................................ 10

Preface
Dear customer,
Thank you very much for taking the excellent decision to purchase a C-Control product.
C-Control - This name stands for outstanding high-quality products in the field of Automation,
measuring, and controlling The products are characterized y expert competence, extraordinary
efficiency and permanent innovation. The products of the C-Control family offer optimum solutions
even for the most demanding applications for am itious ho y electricians as well as for professional
users. We offer the perfect technology and the relia le quality of our C-Control products at a cost-
performance ratio that is almost un eata le.
The C-Control products have een designed using state-ofthe-art technology. The products meet the
requirements of the current European and national guidelines. Conformity has een proven and the
relevant statements and documents have een deposited at the manufacturer.
We kindly request the user to follow the operating instructions to preserve this condition and to ensure
safe operation!
This manual descri es the mechanical and electrical details of the C-Control Unit M 1.2 and M 2.0.
The programming related details a out this comuters you will find in the manual for the programming
language BASIC++
Please check at www.c-control-support.net for updates
Conrad Electronic GmbH
D-92240 Hirschau
Introduction
What is the C-Control BASlC Computer?
Small microcontrollers can everywhere e found. They mostly are programmed in assem ly language
which requires a deep knowledge in this language and processor architectures. The manual for the
controller counts most times some hundred pages and is hard to understand. To learn the assem ly
language you additionally have to study ooks a out.
Therefore C-control computer have a operating system on oard and can e programmed in BASIC.
BASIC ist not only easy to learn, it is very efficient concerning the memory usage too. A BASIC
program needs a out 1/5 of memory that would e needed if the same application is programmed in
assem ly language.
BASIC++ is the language to program these microcontrollers without special knowledge. Around the
core of standard BASIC instructions there are few additional instructions to use the controller standard
environment hardware for applications (such as a LCD).
For experienced programmers BASIC++ offers features (such as import code from a li rary) which are
a must for a modern programming language.
The new C-Control BASIC computer are compact units for versatile applications and support serial
communication to other devices and support non volatile saving of data.
The very fast ececution of BASIC code and an advanced new Development Environment makes the
C-Control system a powerful tool for development of Applications and complete products
The interface to the computer’s environment consist of eight analog input ports, 2 analog output ports
and 16 digital itports (each programma le independent as input or output ports) This computer is
a le to synchronize the internal sytem clock with a DCF77 receiver to run your applications precisely
time synchronized if required. Event or frequency count applications are also supported y the
controller hardware.
Some of the digital ports can e configured to o tain special functions controlled y the operating
system (e.g. driving IIC-Bus devices)

Brief overview
A/D-Ports
- 8 x 8 Bit A/D, 0-5 V also as digital port usa le
- Reference voltageis operation voltage or can e applied from external
Digitalports
- 16 programma le as input or output
- Pullup resistors are switcha le
D/A-Converter
- 2 PWM outputs, PWM-Rate 1953 Hz
- alternate function for servocontrol is possi le
DCF/ FREQ1-Input
- Digital port with internal 10k pullup resistor prepared for connecting a DCF77 active antenna with
open collector output or frequency measurement up to 30kHz
- alternate function as eventcounter is possi le
FREQ2-Input
- Digital port with internal 10k pullup resistor for frequency measurement up to 30kHz
- alternate function as eventcounter is possi le
IRQ-Input
- Interrupt input IRQ (can e replaced y other interrupt sources)
- (20ms Timer,RF Moule, IR Module )
Serial Interface
- 9600 Baud, 8 Bit, 1 start it, 1 stopp it, no parity no Handshake, CMOS/TTL-Level
–(19k2, 38k4 possi le)

–
C-CONTROL Connectors and Ports
Pin rows
All useful signals and ports of the computer are connected to two rows of pins, that can e directly
plugged into your application. The pictures show the top view (the pins are located at the opposite
side).
Interface Connector
Even if all useful signals are availa le at the pin rows, the
serial and IIC-Bus interface is availa le at a seperate
connector for easy plug and play use (protected against
reverse polarity and supplying the operating voltage)).
.
Jumpers
The C-Control Computer has to jumpers: AUTOSTART and UREF
Autostart:
JP2 at Unit M2.0
JP9 at Unit M1.2
If this jumper is attached the user program stored in the memory will e started when the operating
voltage is applied. If this jumper is not attached, the pin START has to e tied to GND for a short
moment to run the user program. If you use the computer together with the Application-Board, this
jumper must not e attached ecause the Application-Board provides a START utton, which is
connected to this pin.
Caution
In all cases it is required to remove this jumper if a user program download to the computer
shall be executed.
Uref
JP1 at Unit M2.0
JP8 at Unit M1.2
This jumper connects the reference voltage for the AD-coverter to the 5V operating voltage. The
accuracy of the 5V voltage provided y a voltage regulator is fitting the requirements in common
applications. To achieve more accuracy a dedicated precise 5V reference voltage can e applied at
the Uref terminal. In this case the jumper has to e removed.
Caution
Other voltages than 5V (+-10%) are not allowed to be connected to this terminal.
To operate the computer together with the Application-Board, this jumper has to be removed.
Connecting external circuits to ports
All usa le signals and ports of the computer are connected to two rows of pins, that can e directly
plugged into your application. So the controller ports can e connected to the user application circuit.
There are three types of ports to distinguish
-special digital ports
-standard I/O Ports
-analog ports

Advices for connecting external circuits to ports
Outputs – HI level
The total output current of all ports has to be limited to less than 20mA if the Unit M 2.0 is
supplied with 12V operating voltage (at the dedicated 12V terminal )
The total output current of all ports has to be limited to less than 20mA if the Unit M 2.0 is
supplied with 5V operating voltage (at the dedicated 5V terminal )
If external voltages >5V are applied to output the ports, a current into the output ports occures.
This is permitted only if the current is limited to less than 1mA by a resistor.
Outputs - LO level
A LO level output can be considered to be a short from the voltage source to GND. The current
flow to GND must be limited to less than 10mA (e.g. by a resistor).
Inputs
If external voltages >5V are applied to the input ports, a current into the input ports occures.
This is permitted only if the current is limited to less than 1mA (e.g. by a resistor).
Disregarding this rules will immediatele result in permanent damage of ports or the
C-Control Unit itself and connected devices
Special digital ports
All special digital ports of the unit are connected to pull up resistors as far as they are inputs.
Start and Reset
This ports may e connected to push uttons if a manual start or stop of user programs is required.
Push the START utton to run a BASIC program, downloaded previously to the unit’s memory. Press
RESET to stop a running program and entering the download mode.
To ensure proper function, the AUTOSTART jumper at the unit must e removed.
JP2 at Unit M2.0
JP9 at Unit M1.2
FREQ1 und FREQ2
This ports are always and exclusivly inputs. The primary operation is frequency counting in the range
from 0 to 32kHz. FREQ 1 supports the feature to synchronize the system clock if a DCF77 receiver
module is connected to this port. The synchronization is done automatically in the ackground, i.e. no
user action is required. The receiver module must provide a open collector output to switch this port lo.
Use shielded ca les to connect the receiver module to the unit.
IRQ
The IRQ port is alwas input and serves the immediate reaction on an external request i.e the current
operation is interrupted an the external event is serviced y a appropriate Interrupt Routine. The IRQ
input is negative edge triggered.
Beep
The BEEP port is always an output an usually connected to a piezo uzzer. He serves for program or
alert status indications during normal program operation. During de ugging your program this uzzer
may e useful also. The audio frequency ranges from 10kHz to 100Hz.
.RXD/TXD
The serial interface (RXD=input TXD=output) is designed for 5V digital logic level, You never must
connect a RS232 interface directly to this ports. This would immediately result in permanent damage
to the C-Control computer

Standard digital I O ports
The C-Control Computer provides two standard yteports (16 itports, P1 to P16). Each itport can e
used as input or output port. Both yteports are provided with software switcha le pull up resistors
(30k). Each of the eight analog ports (A/D-converter) can e alternatively used as a standart digital
I/O port if this function is ena led in the configuration register. Each of this port can then e
considered as standard itport (P17 to 24) ut has no switcha le pull up resistors. More details you
will find in the BASIC++ Manual.
Digital Input Port
Digital input ports are used to request an external switch status. A digital input is on undefined logical
level if nothing is connected (eg. an external switch is open) Therefore it is recommended to tie the
port to a defined level eg. conncting a pull up resistor to the port. In this case a closed switch causes
the port reading as „false“ (logical lo level) and an open switch will e read as „true“ (logical hi level )
After applying the operation voltage or after entering the reset state all ports are switched to inputs.
Digital Output Port
If a digital port is switched to output you can connect cicuits, transistors or LEDs with current limiting
resistors. The maximum load (output) current of each port must not exeed 10mA. In all cases a current
limit (e.g y connecting a resistor) has to e ensured. Otherwise a immediate and permanent damage
of ports can result. The port function ( if a port is input or output) is controlled during program
execution. After applying the operation voltage or after entering the reset state all ports are switched to
inputs.
Special Digital Port Functions
The operating system offers some special functions which occupy dedicated ports. This functions can
e used e.g. to drive IIC-Bus devices connected to port 9 and 10. More details regarding this point you
will find in the BASIC++ manual.
Analogports
The C-Control Computer offers you eight A/D ports and two D/A-ports (witch servo drive capa ilities
as alternate function). The maximum input conversion range of the A/D-converters is fixed y the
applied reference voltage. The maximum output voltage of the D/A-converters is independent of the
reference voltage and always as high (and accurate) as the operating voltage.
Reference voltage
Before using the A/D-converters, the reference voltage has to e connected with the reverence
voltage input of the C-Control Computer. This voltage defines the maximum input voltage applied to
the A/D converters and will cause a A/D conversion result of 255. For the most applications the 5V
operating voltage is sufficient accurate and can directly e used as reference voltage. If more
precission is required, an external reference voltage can e applied to the Uref input. All
measurements of the A/D converters are related to GND
A/D Converter Ports
All kind of sensors may e connected to the A/D-ports, if they match the maximum A/D input voltage.
The A/D converters have 8 it resolution i.e one digit corresponds to 19.6mV. Protect the A/D-ports
with a 10k serial resistor if the input voltage applied to the ports can exeed voltages a ove 5V. This
resistor will not affect the conversion accuracy and provides a over voltage protection up to 12V
D/A Converter Ports
The two 8 it D/A converter are PWM (Pulse Width Modulated) converters. The output pulse consissts
of 256 seperate sections swiched to logic lo or hi related to value of the D/A conversion output. If a
conversion output of 128 is required, 128 sections are set to hi and the remaining 127 sections are
hold lo. This waveform is repeated at a rate of 1930Hz, each single section is of 2us width. To convert
this PWM signal into a true analog value a simple RC low pass filter is working fine. Attention has to
e paid to the remaining ripple (deviations from ac onstant output voltage, varying with tim) which
depend on the load, connected to the RC filter. For more precision an active circuit is recommended.
Driving lamps or LEDs with this PWM do not require a filter ecause the repetition rate is to fast to e
realised as flickering of light.

Please note that a filtered PWM output is not exactly at zero volts if the D/A converter output is set to
zero. The reason is that the port output lo voltage is approx. 50mV and a 2us pulse is remaining at the
D/A output even the converter is programmed to a zero output. In this case the filter output will e
around 70mV for a D/A converter output programmed to zero.
The D/A-ports can e programmed for an alternate servo drive function. Details regarding this feature
you will find in the BASIC++ manual
Operating Voltage
The C-Control Computer contain an integrated LVI (Low Voltage Inhi it) circuit. It prevents CPU male
functions in case of low voltage conditions. Otherwise the Flash memory ( containing operating system
and user program) may unintentionally e erased. An under voltage condition will cause the CPU to
enter the RESET state. If you are facing permanent unexpected reset conditions in your application,
the usual reason is a short reak down of your operating voltage.
This unexpected reset conditions will lead to a loss of your program stored in the Flash, if the
computer receives data from the serial interface at the same time. (RESET=DOWNLOAD MODE).
This pro lem will not appear if the unit is in the Autostart Mode with the corresponding jumper
attached. The minimum operating voltage is 4.8V
The following chapter explains how the operating voltage is applied, depending on the hardware
environment.
Starting
The C-Control Computers require a Development Environment running on a PC. It features the
program downloader. The compiled BASIC program is transmitted to the C-Control Computer via the
RS 232 serial interface. To match the different voltage levels of the C-Control Unit and the RS232
interface, a special converter is required. Your C-Control Application-Board contains this converter
already.
Operating the C-Control M 1.2 and 2.0 together with the Application oard
Other than for the M 2.0 the Application Board is (without the das Unit Adapter module 198875) only
suita le for programming the M 1.2. The M 2.0 is plugged to the connectors at the center of the oard,
the M 1.2 to the connector at the right side of the Application oard. For Details please see the manual
for the Application Board.
The Application Board contains a 5V regulator and the RS 232 interface circuit. The input voltage to
the regulator at te oard is 9...15V applied via a terminal or a DC jack
Terminal 9 to 15V DC
Connect the operating voltage to this terminal and carefully check for correct polarity. Advice regarding
polarity you find printed at the oard or in the manual for the Application Board.
DC Jack 9 to 15V DC
This jack is suita le to connect a standard power suply. Ground is located at the plug coat, +5 is
located at the plug’s center. Please check for proper polarity efore connecting the power supply to
the oard.
Operating the C-Control M1.2 / 2.0 in User Applications
Both units can even e programmed when plugged into your application (in circuit programming). In
this case your application has to provide a regulated 5V operating voltage and a serial interface circuit
connected to the PC. The Unit M 2.0 may e alternatively connected to 8...12V DC when using the
unit’s on oard voltage regulator.
If your Application does not support this requirements you can use the C-Control RS232 /USB Interfce
Adapter (198834 or 198318) for incircuit programming. Please see the corresponding section elow in
this document.
Operating the C-Control M 1.2 u. 2.0 together with the Interface Adapter
The RS232 / USB Interface Adapter (198834 or 198318) contains a 5V regulator, providing the
operation voltage for the unit.It also provides the circuit to a RS232/USB connection. The C-Control

Computer is connected to the interface adapter y a ca le (198876) and is in circuit programma le
this way after applying the operation voltage to the adapter.
Terminal 9 to 15V DC
Connect the operating voltage to this terminal and carefully check for correct polarity. Advice regarding
polarity you find printed at the oard or in the manual for the adapter
DC Jack 9 to 15V DC
This jack is suita le to connect a standard power suply. Ground is located at the plug coat, +5 is
located at the plug’s center. Please check for proper polarity efore connecting the power supply to
the adapter.
Caution
If you connct a C-Control Unit M 1.2 / 2.0 to the Interface Adapter, the operating voltage may
either be provided by your application or by the Interface Adapter but never by both at the
same time.
Never connect the Interface Adapter to a C-Control Unit if it is plugged into an application that
needs more than 100mA current consumption. In this case the operating voltage must be
provided by the user application. Otherwise the voltage regulator at the Interface Adapter will
pemanently be damaged and may cause damage of the C-Control Unit and connected
components.
Connection to a PC
The C-Control Computer needs a connection to a PC for downloading the user program. Depending
on the hardware environment you now may connect the Application Board or the RS232/USB
Interface Adapter to your PC. Together with the Application Board or Interface Adapter a dedicated
interface ca le was supplied. Connect this ca le to the PC serial interface
Running the Integrated Development Environment (IDE)
Apply the supply voltage now and start the BASIC++ IDE for a download of your program.
The BASIC++ manual, included in the DIE, offers you more advice concerning this matter.
Download to the C-Control Unit
If no error is encountered during compilation, the program downloaded can e started. The C-Control
Unit is ready for download if it is in the RESET-State. Press the RESET utton at the Application
Board, or tie the RESET pin low for a moment, if you use the unit stand alone. Make sure that the
START jumper is removed. For details concerning the download with the IDE please refer to the
BASIC++ manual. Depending on the program size the download lasts etwen 1s for short programs
and up to a minute for large programs. The LEDs located at the interface Adapter and the Application
Board shows activity at the interface lines, the download window on your PC shows the progress.
After download the connection to the PC either may stay (e.g. for program outputs to a terminal
program) or can e removed if desired.
EEPROM Boot Option (only M 2.0 und Station)
The Operating System Versions a ove 2.05 offer the option to load a user program from a EEPROM
e.g. in form of a „Chip-Card“. This is very comforta le if the user program has to e updated in the field
without a PC availa le or if qualified personnel for a manual program download is not present. The
EEPROM Boot Option is set als default ut can e switched off. The procedure is similar to a usual
downlaod. A RESET causes the Unit to enter the Download Mode and the Operarting System tries to
identify a EEPROM containing a valid program file. If no EEPROM is connected or the loaded file is
not valid, the usual procedure (download from serial interface) is applya le. If a EEPROM containing a
valid program file is connected then the program is copied into the FLASH Memory.
A program file on EEPROM is defined to have the first yte in memory loaded with the value $55. The
memory eyond the program ytes can e used as data memory. The oot option is set on/off with a
dedicated small BASIC program. The oot file located on EEPROM is created with a special program
running on a C-Control Unit. Details you will find in the Programmers’s Manual

Caution
EEPROMs used as standard data memory must not have a value $55 loaded to the first byte in
memory, if the EEPROM boot option is active. The boot option supports EEPROMs
manufactured by MICROCHIP only.
Running the user program
After download of the user program to the C-Control Unit, the program is permanently (until a new
program download) stored at the unit’s Flash memory. You may now attach the START jumper if a
permanent Auto-Start operation of yout unit is desired.
If the jumper is attached the user program stored in the memory will e started when the operating
voltage is applied. If this jumper is not attached the pin START has to e tied to GND for a short
moment to run the user program. If you use the computer together with the Application-Board, this
jumper must not e attached ecause the Application-Board provides a START utton, which is
connected to this pin.
Technical specifications
Operating voltage 5V DC, +-5%
Extended voltage reange ´ 9-15V DC (only Unit M 2.0, with internal regulator)
Current consumption M 2.0 app. 50 mA / M 1.2 ca. 8 mA
Dimensions M 2.0 app. 50mm x 25mm / M1.2 app. 42mm x 42mm
User variables 64 Byte RAM (M 2.0 with BASIC++ offers 140Byte)
User program memory 10 kByte FLASH
Operating system 6 kB FLASH
Bus clock M 2.0 8 MHz / M 1.2 2MHz
A/D-ports 8 x 8 Bit A/D Converter, 0.....5V
Reference voltage Uref 5V intern or extern
Digital ports 16 standard I/Oports, pull up switchable
Digita output port ( 0.2mA load) O,l v < Uout,low < 0,3V/(ub - 0,3V) < Uout,high < (Ub - 0,1V)
Digital input port level OV < Uin,low C (0,2*ub) / (0,7*Ub)< Uin,high < Ub
Maximum port output load +- 10mA
D/A-ports 2 x 8 Bit 1930 Hz PWM
Serial interface 8N1, 9600 Baud, no Handshake
Temperature range 0.....60 C
Caution
The total Current Output (Source Current) of all Ports has to be kept lower than 20mA if the
Unit M 2.0 is powered with 12V.
Impressum Diese Bedienungsanleitung wurde erstellt für Conrad Electronic GmbH
Alle Rechte einschließlich Übersetzung vorbehalten Reproduktionen jeder Art, z B Fotokopie, Mikroverfilmung,
oder die Erfassung in elektronischen Datenverarbeitungsanlagen, bedürfen der schriftlichen Genehmigung des
Herausgebers Nachdruck, auch auszugsweise, verboten Diese Bedienungsanleitung entspricht dem technischen
Stand bei Drucklegung Änderung in Technik und Ausstattung vorbehalten
© Copyright 2006 by Spiketronics GmbH. Printed in Germany.
100 % RecyclingPapier.Chlorfrei gebleicht.
Imprint These operating instructions are created for Conrad Electronic GmbH, Klaus-Conrad- Str 1, 92240
Hirschau/ Germany
No reproduction (including translation) is permitted in whole or part e g photocopy, microfilming or storage in
electronic data processing equipment, without the express written consent of the publisher The operating instructions
reflect the current technical specifications at time of print We reserve the right to change the technical or physical
specifications
© Copyright 2006 by Spiketronics GmbH. Printed in Germany. 01- 06/ US
100 %recycling paper. Bleached without chlorine.

Introduction
Dear customer,
Thank you very much for taking the excellent decision to purchase a C-Control product.
C-Control - This name stands for outstanding high-quality products in the field of Automation,
measuring, and controlling The products are characterized y expert competence, extraordinary
efficiency and permanent innovation. The products of the C-Control family offer optimum solutions
even for the most demanding applications for am itious ho y electricians as well as for
professional users. We offer the perfect technology and the relia le quality of our C-Control
products at a cost-performance ratio that is almost un eata le.
The C-Control products have een designed using state-of-the-art technology. The products meet
the requirements of the current European and national guidelines. Conformity has een proven
and the relevant statements and documents have een deposited at the manufacturer.
We kindly request the user to follow the operating instructions to preserve this condition and to
ensure safe operation!
Prescribed Use
The C-Control BASIC Computers Unit M 2.0, M 1.2 and MICRO are designed as a programma le
control unit, interfacing other electric and electronic devices. The C-Control Computers may e
integrated into any technical systems as far as they do not support medical or health and life
saving purposes.
Programming the C-Control Computers has exclusively e done y using the dedicated
Development Environment. The C-Control Products must e operated in closed and dry
environments only. The products are not suita le for operation in industrial applications.
Any use other than descri ed a ove damages this product. Moreover, this involves dangers such
as shortcircuit, fire, electric shock etc. Always o serve the safety instructions!
Advice:
The product main manuals, dedicatet to electrical specifications and software related
details, you will find at the C-Control Installation Disk addet to following products:
Micro Programmer/Evaluation Board Item - Nr. 19 83 0
Application-Board .0 Item - Nr. 19 88 47
Serial Interface/Programmer Module RS 3 Item - Nr. 19 88 34
Serial Interface/Programmer Module USB Item - Nr. 19 83 18
Unit-M .0 Mounting Frame Compact Item - Nr. 19 38 94
Station .0 Item - Nr. 19 88 63
Software- (Installations-) CD Item - Nr. 19 84 46
Recent updates and complete product series Information are available at:
http://www.c-control-support.net
This brief manual and safety instructions guide belongs to this product. It describes
important facts concerning operation and handling. Keep this manual at a safe place for a
later reference
In the case of any damages which are caused due to the failure to o serve these operating
instructions, the warranty will expire! We do not assume lia ility for resulting damages!
An exclamation mark inside a triangle indicates important instructions in the operating manual.
Carefully read the whole operating manual efore putting the device into operation.
The unauthorized conversion and/or modification of the unit is inadmissi le ecause of safety and
approval reasons.
2

Read the Main Manuals for a complete set of Safety
Instructions. Observe this instructions in all cases of
operation and handling
Advice:
This Product was carefully tested at the manufacturer. The test program may e still resident in
the program memory. Running this program may result in unexpected level changes on ports or
may result in error messages if a LCD is connected. Error messages without proper test
environment connected to the units are without any importance
Do not connect any external components to the C-Control Units (except for program
download) prior to have a program loaded, matching the connected hardware environment.
The resident test program may damage connected components or the unit itself.
The Unit M .0 has the EEPROM boot option ( program download from a external EEPRM)
activated as default. Any connected EEPROM which don’t contain a valid program file may
cause unexpected malfunctions of the unit. For detais please see the Harware Manual or
the Programmer’s Manual
3

Circuit Diagram Unit- M .0
4

Circuit Diagram Unit- M 1.
5

Connectors Unit- M .0, Unit- M 1.
6

Trademarks
*)
I²C-Bus is a registered trademark of Philips Semiconductors.
7

C-Control I
www.c-control-support.net
E
Impressum
Diese Bedienungsanleitung wurde erstellt für Conrad Electronic Gm H,
Klaus-Conrad-Str. 1, 92240 Hirschau/ Germany.
Alle Rechte einschließlich Ü ersetzung vor ehalten. Reproduktionen jeder Art, z. B. Fotokopie,
Mikroverfilmung, oder die Erfassung in elektronischen Datenverar eitungsanlagen, edürfen der
schriftlichen Genehmigung des Autors. Nachdruck, auch auszugsweise, ver oten. Diese
Bedienungsanleitung entspricht dem technischen Stand ei Drucklegung. Änderung in Technik und
Ausstattung vor ehalten.
© Copyright 006 by Spiketronics GmbH. Printed in Germany.
Imprint
These operating instructions are created for Conrad Electronic Gm H,
Klaus-Conrad-Str. 1, 92240 Hirschau/ Germany.
No reproduction (including translation) is permitted in whole or part e. g. photocopy, MICROfilming or
storage in electronic data processing equipment, without the express written consent of the author. The
operating instructions reflect the current technical specifications at time of print. We reserve the right to
change the technical or physical specifications.
© Copyright 006 by Spiketronics GmbH. Printed in Germany. 01-06/US
8

IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Hints for using LCDs together with the Units M 2.0 / M 1.2
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
-----------------------------------------------------------------
PIN ASSIGNMENT
-----------------------------------------------------------------
The LCD for the units is a standard LCD 2x16 and is fixed
connected to the Applicationboard 2.0
This connection reference is valid for lager LCDs too.
PIN 1 - GND
PIN 2 - 5V
PIN 3 - KONTRAST
PIN 4 - RS (PORT 14)
PIN 5 - RW (PORT 13)
PIN 6 - E (PORT 15)
PIN 7 - D0
PIN 8 - D1
PIN 9 - D2
PIN 10 - D3
PIN 11 - D4 (PORT 9)
PIN 12 - D5 (PORT 10)
PIN 13 - D6 (PORT 11)
PIN 14 - D7 (PORT 12)
NOTE:
Port 9 and 10 is used by the IIC-Bus but common usage is
possible without problems.
Port 16 is used for swithing the backlight at the application
board.
-----------------------------------------------------------------
OPERATION WITH LCD 4x16 / 4x20 (Controller HD44780)
-----------------------------------------------------------------
The operating system supports 2 line LCDs but 4 line LCDs can
be operated easily using the LCD line set commands
For a 4x20 LCD (and for a 4x16 LCD) is valid:
L101 - Zeile 1, Pos 1
L201 - Zeile 2, Pos 1
L121 - Zeile 3, Pos 1
L221 - Zeile 4, Pos 1
Die Zeilen 3 u. 4 werden behandelt wie Zeile 1 u. 2 jedoch mit einem
Offset von 20. L230 schreibt also an Zeile 4, Pos 10
-----------------------------------------------------------------
LCD with KS0073 (almost HD44780 compatibel)
-----------------------------------------------------------------
LCDs with KS0073 Controller (z.B. DIP204-4) need a special upset when
operated in 4 line mode and have a different memory map
define LCDPORT byteport[2]
define OUTBYTE byte[1]
define LCDDATA byte[2]
print "#ON_LCD#";"#INIT#";
LCDDATA=&h24:gosub LCD_WRITECMD:pause 2
LCDDATA=&h09:gosub LCD_WRITECMD:pause 2
LCDDATA=&h20:gosub LCD_WRITECMD:pause 2
print"#L101#";"Z1";
print"#L133#";"Z2";
print"#L165#";"Z3";
Seite 1 von 2
14.06.2006htt
p
://www.c-control-su
pp
ort.net/downloads/xlcdinfo.txt

print"#L233#";"Z4";
#lp
goto lp
'--------- ------WRITE HI NIBBLE LCD COMMAND ------------
#LCD_WRITECMD
OUTBYTE=(LCDDATA shr 4)
LCDPORT=OUTBYTE or &B01000000:LCDPORT=OUTBYTE and &B10111111
'--------------- WRITE LO NIBBLE ------------------------
OUTBYTE=(LCDDATA and &H0F)
LCDPORT=OUTBYTE or &B01000000:LCDPORT=OUTBYTE and &B10111111
return
-------------------------------------------------------------------
BACKLIGHT
-------------------------------------------------------------------
If you have an unused DA-port you can connect it with port16 for
the backlight brightnes control.
It is important that port16 is deactivated after LCD setup:
LCD.INIT ( bzw. print"#ON_LCD#";"#INIT#";)
DEACT LIGHT
Seite 2 von 2
14.06.2006htt
p
://www.c-control-su
pp
ort.net/downloads/xlcdinfo.txt
This manual suits for next models
3
Table of contents
Other Conrad Electronic Computer Hardware manuals
Popular Computer Hardware manuals by other brands

KAMEHA
KAMEHA CO227 user manual

Cypress Semiconductor
Cypress Semiconductor CY7C1338G Specification sheet

Hal Communications
Hal Communications DS2000 Customer Maintenance Manual

Compaq
Compaq ProLiant 1600 Administrator's guide

Acrosser Technology
Acrosser Technology AR-B1653 user guide

AEV
AEV Xtreme II manual