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.

Requires:<br />

Constants are defined in the devices .h file.<br />

Examples:<br />

setup_psp(PAR_PSP_AUTO_INC| //Sets up legacy slave<br />

//mode with<br />

PAR_STOP_IN_IDLE,0x00FF ); //read and write buffers<br />

//auto increment.<br />

Example Files:<br />

Also See:<br />

None<br />

psp_output_full(), psp_input_full(), psp_overflow(),<br />

See header file for device selected.<br />

setup_pwm1( ) setup_pwm2( ) setup_pwm3( )<br />

setup_pwm4( )<br />

Syntax:<br />

setup_pwm1(settings);<br />

setup_pwm2(settings);<br />

setup_pwm3(settings);<br />

setup_pwm4(settings);<br />

Parameters: settings- setup of the PWM module. See the device's .h<br />

file for all options.<br />

Some typical options include:<br />

· PWM_ENABLED<br />

· PWM_OUTPUT<br />

· PWM_ACTIVE_LOW<br />

Returns:<br />

Function:<br />

Availability:<br />

Examples:<br />

Undefined<br />

Sets up the PWM module.<br />

On devices with a PWM module.<br />

setup_pwm1(PWM_ENABLED|PWM_OUTPUT);<br />

Example<br />

None<br />

Files:<br />

Also See: set_pwm_duty( )<br />

setup_qei( )<br />

Syntax: setup_qei( options, filter, maxcount );<br />

298

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

Saved successfully!

Ooh no, something went wrong!