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.

Built-in Functions<br />

Also<br />

See:<br />

#FUSES , restart_wdt() , WDT or Watch Dog Timer Overview<br />

Internal Oscillator Overview<br />

setup_zdc( )<br />

Syntax:<br />

setup_zdc(mode);<br />

mode- the setup of the ZDC module. The options for setting up the module in<br />

Parameters:<br />

<br />

<br />

<br />

<br />

<br />

ZCD_ENABLED<br />

ZCD_DISABLED<br />

ZCD_INVERTED<br />

ZCD_INT_L_TO_H<br />

ZCD_INT_H_TO_L<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

Nothing<br />

To set-up the Zero_Cross Detection (ZCD) module.<br />

All devices with a ZCD module.<br />

setup_zcd(ZCD_ENABLE|ZCD_INT_H_TO_L);<br />

None<br />

zcd_status()<br />

shift_left( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

shift_left (address, bytes, value)<br />

address is a pointer to memory.<br />

bytes is a count of the number of bytes to work with<br />

value is a 0 to 1 to be shifted in.<br />

0 or 1 for the bit shifted out<br />

Shifts a bit into an array or structure. The address may be an array identifier or an<br />

309

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

Saved successfully!

Ooh no, something went wrong!