Initial commit of files
This commit is contained in:
20
utils/picrate/picrate.c
Normal file
20
utils/picrate/picrate.c
Normal file
@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int pic;
|
||||
int rate;
|
||||
double usb;
|
||||
int div;
|
||||
|
||||
for ( pic=1; pic<=64 ; pic++ )
|
||||
{
|
||||
rate = 40000000 / ((pic+1)*16);
|
||||
usb = 3000000.0 / (double)rate;
|
||||
|
||||
div = (int)usb;
|
||||
if ( usb - (double)div < .01 )
|
||||
printf( "%d = %d, %.2f\n", pic, rate, usb );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user