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.

setup_high_speed_adc_pair( )<br />

Syntax:<br />

setup_high_speed_adc_pair(pair, mode);<br />

Parameters: pair – The High-Speed ADC pair number to setup, valid values are 0 to total<br />

number of ADC pairs. 0 sets up ADC pair AN0 and AN1, 1 sets up ADC pair<br />

AN2 and AN3, etc.<br />

mode – ADC pair mode. The valid options vary depending on the device. See<br />

the devices .h file for all options. Some typical options include:<br />

· INDIVIDUAL_SOFTWARE_TRIGGER<br />

· GLOBAL_SOFTWARE_TRIGGER<br />

· PWM_PRIMARY_SE_TRIGGER<br />

· PWM_GEN1_PRIMARY_TRIGGER<br />

· PWM_GEN2_PRIMARY_TRIGGER<br />

Returns:<br />

Function:<br />

Undefined<br />

Sets up the analog pins and trigger source for the specified ADC pair. Also sets<br />

up whether ADC conversion for the specified pair triggers the common ADC<br />

interrupt.<br />

If zero is passed for the second parameter the corresponding analog pins will be<br />

set to digital pins.<br />

Availability:<br />

Requires:<br />

Examples:<br />

Only on dsPIC33FJxxGSxxx devices.<br />

Constants are define in the device .h file.<br />

setup_high_speed_adc_pair(0, INDIVIDUAL_SOFTWARE_TRIGGER);<br />

setup_high_speed_adc_pair(1, GLOBAL_SOFTWARE_TRIGGER);<br />

setup_high_speed_adc_pair(2, 0) – sets AN4 and AN5 as digital pins.<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

setup_high_speed_adc(), read_high_speed_adc(), high_speed_adc_done()<br />

setup_lcd( )<br />

Syntax:<br />

Parameters:<br />

setup_lcd (mode, prescale, [segments0_31],[segments32_47]);<br />

Mode may be any of the following constants to enable the LCD and may be<br />

or'ed with other constants in the devices *.h file:<br />

290

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

Saved successfully!

Ooh no, something went wrong!