mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-10 04:49:16 +02:00
Update bm1397.c to increase the max frequency to 650Mhz (#209)
* Update bm1397.c to increase the max frequency to 650Mhz The original version was setting everything above 500Mhz to 500Mhz, the update increases the limit to 650Mhz. No changes to the web interface - drop-down still shows up to 575Mhz * Update edit.component.ts to include higher freqeuncy for BM1397 * Updated BM1397 frequencies to above 500Mhz * Update bm1397.c * Update bm1397.c * UN-Update readme.md * Update bm1397.c * Update bm1397.c * Update bm1397.c
This commit is contained in:
parent
9dc8c8cad3
commit
ff5b60b54e
@ -139,7 +139,7 @@ void BM1397_send_hash_frequency(float frequency)
|
||||
float deffreq = 200.0;
|
||||
|
||||
float fa, fb, fc1, fc2, newf;
|
||||
float f1, basef, famax = 0xf0, famin = 0x10;
|
||||
float f1, basef, famax = 0x104, famin = 0x10;
|
||||
int i;
|
||||
|
||||
// bound the frequency setting
|
||||
@ -149,9 +149,9 @@ void BM1397_send_hash_frequency(float frequency)
|
||||
{
|
||||
f1 = 50;
|
||||
}
|
||||
else if (frequency > 500)
|
||||
else if (frequency > 650)
|
||||
{
|
||||
f1 = 500;
|
||||
f1 = 650;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -178,7 +178,7 @@ void BM1397_send_hash_frequency(float frequency)
|
||||
}
|
||||
// else f1 is 250-500
|
||||
|
||||
// f1 * fb * fc1 * fc2 is between 2500 and 5000
|
||||
// f1 * fb * fc1 * fc2 is between 2500 and 6500
|
||||
// - so round up to the next 25 (freq_mult)
|
||||
basef = FREQ_MULT * ceil(f1 * fb * fc1 * fc2 / FREQ_MULT);
|
||||
|
||||
@ -192,11 +192,12 @@ void BM1397_send_hash_frequency(float frequency)
|
||||
}
|
||||
else
|
||||
{
|
||||
freqbuf[3] = (int)fa;
|
||||
freqbuf[4] = (int)fb;
|
||||
freqbuf[2] = 0x40 + (unsigned char)((int)fa >> 8);
|
||||
freqbuf[3] = (unsigned char)((int)fa & 0xff);
|
||||
freqbuf[4] = (unsigned char)fb;
|
||||
// fc1, fc2 'should' already be 1..15
|
||||
freqbuf[5] = (((int)fc1 & 0xf) << 4) + ((int)fc2 & 0xf);
|
||||
|
||||
freqbuf[5] = (((unsigned char)fc1 & 0x7) << 4) + ((unsigned char)fc2 & 0x7);
|
||||
|
||||
newf = basef / ((float)fb * (float)fc1 * (float)fc2);
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,13 @@ export class EditComponent implements OnInit {
|
||||
{ name: '525', value: 525 },
|
||||
{ name: '550', value: 550 },
|
||||
{ name: '575', value: 575 },
|
||||
{ name: '590', value: 590 },
|
||||
{ name: '600', value: 600 },
|
||||
{ name: '610', value: 610 },
|
||||
{ name: '620', value: 620 },
|
||||
{ name: '630', value: 630 },
|
||||
{ name: '640', value: 640 },
|
||||
{ name: '650', value: 650 },
|
||||
];
|
||||
|
||||
public BM1366DropdownFrequency = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user