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.

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

undefined<br />

Very similar to SET_UART_SPEED. If 1 is passed as a parameter, the UART is<br />

turned on, and if 0 is passed, UART is turned off. If a BAUD rate is passed to it,<br />

the UART is also turned on, if not already on.<br />

This function is only available on devices with a built in UART.<br />

#USE RS232<br />

setup_uart(9600);<br />

setup_uart(9600, rsOut);<br />

None<br />

#USE RS232, putc(), getc(), RS232 I/O Overview<br />

setup_vref( )<br />

Syntax: setup_vref (mode | value )<br />

Parameters:<br />

mode may be one of the following constants:<br />

FALSE (off)<br />

VREF_LOW for VDD*VALUE/24<br />

VREF_HIGH for VDD*VALUE/32 + VDD/4<br />

any may be or'ed with VREF_A2.<br />

value is an int 0-15.<br />

Also See:<br />

Voltage Reference Overview<br />

setup_wdt( )<br />

Syntax:<br />

Parameters:<br />

setup_wdt (mode)<br />

Constants like: WDT_18MS, WDT_36MS, WDT_72MS,<br />

WDT_144MS,WDT_288MS, WDT_576MS, WDT_1152MS, WDT_2304MS<br />

For some parts: WDT_ON, WDT_OFF<br />

.<br />

308

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

Saved successfully!

Ooh no, something went wrong!