6
Libraries
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.
6.1
Internal Functions
To allow the Compiler to recognise 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
vector 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.
6.2
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
(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.
Parameter
ms
wait duration in milliseconds
© 2008 Conrad Electronic
Thread_Delay
instead of
AbsDelay
if you work with threads. If you call an AbsDelay
Libraries
128
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers