17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Elements:<br />

Options are separated by commas and may be:<br />

STREAM=id<br />

Associates a stream identifier with this RS232 port.<br />

The identifier may then be used in functions like fputc.<br />

BAUD=x<br />

XMIT=pin<br />

RCV=pin<br />

FORCE_SW<br />

BRGH1OK<br />

ENABLE=pin<br />

DEBUGGER<br />

RESTART_WDT<br />

INVERT<br />

Set baud rate to x<br />

Set transmit pin<br />

Set receive pin<br />

Will generate software serial I/O routines even when<br />

the UART pins are specified.<br />

Allow bad baud rates on chips that have baud rate<br />

problems.<br />

The specified pin will be high during transmit. This<br />

may be used to enable 485 transmit.<br />

Indicates this stream is used to send/receive data<br />

though a <strong>CCS</strong> ICD unit. The default pin used in B3,<br />

use XMIT= and RCV= to change the pin used. Both<br />

should be the same pin.<br />

Will cause GETC() to clear the WDT as it waits for a<br />

character.<br />

Invert the polarity of the serial pins (normally not<br />

needed when level converter, such as the MAX232).<br />

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

PARITY=X Where x is N, E, or O.<br />

BITS =X<br />

FLOAT_HIGH<br />

ERRORS<br />

SAMPLE_EARLY<br />

RETURN=pin<br />

Where x is 5-9 (5-7 may not be used with the SCI).<br />

The line is not driven high. This is used for open<br />

collector outputs. Bit 6 in RS232_ERRORS is set if the<br />

pin is not high at the end of the bit time.<br />

Used to cause the compiler to keep receive errors in<br />

the variable RS232_ERRORS and to reset errors<br />

when they occur.<br />

A getc() normally samples data in the middle of a bit<br />

time. This option causes the sample to be at the start<br />

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

For FLOAT_HIGH and MULTI_MASTER this is the pin<br />

used to read the signal back. The default for<br />

FLOAT_HIGH is the XMIT pin and for<br />

140

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

Saved successfully!

Ooh no, something went wrong!