PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 95

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
assert(condition)
perror(message)
Relevant Preprocessor:
#USE RS232(options)
Relevant Interrupts:
INT_RDA
INT_TBE
Some chips have more than one hardware uart, and hence more interrupts.
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
UART – Returns the number of UARTs on this PIC
AUART – Returns true if this UART is an advanced UART
UART_RX – Returns the receive pin for the first UART on this PIC (see PIN_XX)
UART_TX – Returns the transmit pin for the first UART on this PIC
UART2_RX – Returns the receive pin for the second UART on this PIC
UART2_TX – Returns the transmit pin for the second UART on this PIC
Example Code:
/* configure and enable uart, use first hardware UART on PIC */
/* print a string */
if (kbhit())
#use rs232(uart1, baud=9600)
printf(“enter a character”);
/* get a character */
c = getc();
Checks the condition and if false prints the file name and line to
STDERR. Will not generate code if #DEFINE NODEBUG is used.
Prints the message and the last system error to STDERR.
This directive tells the compiler the baud rate and other
options like transmit, receive and enable pins. Please refer to
the #USE RS232 help for more advanced options. More than
one RS232 statements can be used to specify different
streams. If stream is not specified the function will use the last
#USE RS232.
Interrupt fires when the receive data available
Interrupt fires when the transmit data empty
//wait until a character has been received
//read character from UART
81

Related parts for PCDIDE COMPILER