Skip to content

fix(bitaxe): calibrate the EMC2101 diode for the Gamma - #141

Open
xyephy wants to merge 2 commits into
256foundation:mainfrom
xyephy:fix-diode-calibration
Open

xyephy wants to merge 2 commits into
256foundation:mainfrom
xyephy:fix-diode-calibration

Conversation

@xyephy

@xyephy xyephy commented Nov 12, 2026 •

Copy link
Copy Markdown

Have Emc2101::new take an Emc2101Config holding a DiodeCalibration, and write it to the ideality (0x17) and beta (0x18) registers in init(), so that leaving the calibration out is a deliberate choice rather than a silent default. Then calibrate the Gamma with ESP-Miner's values, ideality 0x24 and beta 0x00.

Without the calibration, the ASIC temperature reads about 17 °C high, so the 80 °C emergency shutdown trips at a real temperature of about 63 °C. On a Gamma 601 at 525 MHz and 1150 mV, four alternating 8-minute runs read 77.9 and 78.2 °C uncalibrated, and 61.3 and 61.3 °C calibrated, with core power, VR temperature, and hashrate unchanged.

As Skot pointed out, the diode does not read correctly until the core voltage is on. Mujina already ignores readings until 500 ms after the rail is up and the ASIC leaves reset, so that path is unchanged.

Fixes #140.

Have Emc2101::new take an Emc2101Config holding a DiodeCalibration,
and write it to the ideality (0x17) and beta (0x18) registers in
init(), so that leaving the calibration out is a deliberate choice
rather than a silent default. The chip keeps these registers until
it loses power, so a board read with whatever the last firmware had
set.

DiodeCalibration::Uncalibrated writes the datasheet defaults. The
Bitaxe passes it for now, so a board still holding AxeOS's
calibration loses it at startup; the next commit calibrates the
Gamma.
Write ESP-Miner's diode calibration for the Gamma: ideality 0x24 and
beta 0x00. Without it, the ASIC temperature reads about 17 °C high,
so the 80 °C emergency shutdown trips at a real temperature of about
63 °C.

On a Gamma 601 at 525 MHz and 1150 mV, the reading fell by
16.6-17.0 °C, with core power and hashrate unchanged.

Fixes 256foundation#140.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(bitaxe): ASIC temperature reads about 17 °C high without diode calibration

1 participant