Instructions
325 C-Control Pro IDE
© 2013 Conrad Electronic
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
text char array
5.20.12 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
Serial_Init(0,SR_8BIT|SR_1STOP|SR_NO_PAR,SR_BD19200);
while(str[i]) Serial_Write(0,str[i++]); // output string to serial port
}
5.20.13 Serial Example (IRQ)
// 35 byte send + receive buffer + SR_BUF byte internal FIFO organization
byte buffer[35+SR_BUF]; // array declaration
// string output to 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
// 20 byte receive buffer - 15 byte send buffer
Serial_Init_IRQ(0,buffer,20,15,SR_8BIT|SR_1STOP|SR_NO_PAR,SR_BD19200);
while(str[i]) Serial_Write(0,str[i++]); // display string
while(1); // endless loop
}
5.21 SDCard
SD-Card Support for C-Control Pro AVR32Bit
The card holder for the Micro SD cards is directly under the C-Control Pro AVR32Bit Unit. See de-
scription of the AVR32Bit Unit. Please consult the Pin Assignment for the description of the used
signals. Unlike the mega-SD card interface, there is no Enable line over which a reset can be