Skip to content

Instantly share code, notes, and snippets.

View Jimbles's full-sized avatar
🍜

James Avery Jimbles

🍜
View GitHub Profile
@Jimbles
Jimbles / auto_measure.py
Created December 13, 2016 18:04 — forked from theterg/auto_measure.py
AFE4300 EVM automation tool
import sys
import time
import math
sys.path.append("./Scripts")
GUI_Module=__import__('Device_GUI')
def FWR_read(input_mask, frequency=32, delay=0.5):
set_frequency(frequency)
GUI.write_register("AFE4300", "IQ_MODE_ENABLE", 0x00) #Select FWR Mode
GUI.write_register("AFE4300", "ADC_CONTROL_REGISTER2", 0x63) #ADCREF to VREF / ADC connected to BCM