Closed enjoy-digital closed 2 years ago
An array of configuration bytes is here, it also shows the structure of packets sent to the chip via I2C: https://github.com/EEVengers/ThunderScope/blob/master/Software/libthunderscope/thunderscopehw/thunderscopehw_pll.c
LMK61E2 config added with https://github.com/enjoy-digital/thunderscope/commit/af20c482cfcecab8ec55361eada005f0e5068357, Clock generation needs to be verified.
Configuration seems to be correct (measured indirectly from data source of the ADC core). The I2C configuration (over LiteX-Server + BitBanging) needs to be improved since we can see retries on register writes, ex:
(One point = one retry).
Done, there are a lot less retries when doing the I2C BitBanging over PCIeBone directly.
The LMK61E2 is a programmable oscillator and is used to generate the HMCAD1511 sampling clock. Let's first do a simple unit-test over JTAGBone and verify outputs with a scope.
The configuration used in the official repository can be found at: https://github.com/EEVengers/ThunderScope/blob/master/Software/libthunderscope/thunderscopehw/thunderscopehw_pll.c