PDA

Ver la versión completa : Cambio de frecuencia de reloj



algo90
12/05/2004, 10:14
¿Alguien sabe como va ChangePllValue(int clk, int m, int p, int s)?
Un saludo

algo90
14/05/2004, 11:00
Mirando por internet encontre esta funcion.
La pongo por si alguien le interesa.

// This file is written/copyright 2004 Mirko Roller

void gp_SetCpuSpeed(int freq) {

switch (freq) {
case 166: { cpu_speed(166000000,0x4b011,3 ); busclk=166000000/3; break;}
case 160: { cpu_speed(160000000,0x48011,3 ); busclk=160000000/3; break;}
case 156: { cpu_speed(156000000, 0x2c001,3 ); busclk=156000000/3; break;}
case 144: { cpu_speed(144000000, 0x28001,3 ); busclk=144000000/3; break;}
case 132: { cpu_speed(132000000, 0x3a011,3 ); busclk=132000000/3; break;}
case 133: { cpu_speed(133500000, (81<<12) | (2<<4) | 1, 2);busclk=133500000/2; break;}
case 100: { cpu_speed(102000000, (43<<12) | (1<<4) | 1, 2);busclk=102000000/2; break;}
case 66: { cpu_speed( 67500000, (37<<12) | (0<<4) | 2, 2);busclk= 67500000/2; break;}
case 40: { cpu_speed( 40000000, 0x48013, 0 ); busclk= 40000000 ; break;}
case 33: { cpu_speed( 33750000, (37<<12) | (0<<4) | 3, 2);busclk= 33750000/2; break;}
}
}

Un saludo

enkonsierto
14/05/2004, 12:19
Como Juan Palomo...