Debug; Msg_Writechar; Msg_Writefloat - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

Set
DCF_Mode
Parameter
None
6.6

Debug

The Debug Message Functions allow to send formatted text to the output window of the IDE. These
functions are interrupt driven with a buffer of up to 128 Byte. I. e. 128 Byte can be transferred through
the debug interface without the Mega 32 or Mega 128 Module having to wait for completion of the
output. The transmission of the individual characters takes place in the background. If it is tried to
send more than 128 Byte then the Mega RISC CPU will have to wait until all characters not fitting
into the buffer anymore have been transferred.
6.6.1

Msg_WriteChar

Debug Message Functions
Syntax
void Msg_WriteChar(char c);
Sub Msg_WriteChar(c As Char);
Description
One character is written to the output window. A C/R (Carriage Return -
next line (linefeed).
Parameter
c output character
6.6.2

Msg_WriteFloat

Debug Message Functions
Syntax
void Msg_WriteFloat(float val);
Sub Msg_WriteFloat(val As Single)
Description
The passed floating point number is displayed with a preceding decimal sign.
© 2008 Conrad Electronic
to 2 ("synchronize for frame beginning
")
.
Value:13
Libraries
138
) generates a jump to the

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents