Instructions

17 C-Control Pro IDE
© 2013 Conrad Electronic
SPI Switch Off (only Mega128)
A signal on the SPI interface during switch on can activate USB communication. In order to avoid
this PortG.4 (LED 2) can be set LOW during switch on. The SPI interface will then not be activated.
The SPI interface can also be manually be switched off by the Interpreter later on using SPI_Disable
().
Interpreter
The Interpreter consists of the following components:
Bytecode Interpreter
Multithreading Support
Interrupt Processing
User Functions
RAM and EEPROM Interface
In general the Interpreter processes the bytecode generated by the Compiler. Further most library
functions are integrated into it in order to allow access of the bytecode program to e. g. the hardware
ports. The RAM and EEPROM Interfaces are used by the IDE’s Debugger to get access to the vari-
ables when the Debugger is stopped at any Breakpoint.
Autostart
If no USB interface is connected and if SW1 has not been pressed during power-up in order to reach
the serial Bootloader mode then the Bytecode (if available) is started in the Interpreter. This means
that in case that the module is inserted into a hardware application the mere connection of the oper-
ating voltage will suffice to automatically start the user program.
A signal on Mega32: INT_0 resp. mega128: INT_4 when the C-Control Pro module is turned on,
can disrupt the startup behavior. Corresponding to the pin assignment of M32 and M128 the pin
INT_0 (resp. INT_4) are the same pin as SW1. When SW1 is pressed when the module is turned on,
this will lead to the activation of the serial bootloader mode, and the program is not started automat-
ically.
2.1.3 Mega32 Module
Module Memory
The C-Control Pro Module provides 32kB FLASH, 1kB EEPROM and 2kB SRAM. A supplementary
EEPROM with an 8kB memory depth is mounted on the application board. The latter can be ad-
dressed by an I2C interface.
Note: Detailed information can be found in the IC manufacturers PDF files on the C-Control Pro Soft-
ware CD-ROM.
ADC-Reference Voltage Generation
The Micro Controller is equipped with an analog-to-digital converter with a 10 Bit resolution. This