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.

None<br />

Relevant Interrupts :<br />

INT_LOWVOLT<br />

Interrupt fires on low voltage detect<br />

Relevant Include Files:<br />

None, all functions built-in<br />

Relevant getenv() parameters:<br />

None<br />

Example Code:<br />

For PIC18F8722<br />

setup_low_volt_detect<br />

(LVD_36|LVD_TRIGGER_ABOVE); //sets the trigger level as 3.6 volts and<br />

// trigger direction as above. The interrupt<br />

//if enabled is fired when the voltage is<br />

//above 3.6 volts.<br />

PMP/EPMP<br />

The Parallel Master Port (PMP)/Enhanced Parallel Master Port (EPMP) is a parallel 8-bit/16-bit<br />

I/O module specifically designed to communicate with a wide variety of parallel devices. Key<br />

features of the PMP module are:<br />

· 8 or 16 Data lines<br />

· Up to 16 or 32 Programmable Address Lines<br />

· Up to 2 Chip Select Lines<br />

· Programmable Strobe option<br />

· Address Auto-Increment/Auto-Decrement<br />

· Programmable Address/Data Multiplexing<br />

· Programmable Polarity on Control Signals<br />

· Legacy Parallel Slave(PSP) Support<br />

· Enhanced Parallel Slave Port Support<br />

· Programmable Wait States<br />

Relevant Functions:<br />

setup_psp<br />

(options,address_mask)<br />

This will setup the PMP/EPMP module for various mode and<br />

specifies which address lines to be used.<br />

This will setup the PSP module for various mode and specifies<br />

which address lines to be used.<br />

setup_pmp_csx(options,[offset]) Sets up the Chip Select X Configuration, Mode and Base<br />

Address registers<br />

setup_psp_es(options) Sets up the Chip Select X Configuration and Mode registers<br />

58

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

Saved successfully!

Ooh no, something went wrong!