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.

Serial Buffer Options:<br />

RECEIVE_BUFFER=x<br />

TRANSMIT_BUFFER=x<br />

TXISR<br />

NOTXISR<br />

Flow Control Options:<br />

RTS = PIN_xx<br />

RTS_LEVEL=x<br />

CTS = PIN_xx<br />

CTS_LEVEL=x<br />

FLOW_CONTROL_MODE<br />

SIMPLEX_MODE<br />

peripheral. Using a serial routine (such as getc( ) or<br />

putc( )) before the UART is initialized will cause<br />

undefined behavior.<br />

Size in bytes of UART circular receive buffer, default if<br />

not specified is zero. Uses an interrupt to receive<br />

data, supports RDA interrupt or external interrupts.<br />

Size in bytes of UART circular transmit buffer, default<br />

if not specified is zero.<br />

If TRANSMIT_BUFFER is greater then zero specifies<br />

using TBE interrupt for transmitting data. Default is<br />

NOTXISR if TXISR or NOTXISR is not specified.<br />

TXISR option can only be used when using hardware<br />

UART.<br />

If TRANSMIT_BUFFER is greater then zero specifies<br />

to not use TBE interrupt for transmitting data. Default<br />

is NOTXISR if TXISR or NOTXISR is not specified and<br />

XMIT_BUFFER is greater then zero<br />

Pin to use for RTS flow control. When using<br />

FLOW_CONTROL_MODE this pin is driven to the<br />

active level when it is ready to receive more data. In<br />

SIMPLEX_MODE the pin is driven to the active level<br />

when it has data to transmit.<br />

FLOW_CONTROL_MODE can only be use when<br />

using RECEIVE_BUFFER<br />

Specifies the active level of the RTS pin, HIGH is<br />

active high and LOW is active low. Defaults to LOW if<br />

not specified.<br />

Pin to use for CTS flow control. In both<br />

FLOW_CONTROL_MODE and SIMPLEX_MODE this<br />

pin is sampled to see if it clear to send data. If pin is<br />

at active level and there is data to send it will send<br />

next data byte.<br />

Specifies the active level of the CTS pin, HIGH is<br />

active high and LOW is active low. Default to LOW if<br />

not specified<br />

Specifies how the RTS pin is used. For<br />

FLOW_CONTROL_MODE the RTS pin is driven to<br />

the active level when ready to receive data. Defaults<br />

to FLOW_CONTROL_MODE when neither<br />

FLOW_CONTROL_MODE or SIMPLEX_MODE is<br />

specified. If RTS pin isn't specified then this option is<br />

not used.<br />

Specifies how the RTS pin is used. For<br />

SIMPLEX_MODE the RTS pin is driven to the active<br />

level when it has data to send. Defaults to<br />

FLOW_CONTROL_MODE when neither<br />

FLOW_CONTROL_MODE or SIMPLEX_MODE is<br />

specified. If RTS pin isn't specified then this option is<br />

142

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

Saved successfully!

Ooh no, something went wrong!