<< AVRDigitalSetup Scilab 2 C Converter AVRPWM0SetDuty >>

Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue

AVRGetTimerValue

Function to get timer count

Parameters

timer :

timer whose current count is to be returned

Description

This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken.

Timer can take the following values

This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

Examples

AVRGetTimerValue(0);   //returns present count of the TCNT0 counter

See also

Authors


Report an issue
<< AVRDigitalSetup Scilab 2 C Converter AVRPWM0SetDuty >>