Instructions
223 C-Control Pro IDE
© 2013 Conrad Electronic
Libraries5
In this part of the documentation all attached Help functions are described which allow the user to
comfortably gain access to the hardware. At the beginning of each function the syntax for CompactC
and BASIC is shown. After that the description of functions and involved parameters will follow.
5.1 Internal Functions
To allow the Compiler to recognize the internal functions present in the Interpreter these functions
must be defined in library "IntFunc_Lib.cc". If this library is not tied in no outputs can be performed
by the program. The following would e. g. be a typical entry in "IntFunc_Lib.cc":
void Msg_WriteHex$Opc(0x23)(Word val);
This definition states that the function ("Msg_WriteHex") in the Interpreter is called up by a jump vec-
tor of 0x23 and a word has to be transferred to the stack as a parameter.
Changes in the library "IntFunc_Lib.cc" may cause that the functions declared there can no
longer be executed correctly.
5.2 General
In this chapter all single functions are collected that cannot be categorized to other chapters in the
library.
5.2.1 AbsDelay
General Functions
Syntax
void AbsDelay(word ms);
Sub AbsDelay(ms As Word);
Description
The function Absdelay() waits for a specified number of milliseconds.
This function works in a very accurate manner, but suspends the bytecode interpreter. A thread change
will not happen during this time. Interrupts are recognized, but will not be processed since the interpreter
is necessary for this operations.
Please use Thread_Delay instead of AbsDelay if you work with threads. If you call an AbsDelay(1000)
in an endless loop nevertheless, the following will happen: Since the thread is changing after 5000 cycles
(default value) to the next thread, the next thread will begin after after about 5000 * 1000ms. This happens
because an AbsDelay() call will be treated like on cycle.