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.

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

setup_rtc(RTC_ENABLE | RTC_OUTPUT SECONDS, 0x00);<br />

// Enable RTCC module with seconds clock and no calibration<br />

None<br />

rtc_read(), rtc_alarm_read(), rtc_alarm_write(), setup_rtc_alarm(),<br />

rtc_write(, setup_rtc()<br />

setup_rtc_alarm( )<br />

Syntax:<br />

Parameters:<br />

setup_rtc_alarm(options, mask, repeat);<br />

options- The mode of the RTCC module. See the devices .h file for all options<br />

mask- specifies the alarm mask bits for the alarm configuration.<br />

repeat- Specifies the number of times the alarm will repeat. It can have a max<br />

value of 255.<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

void<br />

Configures the alarm of the RTCC module.<br />

Devices that have the RTCC module.<br />

Nothing.<br />

Examples:<br />

setup_rtc_alarm(RTC_ALARM_ENABLE, RTC_ALARM_HOUR, 3);<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

rtc_read(), rtc_alarm_read(), rtc_alarm_write(), setup_rtc_alarm(), rtc_write(),<br />

setup_rtc()<br />

setup_sd_adc( )<br />

Syntax:<br />

setup_sd_adc(settings1, settings 2, settings3);<br />

Parameters: settings1- settings for the SD1CON1 register of the SD ADC module. See the<br />

device's .h file for all options. Some options include:<br />

SDADC_ENABLED<br />

SDADC_NO_HALT<br />

300

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

Saved successfully!

Ooh no, something went wrong!