SW006013 Microchip Technology, SW006013 Datasheet - Page 49

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
}
where you would fill in the appropriate code as specified in the comments.
Now you can use the generic C STDIO features to write to another port:
FILE *can1 = fopen("c","w");
2.13.3
FILE
Description:
Include:
fpos_t
Description:
Include:
{
default:
case 0:
case 1:
case 2:
case handle_can1:
case handle_can2:
case handle_spi1:
case handle_spi2:
}
return(len);
fprintf(can1,"This will be output through the can\n");
if ((__C30_UART != 1) && (&U2BRG)) {
}
if ((umode->UARTEN) == 0)
{
}
if ((ustatus->UTXEN) == 0)
{
}
for (i = len; i; --i)
{
}
break;
break;
break;
break;
break;
STDIO Functions
umode = &U2MODEbits;
ustatus = &U2STAbits;
txreg = &U2TXREG;
brg = &U2BRG;
*brg = 0;
umode->UARTEN = 1;
ustatus->UTXEN = 1;
while ((ustatus->TRMT) ==0);
*txreg = *(char*)buffer++;
Stores information for a file stream.
<stdio.h>
Type of a variable used to store a file position.
<stdio.h>
/* code to support can1 */
/* code to support can2 */
/* code to support spi1 */
/* code to support spi2 */
DS51456E-page 45

Related parts for SW006013