Hi Alex,
As you may have seen since the introduction of the RPI-4 i decided to use the nice variant fpga code structure of the hl-2.
For the radioberry some specialities are added.
and there you will find your answer:
// Linear mapping from 0to255 to 0to39, like Hermes-Lite 1
tx_gain_computed = ((cmd_data[31:24]+4) >> 3) + (cmd_data[31:24] >> 5);
To make the tx gain more lineair you need to change the following lines:
Just 2 lines to change in the gateware code.
ad9866ctrl.v:
initarray[16] = {1'b0,8'h84}; // Address 0x10, Select TX gain
initarray[17] = {1'b0,8'h00}; // Address 0x11, Select TX gain
Some weeks ago i found the reason why the tx gain is not lineair. I did not have the time do the fix and making a new release.
The gain distrubution when using the driver looks now something about (thanks to yado-san for the diagram)
Enjoy the radio
73 Johan
PA3GSB
Op dinsdag 5 maart 2024 om 18:47:29 UTC+1 schreef qrp73: