182
Libraries
© 2008 Conrad Electronic
One byte is send to the serial interface.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
val
output byte value
6.15.9 Serial_WriteText
Serial Functions
Syntax
void Serial_WriteText(byte serport,char text[]);
Sub Serial_WriteText(serport As Byte,ByRef Text As Char)
Description
All characters of the char array up to the terminating zero are send to the serial interface.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
text
char array
6.15.10 Serial Example
// string output on the serial interface
void main(void)
{
int i;
char str[
10
];
str=
"test"
;
i=
0
;
// initialize serial port with 19200baud, 8 bit, 1 stop bit, no parity
0
,SR_8BIT|SR_1STOP|SR_NO_PAR,SR_BD19200);
while(str[i]) Serial_Write(
0
,str[i++]);
// output string to serial port
}
6.15.11 Serial Example (IRQ)
// 35 byte send + receive 6 byte internal FIFO organization
byte buffer[
41
];
// array declaration
// string output to serial interface
void main(void)
{
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......