Skip to content
Snippets Groups Projects
Commit 6d62648f authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Tested on HW. Looks OK needs clean-up and more.

parent cdb892dd
No related branches found
No related tags found
No related merge requests found
......@@ -124,9 +124,11 @@ def setup_pll(pll_frequency='200MHz') :
I2C_device = I2C(0x20, BUSNR=I2CBUSNR)
I2C_device.write_bytes(0x07, 0x00)
if pll_frequency == '160MHz':
print("Set PLL to 160 MHz mode")
pll_address = PLL_160M
I2C_device.write_bytes(0x03, 0x08)
else:
print("Set PLL to 200 MHz mode")
pll_address=PLL_200M
I2C_device.write_bytes(0x03, 0xF8)
Write_byte_PLL(0x05, 0x97, pll_address)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment