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.

setup_high_speed_adc_pair(0, GLOBAL_SOFTWARE_TRIGGER);<br />

setup_high_speed_adc_pair(4, GLOBAL_SOFTWARE_TRIGGER);<br />

read_high_speed_adc(result); //starts conversion for AN0, AN1,<br />

//AN8 and AN9 and<br />

//stores result in result[0], result //[1],<br />

result[2]<br />

and result[3]<br />

Example Files:<br />

Also See:<br />

None<br />

setup_high_speed_adc(), setup_high_speed_adc_pair(),<br />

high_speed_adc_done()<br />

read_rom_memory( )<br />

Syntax: READ_ROM_MEMORY (address, dataptr, count );<br />

Parameters: address is 32 bits. The least significant bit should always be 0.<br />

dataptr is a pointer to one or more bytes.<br />

count is a 16 bit integer<br />

Returns:<br />

undefined<br />

Function: Reads count bytes from program memory at address to dataptr. Due to the 24<br />

bit program instruction size on the PCD devices, three bytes are read from each<br />

address location.<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

Only devices that allow reads from program memory.<br />

Nothing<br />

char buffer[64];<br />

read_program_memory(0x40000, buffer, 64);<br />

None<br />

write_program_eeprom() , write_eeprom(), read_eeprom(), Program eeprom<br />

overview<br />

read_sd_adc( )<br />

Syntax:<br />

value = read_sd_adc();<br />

Parameters: None<br />

Returns:<br />

A signed 32 bit int.<br />

250

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

Saved successfully!

Ooh no, something went wrong!