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

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
Examples:
Example Files:
Also See:
setup_uart( )
Syntax:
Parameters:
Returns:
Function:
282
setup_uart(baud, stream)
setup_uart(baud)
setup_uart(baud, stream, clock)
baud is a constant representing the number of bits per second. A one or zero may
also be passed to control the on/off status. Stream is an optional stream identifier.
Chips with the advanced UART may also use the following constants:
UART_ADDRESS UART only accepts data with 9th bit=1
UART_DATA UART accepts all data
Chips with the EUART H/W may use the following constants:
UART_AUTODETECT Waits for 0x55 character and sets the UART baud rate to match.
UART_AUTODETECT_NOWAIT Same as above function, except returns before
0x55 is received. KBHIT() will be true when the match is made. A call to GETC()
will clear the character.
UART_WAKEUP_ON_RDA Wakes PIC up out of sleep when RCV goes from high to low
clock - If specified this is the clock rate this function should assume. The default
comes from the #USE DELAY.
Undefined
Very similar to SET_UART_SPEED. If 1 is passed as a parameter, the UART is
turned on, and if 0 is passed, UART is turned off. If a BAUD rate is passed to it,
the UART is also turned on, if not already on.
/* setup a timer that increments every 64th instruction cycle
with an overflow period of 0xA010 */
setup_timer2(TMR_INTERNAL | TMR_DIV_BY_64, 0xA010);
/* Setup another timer as a 32-bit hybrid
0xFFFFFFFF and a interrupt that will be fired when that timer
overflows*/
setup_timer4(TMR_32_BIT); //use get_timer45() to get the timer
value
enable_interrupts(int_timer5);//use the odd number timer for the
interrupt
None
Timer
Overview,
setup_timerX(),
get_timerXY(), set_timerX(),
with a period of
set_timerXY()

Related parts for PCDIDE COMPILER