Conrad C-Control Pro Mega Series User manual

© 2008 Conrad Electronic
C-Control Pro
Mega Series

C-Control Pro Mega SeriesI
© 2008 Conrad Electronic
Table of Contents
Part 1 Important Notes 2
................................................................................................................................... 21 Introduction
................................................................................................................................... 22 Reading this operating manual
................................................................................................................................... 33 Handling
................................................................................................................................... 34 Intended use
................................................................................................................................... 35 Warranty and Liability
................................................................................................................................... 46 Service
................................................................................................................................... 47 Open Source
................................................................................................................................... 48 History
Part 2 Installation 9
................................................................................................................................... 91 Applicationboard
................................................................................................................................... 132 Software
Part 3 Hardware 15
................................................................................................................................... 151 Firmware
................................................................................................................................... 172 LCD Matrix
................................................................................................................................... 173 Mega32
................................................................................................................................... 183.1 Module
................................................................................................................................... 213.2 Application Board
................................................................................................................................... 253.3 Pin Assignment
................................................................................................................................... 263.4 Jumper Application Board
................................................................................................................................... 283.5 Connection Diagrams
................................................................................................................................... 334 Mega128
................................................................................................................................... 344.1 Module
................................................................................................................................... 374.2 Application Board
................................................................................................................................... 414.3 Pin Assignment
................................................................................................................................... 424.4 Jumper Application Board
................................................................................................................................... 444.5 Connection Diagrams
Part 4 IDE 50
................................................................................................................................... 511 Projects
................................................................................................................................... 511.1 Create Projects
................................................................................................................................... 511.2 Compile Projects
................................................................................................................................... 521.3 Project Management
................................................................................................................................... 531.4 Thread Options

II
Inhalt
© 2008 Conrad Electronic
................................................................................................................................... 551.5 Project Options
................................................................................................................................... 561.6 Library Management
................................................................................................................................... 572 Editor
................................................................................................................................... 592.1 Editor Functions
................................................................................................................................... 602.2 Print Preview
................................................................................................................................... 612.3 Keyboard Shortcuts
................................................................................................................................... 632.4 Regular Expressions
................................................................................................................................... 633 C-Control Hardware
................................................................................................................................... 643.1 Start Program
................................................................................................................................... 653.2 Outputs
................................................................................................................................... 653.3 PIN Functions
................................................................................................................................... 663.4 Version Check
................................................................................................................................... 664 Debugger
................................................................................................................................... 674.1 Breakpoints
................................................................................................................................... 684.2 Array Window
................................................................................................................................... 694.3 Variable Watch Window
................................................................................................................................... 715 Tools
................................................................................................................................... 726 Options
................................................................................................................................... 726.1 Editor Settings
................................................................................................................................... 736.2 Syntax Highlighting
................................................................................................................................... 756.3 Compiler Presetting
................................................................................................................................... 766.4 IDE Settings
................................................................................................................................... 807 Windows
................................................................................................................................... 818 Help
Part 5 Compiler 84
................................................................................................................................... 841 General Features
................................................................................................................................... 841.1 External RAM
................................................................................................................................... 841.2 Preprocessor
................................................................................................................................... 861.3 Pragma Instructions
................................................................................................................................... 861.4 Map File
................................................................................................................................... 872 CompactC
................................................................................................................................... 872.1 Program
................................................................................................................................... 882.2 Instructions
................................................................................................................................... 902.3 Data Types
................................................................................................................................... 912.4 Variables
................................................................................................................................... 942.5 Operators
................................................................................................................................... 972.6 Control Structures
................................................................................................................................... 1022.7 Functions
................................................................................................................................... 1042.8 Tabellen

C-Control Pro Mega SeriesIII
© 2008 Conrad Electronic
................................................................................................................................... 1073 BASIC
................................................................................................................................... 1073.1 Program
................................................................................................................................... 1083.2 Instructions
................................................................................................................................... 1103.3 Data Types
................................................................................................................................... 1103.4 Variables
................................................................................................................................... 1143.5 Operators
................................................................................................................................... 1163.6 Control Structures
................................................................................................................................... 1213.7 Functions
................................................................................................................................... 1233.8 Tables
................................................................................................................................... 1244 ASCII Table
Part 6 Libraries 128
................................................................................................................................... 1281 Internal Functions
................................................................................................................................... 1282 AbsDelay
................................................................................................................................... 1293 Analog-Comparator
................................................................................................................................... 1293.1 AComp
................................................................................................................................... 1293.2 AComp Example
................................................................................................................................... 1304 Analog-Digital-Converter
................................................................................................................................... 1314.1 ADC_Disable
................................................................................................................................... 1314.2 ADC_Read
................................................................................................................................... 1324.3 ADC_ReadInt
................................................................................................................................... 1324.4 ADC_Set
................................................................................................................................... 1334.5 ADC_SetInt
................................................................................................................................... 1344.6 ADC_StartInt
................................................................................................................................... 1345 DCF 77
................................................................................................................................... 1365.1 DCF_FRAME
................................................................................................................................... 1365.2 DCF_INIT
................................................................................................................................... 1365.3 DCF_PULS
................................................................................................................................... 1375.4 DCF_START
................................................................................................................................... 1375.5 DCF_SYNC
................................................................................................................................... 1386 Debug
................................................................................................................................... 1386.1 Msg_WriteChar
................................................................................................................................... 1386.2 Msg_WriteFloat
................................................................................................................................... 1396.3 Msg_WriteHex
................................................................................................................................... 1396.4 Msg_WriteInt
................................................................................................................................... 1406.5 Msg_WriteText
................................................................................................................................... 1406.6 Msg_WriteWord
................................................................................................................................... 1407 EEPROM
................................................................................................................................... 1407.1 EEPROM_Read
................................................................................................................................... 1417.2 EEPROM_ReadWord

IV
Inhalt
© 2008 Conrad Electronic
................................................................................................................................... 1417.3 EEPROM_ReadFloat
................................................................................................................................... 1427.4 EEPROM_Write
................................................................................................................................... 1427.5 EEPROM_WriteWord
................................................................................................................................... 1437.6 EEPROM_WriteFloat
................................................................................................................................... 1438 I2C
................................................................................................................................... 1438.1 I2C_Init
................................................................................................................................... 1448.2 I2C_Read_ACK
................................................................................................................................... 1448.3 I2C_Read_NACK
................................................................................................................................... 1458.4 I2C_Start
................................................................................................................................... 1458.5 I2C_Status
................................................................................................................................... 1468.6 I2C_Stop
................................................................................................................................... 1468.7 I2C_Write
................................................................................................................................... 1478.8 I2C Status Codes
................................................................................................................................... 1478.9 I2C Example
................................................................................................................................... 1489 Interrupt
................................................................................................................................... 1499.1 Ext_IntEnable
................................................................................................................................... 1509.2 Ext_IntDisable
................................................................................................................................... 1509.3 Irq_GetCount
................................................................................................................................... 1519.4 Irq_SetVect
................................................................................................................................... 1519.5 IRQ Example
................................................................................................................................... 15210 Keyboard
................................................................................................................................... 15210.1 Key_Init
................................................................................................................................... 15210.2 Key_Scan
................................................................................................................................... 15310.3 Key_TranslateKey
................................................................................................................................... 15311 LCD
................................................................................................................................... 15311.1 LCD_ClearLCD
................................................................................................................................... 15411.2 LCD_CursorOff
................................................................................................................................... 15411.3 LCD_CursorOn
................................................................................................................................... 15511.4 LCD_CursorPos
................................................................................................................................... 15511.5 LCD_Init
................................................................................................................................... 15611.6 LCD_Locate
................................................................................................................................... 15611.7 LCD_SubInit
................................................................................................................................... 15611.8 LCD_TestBusy
................................................................................................................................... 15711.9 LCD_WriteChar
................................................................................................................................... 15711.10 LCD_WriteCTRRegister
................................................................................................................................... 15811.11 LCD_WriteDataRegister
................................................................................................................................... 15811.12 LCD_WriteFloat
................................................................................................................................... 15811.13 LCD_WriteRegister
................................................................................................................................... 15911.14 LCD_WriteText

C-Control Pro Mega SeriesV
© 2008 Conrad Electronic
................................................................................................................................... 15911.15 LCD_WriteWord
................................................................................................................................... 16012 Math
................................................................................................................................... 16012.1 acos
................................................................................................................................... 16012.2 asin
................................................................................................................................... 16112.3 atan
................................................................................................................................... 16112.4 ceil
................................................................................................................................... 16212.5 cos
................................................................................................................................... 16212.6 exp
................................................................................................................................... 16212.7 fabs
................................................................................................................................... 16312.8 floor
................................................................................................................................... 16312.9 ldexp
................................................................................................................................... 16412.10 ln
................................................................................................................................... 16412.11 log
................................................................................................................................... 16512.12 pow
................................................................................................................................... 16512.13 sin
................................................................................................................................... 16612.14 sqrt
................................................................................................................................... 16612.15 tan
................................................................................................................................... 16613 OneWire
................................................................................................................................... 16713.1 Onewire_Read
................................................................................................................................... 16713.2 Onewire_Reset
................................................................................................................................... 16813.3 Onewire_Write
................................................................................................................................... 16813.4 Onewire Example
................................................................................................................................... 17014 Port
................................................................................................................................... 17114.1 Port_DataDir
................................................................................................................................... 17114.2 Port_DataDirBit
................................................................................................................................... 17214.3 Port_Read
................................................................................................................................... 17314.4 Port_ReadBit
................................................................................................................................... 17414.5 Port_Write
................................................................................................................................... 17514.6 Port_WriteBit
................................................................................................................................... 17614.7 Port Example
................................................................................................................................... 17615 RS232
................................................................................................................................... 17615.1 Divider
................................................................................................................................... 17715.2 Serial_Disable
................................................................................................................................... 17815.3 Serial_Init
................................................................................................................................... 17915.4 Serial_Init_IRQ
................................................................................................................................... 18015.5 Serial_IRQ_Info
................................................................................................................................... 18015.6 Serial_Read
................................................................................................................................... 18115.7 Serial_ReadExt
................................................................................................................................... 18115.8 Serial_Write

VI
Inhalt
© 2008 Conrad Electronic
................................................................................................................................... 18215.9 Serial_WriteText
................................................................................................................................... 18215.10 Serial Example
................................................................................................................................... 18215.11 Serial Example (IRQ)
................................................................................................................................... 18316 SPI
................................................................................................................................... 18316.1 SPI_Disable
................................................................................................................................... 18317 Strings
................................................................................................................................... 18417.1 Str_Comp
................................................................................................................................... 18417.2 Str_Copy
................................................................................................................................... 18517.3 Str_Fill
................................................................................................................................... 18517.4 Str_Isalnum
................................................................................................................................... 18617.5 Str_Isalpha
................................................................................................................................... 18617.6 Str_Len
................................................................................................................................... 18717.7 Str_Substr
................................................................................................................................... 18717.8 Str_WriteFloat
................................................................................................................................... 18817.9 Str_WriteInt
................................................................................................................................... 18817.10 Str_WriteWord
................................................................................................................................... 18918 Threads
................................................................................................................................... 19018.1 Thread_Cycles
................................................................................................................................... 19118.2 Thread_Delay
................................................................................................................................... 19118.3 Thread_Info
................................................................................................................................... 19218.4 Thread_Kill
................................................................................................................................... 19218.5 Thread_Lock
................................................................................................................................... 19318.6 Thread_MemFree
................................................................................................................................... 19318.7 Thread_Resume
................................................................................................................................... 19318.8 Thread_Signal
................................................................................................................................... 19418.9 Thread_Start
................................................................................................................................... 19418.10 Thread_Wait
................................................................................................................................... 19518.11 Thread Example
................................................................................................................................... 19518.12 Thread Example 2
................................................................................................................................... 19619 Timer
................................................................................................................................... 19619.1 Event Counter
................................................................................................................................... 19719.2 Frequency Generation
................................................................................................................................... 19819.3 Frequency Measurement
................................................................................................................................... 19819.4 Pulse Width Modulation
................................................................................................................................... 19819.5 Pulse & Period Measurement
................................................................................................................................... 19919.6 Timer Functions
................................................................................................................................... 20019.7 Timer_Disable
................................................................................................................................... 20019.8 Timer_T0CNT
................................................................................................................................... 20119.9 Timer_T0FRQ

C-Control Pro Mega SeriesVII
© 2008 Conrad Electronic
................................................................................................................................... 20219.10 Timer_T0GetCNT
................................................................................................................................... 20219.11 Timer_T0PW
................................................................................................................................... 20319.12 Timer_T0PWM
................................................................................................................................... 20319.13 Timer_T0Start
................................................................................................................................... 20419.14 Timer_T0Stop
................................................................................................................................... 20419.15 Timer_T0Time
................................................................................................................................... 20519.16 Timer_T1CNT
................................................................................................................................... 20619.17 Timer_T1CNT_Int
................................................................................................................................... 20619.18 Timer_T1FRQ
................................................................................................................................... 20719.19 Timer_T1FRQX
................................................................................................................................... 20719.20 Timer_T1GetCNT
................................................................................................................................... 20819.21 Timer_T1GetPM
................................................................................................................................... 20819.22 Timer_T1PWA
................................................................................................................................... 20919.23 Timer_T1PM
................................................................................................................................... 20919.24 Timer_T1PWB
................................................................................................................................... 21019.25 Timer_T1PWM
................................................................................................................................... 21119.26 Timer_T1PWMX
................................................................................................................................... 21119.27 Timer_T1PWMY
................................................................................................................................... 21219.28 Timer_T1Start
................................................................................................................................... 21219.29 Timer_T1Stop
................................................................................................................................... 21219.30 Timer_T1Time
................................................................................................................................... 21319.31 Timer_T3CNT
................................................................................................................................... 21419.32 Timer_T3CNT_Int
................................................................................................................................... 21419.33 Timer_T3FRQ
................................................................................................................................... 21519.34 Timer_T3FRQX
................................................................................................................................... 21519.35 Timer_T3GetCNT
................................................................................................................................... 21619.36 Timer_T3GetPM
................................................................................................................................... 21619.37 Timer_T3PWA
................................................................................................................................... 21719.38 Timer_T3PM
................................................................................................................................... 21719.39 Timer_T3PWB
................................................................................................................................... 21819.40 Timer_T3PWM
................................................................................................................................... 21819.41 Timer_T3PWMX
................................................................................................................................... 21919.42 Timer_T3PWMY
................................................................................................................................... 21919.43 Timer_T3Start
................................................................................................................................... 22019.44 Timer_T3Stop
................................................................................................................................... 22019.45 Timer_T3Time
................................................................................................................................... 22119.46 Timer_TickCount
Part 7 FAQ 223

VIII
Inhalt
© 2008 Conrad Electronic

Part 1

2Important Notes
© 2008 Conrad Electronic
Important Notes1
This chapter deals with important information's to warranty, support and operation of the C-Control-
Prohardwareandsoftware.
1.1 Introduction
The C-Control Pro Systems are based on the Atmel Mega 32 and the Atmel Mega 128 RISC
Microcontrollers, resp.. These Microcontrollers are used in large numbers in a broad variety of
devices from entertainment electronics through household appliances to various application
facilities in the industries. There the controller takes charge of important control tasks. C-Control
Pro offers this highly sophisticated technology to solve your controlling problems. You can acquire
analog measuring values and switch positions and provide corresponding switching signals
dependent on these input conditions, e. g. for Relais and servo motors. In conjunction with a DCF-
77 radio antenna C-Control Pro can receive the time with atomic accuracy and thus take over
precise time switch functions. Various hardware interfaces and bus systems allow the cross
linking of C-Control Pro with sensors, actors and other control systems. We want to provide a
broad user range with our technology. From our former work in C-Control service we know that
also customers without any experience in electronics and programming but eager to learn are
interested in C-Control. If you happen to belong to this user group please allow us to give you the
following advice:
C-Control Pro is only of limited use for the entry into programming of micro computers and
electronic circuit technique! We presuppose that you have at least a basic knowledge in a higher
programming language such as BASIC, PASCAL, C, C++ or Java. Furthermore we presume that
you are used to operating a PC under one of the Microsoft operating systems (98SE/NT/2000/ME/
XP). You should further be experienced in working with soldering irons, multimeters and electronic
components. We have made every effort to formulate all descriptions as simple as possible.
Unfortunately we were not able to do without the use of technical terms and expressions in an
operating manual to the themes involved here. If need be please see the appropriate technical
literature.
1.2 Reading this operating manual
Please read this operating manual thoroughly prior to putting the C-Control Pro Unit into operation.
While several chapters are only of interest for the understanding of the deeper coherence's, others
contain important information's whose non-compliance may lead to malfunctions or even damages.
Chapters and paragraphs containing important themes are marked by a symbol.
Please read the entire manual prior to putting the unit into operation since it contains important
notes for correct operation. In case of damages to material or personnel caused by improper
handling or non-compliance to this operating manual the warranty claim will expire! We will further
not take liability for consequential damages.

3C-Control Pro Mega Series
© 2008 Conrad Electronic
1.3 Handling
The C-Control Pro Unit contains sensitive components. These can be destroyed by electrostatic
discharges! Please observe the general rules on handling electronic components. Please organize
your working bench professionally. Ground your body prior to any work being done, e. g. by
touching a grounded and conducting object (e. g. heating radiator). Avoid touching the connection
pins of the C-Control Pro Unit.
1.4 Intended use
The C-Control Pro Unit is an electronic device in the sense of an integrated circuit. It serves the
programmable controlling of electric and electronic equipment. Construction and operation of this
equipment must be in conformance with the valid European licensing principles (CE).
The C-Control Pro must not be galvanically connected to voltages exceeding the directed Extra
Low Protective Voltage. Coupling to systems with higher voltages must exclusively be performed
by use of components having VDE qualification. In doing so the directed air and leakage paths
must be observed as well as sufficient precautions for protection against touching dangerous
voltages must be taken.
The PCB of the C-Control Pro Unit carries electronic components with high frequency clock
signals and steep pulse slopes. Improper use of the unit may lead to the radiation of electro-
magnetic interference signals. The adoption of proper measures (e. g. the use of chokes, limiting
resistors, blocking capacitors and shielding's) to ensure the observance of legally directed
maximum values lies in the responsibility of the user.
The maximum allowable length of connected wire lines is without additional precautions appr. 0.25
Meters (Exception: Serial Interface). Under influence of strong electro-magnetic alternating fields
or interference pulses the function of the C-Control Pro Unit can be detracted. If need be a reset or
a restart of the system may become necessary.
During connection of external sub-assemblies the maximum admissible current and voltage values of
the particular pins must be observed. The connection of too high a voltage, a voltage of wrong
polarity or an excessive current load may lead to immediate damage of the unit. Please keep the C-
Control Pro Unit away from spray water or condensation dampness. Observe the safe operating
temperature range in Item Technical Data in the attachment.
1.5 Warranty and Liability
For the C-Control Pro Unit Conrad Electronic grants a warranty period of 24 months from the date
of billing. Within this time period faulty units will be replaced free of charge if the fault provable
originates in faulty production or loss on goods in transit.
The software in the operating system of the Microcontroller as well as the PC software on CD-
ROM is shipped in the form as is. Conrad Electronic can not guarantee that the performance
features of this software will satisfy individual requirements and that this software will operate free
of faults and interruptions. Conrad Electronic can further not be held liable for damages occurring
directly by or consequently to the use of the C-Control Pro Unit. The use of the C-Control Pro Unit

4Important Notes
© 2008 Conrad Electronic
in systems directly or indirectly serving medical, health or life saving objectives is not authorized.
In case the C-Control Pro Unit incl. software does not satisfy your demands or if you do not agree
to our warranty and liability conditions you are to make use of our 14 days money back guarantee.
Please return the unit without use marks, in the undamaged original packaging and incl. all
accessories within this time-limit to our address for refund or clearing of the value of goods!
1.6 Service
Conrad Electronic provides you with a team of experienced service technicians. If you have any
question with regard to our C-Control Pro Unit you can reach our Technical Service by letter,
telefax or e-mail.
By letter Conrad Electronic
TechnicalInquiry
Klaus-Conrad-Straße2
D-92530Wernberg-Köblitz
Fax-Nr.: 09604/40-8848
E-Mail: [email protected]
Please preferably use e-mail communication. If there is a problem possibly provide us with a
sketch of your connection diagram in form of an attached picture file (jpg format) as well as the
program source code reduced to the part referring to your problem (max. 20 lines). Further
information's and current software for download please find on the C-Control homepage under
www.c-control.de.
1.7 Open Source
When C-Control Pro was designed also open source software has come into operation:
ANTLR2.73 http://www.antlr.org
Inno Setup 5.2.3 http://www.jrsoftware.org
GPP (Generic Preprocessor) http://www.nothingisreal.com/gpp
In accordance with the rules of "LESSER GPL" (www.gnu.org/copyleft/lesser) during installation of
the IDE also the original source code of the generic pre-processor as well as the source text of the
modified version is supplied, which is used with C-Control Pro. Both source texts are found in a
ZIP file in the "GNU" sub-directory.
1.8 History
Version 1.71 from 06/25/2008
New Features
·new Editor in IDE
·Editor shows all defined function names

5C-Control Pro Mega Series
© 2008 Conrad Electronic
·Editor supports code folding
·Simple serial Terminal
·Pulldownmenu to start your own programs (Tool Quickstart)
·Syntaxhighlighting of all standard library functions
·ConfigurationofSyntaxhighlighting
·Extension of Select .. Case in BASIC
·Automatic case correction for keywords and library function names
·Simple automatic lookup for keywords and library function names
·OneWire Library Functions
·Comments of Blocks in BASIC with /* , */
·NewFTDIdriver
Error Corrections
·Global For-Loop counter variables in BASIC work now correct
·Char variables work now correct with negative numbers
·"u" after an integer now defines unsigned number
·Project names now can contain special characters
·Thread_Wait() now supports thread parameter
·return command in CompactC without return parameter was working wrong
·Corrected swapped error messages when called functions with pointers
·Corrected error message at assignment, when function had no return parameter
·Nested switch/Select statements are working now
·Very long switch/Select statements are functioning properly now
·Better Error recovery when selected COM Port already in use
·No longer a crash if very huge amounts of faulty data where transferred over USB or COM Port
·"Exit" in BASIC For-Loops is working now
·Compiler error corrected in declaration of array variables
Version 1.63 from 12/21/2007
Error Corrections
·Documentationupdate
Version 1.62 from 12/08/2007
New Features
·Vista Compatibility
Error Corrections
·Brackets are working correctly
·The compiler is no longer crashing when variable names are not known
·There were sometimes incorrect syntax errors when opening some brace levels and a missing
operand
·"Exit" don't worked correctly in BASIC For-Next loops
·The array window could only be opened 16 times, even when some array windows were closed
·Renamed the Text "Compiler" to "Compiler Defaults" in the Options Menu
Version 1.60 from 03/04/2007
New Features

6Important Notes
© 2008 Conrad Electronic
·English language version of IDE - switchable at runtime
·English language Compiler messages
·English language version of help files and manual
·printing of source code from the IDE
·Print preview of source code
·Thread_Wait() extended with thread parameter
·ADC_Set() got a speedup
·DoubleClock mode can be activated in serial functions
Error Corrections
·ExtIntEnable() was only working correct with IRQ 0 and 4
·Serial_Init() und Serial_Init_IRQ() got wrongly a byte as divider instead of a word
·EPROM_WriteFloat und EEPROM_ReadFloat() sometimes worked incorrect
·Thread_Kill() worked erroneous when called from the main thread
·read accesses from globally defined floating point arrays were faulty
·The second serial interface was not working correctly
·EEPROM write accesses that used illegal addresses could overwrite reserved data in EEPROM
·There was a chance with a very low probability that the LCD display content could get corrupted
Version 1.50 from 11/08/2005
New Features
·IDE Support for Mega128
·Improved Cache Algorithm during IDE access to Transit Time Data in the Debugger
·New Library Routines for Timer 3 (Mega128)
·Programs using the extended (>64kb) Address Space (Mega128)
·Supporting the external 64kb SRAM
·Supporting the external Interrupts 3 - 7 (Mega128)
·Routines for the 2. Serial Interface (Mega128)
·Mathematical Functions (Mega128)
·Display of Memory Volume when Interpreter is started
·Internal RAM check for recognition when Global Variables too large for Main Memory
·Interner RAM check for recognition when Thread Configuration too large for Main Memory
·Transit Time Check if Stack Limits have been violated
·Source Files can be moved up and down in the Project Hierarchy
·Warning when Strings too long are assigned
·On demand the Compiler creates a Map File describing the volume of all Program Variables
·New Address model for Global Variables (the same Program runs at different RAM Volumes)
·Interrupt Routines for Serial Interface (up to 256 Byte Receiver Buffer / 256 Byte Transmitter Buffer)
·Fixed wired IRQ Routines to allow Periode Measurement of small time intervals
·Recursions are now usable without limits
·Arrays of any size can now be displayed in a separate Window in the Debugger
·Strings (character arrays) are now shown as Tooltip in the Debugger
·SPI can be switched off in order to use the pins for I/O
·The Serial Interface can be switched off in order to use the pins for I/O
·The Hex value is now additionally shown as Tooltip in the Debugger
·NewFunctionThread_MemFree()
·Additional EEPROM Routines for Word and Floating Point access
·TimeMeasurementwithTimer_TickCount()
·#pragma Commands to create Errors or Warnings
·Pre-defined Symbol in Pre-Prozessor: __DATE__, __TIME__ __FILE__, __FUNCTION__,
__LINE__

7C-Control Pro Mega Series
© 2008 Conrad Electronic
·Version Number in Splashscreen
·Extended Documentation
·Interactive Graphics at "Jumper Application Board" in Help File
·New Demo Programs
·Ctrl-F1 starts Context Help
Error Corrections
·An Error is created if the Return Command is missing at the end of a function
·Breakpoint Marks have not always been deleted
·Limits at EEPROM Access can now be checked closer (internal overflow seized)
·In the Debugger a single step can no longer depose the next command too early
Version 1.39 from 06/09/2005
New Features
·BASIC Support
·CompactC and BASIC can be mixed in a project
·Extended Documentation
·Loop Optimizing for For - Next in BASIC
·ThreadInfoFunction
·New Demo Programs
Error Corrections
·Compiler does no longer break down at German Umlauts (ä, ö, ü)
·Internal Byte Code of command StoreRel32XT corrected
·Offset in String Table improved
Version 1.28 from 04/26/2005
·Initial Version

Part 2

9C-Control Pro Mega Series
© 2008 Conrad Electronic
Installation2
In this chapter the installation of hardware and software is described.
2.1 Applicationboard
Important Note on Inserting/ Retrieving a Mega Module
For the connection between Module and Application Board high quality connectors have been used
in order to ensure intimate contacts. Mounting and dismounting of a Module should only take place
during power-down condition (switched off voltage) since otherwise damages may occur to
Application Board and/ or Module resp. Because of the high number of contacts (40/ 64 Pins)
considerable force may be necessary to insert/ retrieve the Module. When inserting it must be
ensured that the Module is pressed into the socket evenly, i. e. not out of line. To do this the Module
should be placed onto an even surface. Mount the Module Mega32 in the correct orientation
observing the marking for Pin 1. The label inscription will then point towards the control elements on
the Application Board

10Installation
© 2008 Conrad Electronic
Mounting Orientation of Module MEGA32
The connector of Module Mega32 has been designed in such a way that faulty insertion of the
Module is not possible. The dismounting of the Module is performed by carefully lifting it from the
socket by use of a suitable tool. In order to avoid bending the contacts the lifting of the Module
should take place from various sides.
Installation of the USB Drivers
Please connect the Application Board to an appropriate power supply. A Standard 9V/ 250mA Mains
Plug-in Power Supply will be sufficient. The polarity does not matter since it is automatically
corrected by means of diodes. Depending on additionally used components it may later become
necessary to use a power supply with higher output. Establish a connection between the Application
Board and your PC by use of a USB cable. Switch on the Application Board.
A Windows Operating System prior to Win98 SE ("Second Edition") will supposedly not allow a
reliable USB connection between PC and Application Board. From experience Microsoft’s USB
drivers will only reliably work with all USB devices starting with Win98SE. In such a case it is
recommended to either grade up to a more recent Operating System or use only the serial
connection to the Application Board.
If the Application Board is connected for the first time then there will be no driver for the FTDI chip.
The following window will then be shown under Windows XP.

11 C-Control Pro Mega Series
© 2008 Conrad Electronic
From here select "Install software from a list or other source" and click "Next"..
This manual suits for next models
2
Table of contents
Popular Microcontroller manuals by other brands

adafruit learning system
adafruit learning system Trinket introduction

ST
ST STM32F072 user manual

Thales
Thales Cinterion LGA DevKit Series user guide

Cypress
Cypress CY8CKIT-042 quick start guide

Infineon
Infineon Cypress CY8CKIT-042 How to use

Nordic Semiconductor
Nordic Semiconductor nRF9160 Getting started guide