chongxi / spiketag

Next generation of spike sorting package for BMI
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Read FPGA-NSP sync pulse using software #73

Open chongxi opened 2 years ago

chongxi commented 2 years ago

Now it is possible to read the sync_pulse out of the FPGA using spiketag.fpga.memory_api.read_mem_16

FPGA sync pulse: image

chongxi commented 2 years ago
from spiketag.fpga.memory_api import read_mem_16
import time
sync = []
while True:
    sync.append(read_mem_16(0))
    time.sleep(0.01)

After start recording, stop the software sync recording loop and then plot the result: Spiketag_sync_pulse

The second duration is exactly twice length of the first duration.