![background image](http://html.mh-extra.com/html/conrad/c-control-pro-mega-series/c-control-pro-mega-series_manual_2654183137.webp)
128
Libraries
© 2008 Conrad Electronic
Libraries
6
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.
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.
Parameter
ms wait duration in milliseconds
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......