SW006014 Microchip Technology, SW006014 Datasheet - Page 49
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
Specifications of SW006014
Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 49 of 246
- Download datasheet (3Mb)
© 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 SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: