17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PreProcessor<br />

MULTI_MASTER the RCV pin.<br />

MULTI_MASTER<br />

LONG_DATA<br />

DISABLE_INTS<br />

STOP=X<br />

TIMEOUT=X<br />

SYNC_SLAVE<br />

SYNC_MASTER<br />

SYNC_MATER_CONT<br />

UART1<br />

UART2<br />

NOINIT<br />

Uses the RETURN pin to determine if another master<br />

on the bus is transmitting at the same time. If a<br />

collision is detected bit 6 is set in RS232_ERRORS<br />

and all future PUTC's are ignored until bit 6 is cleared.<br />

The signal is checked at the start and end of a bit<br />

time. May not be used with the UART.<br />

Makes getc() return an int16 and putc accept an int16.<br />

This is for 9 bit data formats.<br />

Will cause interrupts to be disabled when the routines<br />

get or put a character. This prevents character<br />

distortion for software implemented I/O and prevents<br />

interaction between I/O in interrupt handlers and the<br />

main program when using the UART.<br />

To set the number of stop bits (default is 1). This<br />

works for both UART and<br />

non-UART ports.<br />

To set the time getc() waits for a byte in milliseconds.<br />

If no character comes in within this time the<br />

RS232_ERRORS is set to 0 as well as the return<br />

value form getc(). This works for both UART and non-<br />

UART ports.<br />

Makes the RS232 line a synchronous slave, making<br />

the receive pin a clock in, and the data pin the data<br />

in/out.<br />

Makes the RS232 line a synchronous master, making<br />

the receive pin a clock out, and the data pin the data<br />

in/out.<br />

Makes the RS232 line a synchronous master mode in<br />

continuous receive mode. The receive pin is set as a<br />

clock out, and the data pin is set as the data in/out.<br />

Sets the XMIT= and RCV= to the chips first hardware<br />

UART.<br />

Sets the XMIT= and RCV= to the chips second<br />

hardware UART.<br />

No initialization of the UART peripheral is performed.<br />

Useful for dynamic control of the UART baudrate or<br />

initializing the peripheral manually at a later point in<br />

the program's run time. If this option is used, then<br />

setup_uart( ) needs to be used to initialize the<br />

141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!