softerhardware / Hermes-Lite

Deprecated project!!! See Hermes-Lite2 at main web site
http://www.hermeslite.com
54 stars 40 forks source link

Use TxPGA directly #63

Closed in3otd closed 8 years ago

in3otd commented 8 years ago

Here are the simple changes I did to use the TXPGA control directly. These are not meant to be merged directly (I know that some changes should be done in the MyHDL code) but just to show what I did. Feel free to just close this PR after looking at the changes. I have removed the initialization of register 0x10 to leave the default value, so the internal TxPGA code is not corrupted and also removed this register update when changing the TX drive level for the same reason. Also I have removed the look-up table that translated the 0:255 TX drive code to the 0:39 TxPGA code and replaced with a simple formula based on your old code (note that I had to add the +4 in the formula to avoid "missing codes"). Of course a new look-up table giving more uniform steps will be better.

in3otd commented 8 years ago

...with the new FW this is not needed anymore.