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 />

Examples:<br />

Example Files:<br />

Also See:<br />

setup_power_pwm_pins(PWM_PINS_DISABLED, PWM_PINS_DISABLED,<br />

PWM_PINS_DISABLED,<br />

PWM_PINS_DISABLED);<br />

setup_power_pwm_pins(PWM_COMPLEMENTARY,<br />

PWM_COMPLEMENTARY, PWM_PINS_DISABLED, PWM_PINS_DISABLED);<br />

None<br />

setup_power_pwm(),<br />

set_power_pwm_override(),set_power_pwmX_duty()<br />

setup_psp(option,address_mask)<br />

Syntax:<br />

Parameters:<br />

setup_psp (options,address_mask);<br />

setup_psp(options);<br />

Option- The mode of the Parallel slave port. This allows to set the slave<br />

port mode, read-write strobe options and other functionality of the<br />

PMP/EPMP module. See the devices .h file for all options. Some typical<br />

options include:<br />

· PAR_PSP_AUTO_INC<br />

· PAR_CONTINUE_IN_IDLE<br />

· PAR_INTR_ON_RW //Interrupt on read write<br />

· PAR_INC_ADDR //Increment address by 1<br />

every<br />

//read/write cycle<br />

· PAR_WAITE4 //4 Tcy Wait for data hold<br />

after<br />

//strobe<br />

address_mask- This allows the user to setup the address enable<br />

register with a 16 bit or 32 bit (EPMP) value. This value determines<br />

which address lines are active from the available 16 address lines<br />

PMA0: PMA15 or 32 address lines PMAO:PMA31 (EPMP only).<br />

Returns:<br />

Function:<br />

Availability:<br />

Undefined.<br />

Configures various options in the PMP/EPMP module. The options are<br />

present in the device.h file and they are used to setup the module. The<br />

PMP/EPMP module is highly configurable and this function allows users<br />

to setup configurations like the Slave mode, Interrupt options, address<br />

increment/decrement options, Address enable bits and various strobe<br />

and delay options.<br />

Only the devices with a built in Parallel Port module or Enhanced<br />

Parallel Master Port module.<br />

297

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

Saved successfully!

Ooh no, something went wrong!