Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

This should be configured by the user.

Macros

#define CLASSB_TC_MOD   D1
 TC module selection. More...
 
#define CLASSB_TC_PRESCALER   64
 TC prescaler. More...
 
#define CLASSB_TC_TOLERANCE   25UL
 Tolerance for the CPU frequency deviation. More...
 

#define CLASSB_TC_MOD   D1

TC module selection.

This is the specifier of the TC module that should be used for the CPU frequency test, e.g., C0 -> TCC0.

#define CLASSB_TC_PRESCALER   64

TC prescaler.

The TC runs on the system clock scaled down by this parameter. Possible values are 1, 2, 4, 8, 64, 256 or 1024.

#define CLASSB_TC_TOLERANCE   25UL

Tolerance for the CPU frequency deviation.

This value defines the tolerance (an integer, %) for the deviation between the measured and expected CPU frequency, e.g., 25 -> 25%.