Skip to content

Commit

Permalink
modify testing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei1234c committed May 12, 2020
1 parent c2a04fa commit dbfc362
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 2,515 deletions.
10 changes: 6 additions & 4 deletions codes/test/si5351/PC/si5351a_test_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
(162, 0), (163, 0), (164, 0), (165, 0), (166, 0), (167, 0), (168, 0), (169, 0), (170, 0),
(177, 160), (183, 210), (187, 208)]

with_hardware_device = False
with_hardware_device = True

if with_hardware_device:
_i2c = I2C.get_Ftdi_i2c()
Expand Down Expand Up @@ -57,7 +57,7 @@
# clk.enable()
# si.enable(False)
# clk.enable(True)
# clk.set_frequency(50.4e6)
clk.set_frequency(50.2e6)
# clk.set_frequency(90.5e6)
# clk.set_frequency(97.7e6)
# clk.set_frequency(225e6)
Expand All @@ -66,9 +66,11 @@
# clk.set_frequency(900e6 / (6 + 1 / (2**20 - 1)))
# clk.set_frequency(150e6 - 24)
# clk.set_frequency(149999976)
print()


print(si.read_all_registers())
# clk.set_frequency(900e6 / 6.5)
clk.set_frequency(900e6 / 8.5)
# clk.set_frequency(900e6 / 8.5)
# clk.set_frequency(900e6 / 8)
# clk.set_frequency(3e6)
# clk.set_frequency(83336000)
Expand Down
Loading

0 comments on commit dbfc362

Please sign in to comment.