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.

Example<br />

Files:<br />

Also See:<br />

None<br />

setup_nco( ), set_nco_inc_value( ), get_nco_inc_value(<br />

)<br />

get_nco_inc_value( )<br />

Syntax: value =get_nco_inc_value( );<br />

Parameters:<br />

Returns:<br />

Availability:<br />

None<br />

- current value set in increment registers.<br />

On devices with a NCO module.<br />

Examples:<br />

value = get_nco_inc_value( );<br />

Example<br />

None<br />

Files:<br />

Also See: setup_nco( ), set_nco_inc_value( ),<br />

get_nco_accumulator( )<br />

get_ticks( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

value = get_ticks([stream]);<br />

stream – optional parameter specifying the stream defined in #USE TIMER.<br />

– a 8, 16 or 32 bit integer. (int8, int16 or int32)<br />

Returns the current tick value of the tick timer. The size returned depends on<br />

the size of the tick timer.<br />

All devices.<br />

#USE TIMER(options)<br />

#USE TIMER(TIMER=1,TICK=1ms,BITS=16,NOISR)<br />

void main(void) {<br />

unsigned int16 current_tick;<br />

}<br />

current_tick = get_ticks();<br />

190

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

Saved successfully!

Ooh no, something went wrong!