SW006014 Microchip Technology, SW006014 Datasheet - Page 202

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

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
DS51456E-page 198
Examples of Use
EXAMPLE 4-1:
EXAMPLE 4-2:
__delay32
Description:
Include:
Prototype:
Argument:
Remarks:
Default Behavior:
File:
__C30_UART
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
#include <libpic30.h>
#include <stdio.h>
void main() {
}
/* This program flashes a light and transmits a lot of messages at
#include <libpic30.h>
#include <stdio.h>
if (__attach_input_file("foo.txt")) {
}
9600 8n1 through uart 2 using the default stdio provided
by the 16-bit compiler. This is for a dsPIC33F DSC
on an Explorer 16(tm) board (and isn't very pretty) */
while (!feof(stdin)) {
}
__close_input_file();
putchar(getchar());
UART1 I/O
USING UART2
Produce a delay of a specified number of clock cycles.
<libpic30.h>
void __delay32(unsigned long cycles);
cycles
None.
This function will effect a delay of the requested number of cycles. The
minimum supported delay is 11 cycles (an argument of less than 11 will
result in 11 cycles). The delay includes the call and return state-
ments, but not any cycles required to set up the arugment (typically this
would be two for a literal value).
__delay32.c
Constant that defines the default UART.
N/A
int __C30_UART;
N/A
N/A
Defines the default UART that read() and write() will use for
stdin (unless a file has been attached), stdout, and stdout.
By default, or with a value of 1, UART 1 will be used. Otherwise UART
2 will be used. read() and write() are the eventual destinations of
the C standard I/O functions.
N/A
number of cycles to delay.
/* a new header file for
/* a new header file for these
these defintions */
defintions */
© 2008 Microchip Technology Inc.

Related parts for SW006014