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.

Example Files:<br />

Also See:<br />

#bit carry_flag=GETENV(“BIT:C”)<br />

None<br />

None<br />

goto_address( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

goto_address(location);<br />

location is a ROM address, 16 or 32 bit int.<br />

Nothing<br />

This function jumps to the address specified by location. Jumps outside of the<br />

current function should be done only with great caution. This is not a normally<br />

used function except in very special situations.<br />

All devices<br />

Nothing<br />

#define LOAD_REQUEST PIN_B1<br />

#define LOADER 0x1f00<br />

if(input(LOAD_REQUEST))<br />

goto_address(LOADER);<br />

Example Files:<br />

setjmp.h<br />

Also See: label_address( )<br />

high_speed_adc_done( )<br />

Syntax:<br />

value = high_speed_adc_done([pair]);<br />

Parameters: pair – Optional parameter that determines which ADC pair's ready flag to check.<br />

If not used all ready flags are checked.<br />

Returns:<br />

An int16. If pair is used 1 will be return if ADC is done with conversion, 0 will be<br />

return if still busy. If pair isn't use it will return a bit map of which conversion are<br />

198

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

Saved successfully!

Ooh no, something went wrong!