17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functional Overview<br />

psp_input_full()<br />

psp_output_full()<br />

Relevant Preprocessor:<br />

None<br />

Write the data byte to the next buffer location.<br />

This will write a byte of data to the next buffer location or will<br />

write a byte to the specified buffer location.<br />

Reads a byte of data.<br />

psp_read() will read a byte of data from the next buffer<br />

location and psp_read ( address ) will read the buffer location<br />

address.<br />

Configures the address register of the PMP module with the<br />

destination address during Master mode operation.<br />

This will return the status of the output buffer underflow bit.<br />

This will return the status of the input buffers.<br />

This will return the status of the input buffers.<br />

This will return the status of the output buffers.<br />

This will return the status of the output buffers.<br />

Relevant Interrupts :<br />

#INT_PMP<br />

Interrupt on read or write strobe<br />

Relevant Include Files:<br />

None, all functions built-in<br />

Relevant getenv() parameters:<br />

None<br />

Example Code:<br />

setup_pmp( PAR_ENABLE |<br />

PAR_MASTER_MODE_1 |<br />

PAR_STOP_IN_IDLE,0x00FF );<br />

Sets up Master mode with address lines PMA0:PMA7<br />

If ( pmp_output_full ( ))<br />

{<br />

pmp_write(next_byte);<br />

}<br />

59

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

Saved successfully!

Ooh no, something went wrong!