Analog Devices ADSP-BF537 EZ-KIT Lite Getting Started page 50

Hide thumbs Also See for ADSP-BF537 EZ-KIT Lite:
Table of Contents

Advertisement

Listing 1-3. Exercise 1, Part 3
/* command to terminate the table */
{ADI_PWR_CMD_END,0 }
};
typedef struct
{
ADI_PWR_VLEV v;
const char *n;
} voltage_levels_type;
voltage_levels_type voltage_levels[] =
{
{ ADI_PWR_VLEV_085, "0.85" },
{ ADI_PWR_VLEV_095, "0.95" },
{ ADI_PWR_VLEV_105, "1.05" },
{ ADI_PWR_VLEV_125, "1.25" },
};
void main ()
{
unsigned long long cycles_begin, cycles_end;
unsigned long seconds_begin, seconds_end;
unsigned long display_cycles_end;
volatile unsigned int time_end;
int i, v;
adi_pwr_Init(ezkit_init);
srand ( 22 );
printf("%20s%20s%20s\n","Voltage","Seconds","Cycles (x 1m)");
for ( v = 0; v < sizeof ( voltage_levels ) / sizeof (
voltage_levels_type ); ++v )
{
adi_pwr_SetMaxFreqForVolt ( voltage_levels[ v ].v );
start_real_time_clock ();
cycles_begin = clock ();
1-28
www.BDTIC.com/ADI
Getting Started with ADSP-BF537 EZ-KIT Lite

Advertisement

Table of Contents
loading

Table of Contents