]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commit - gpif-acquisition.c
Refactor and bugfix the delay adding code for analog capture
authorPaul Fertser <redacted>
Fri, 15 Jul 2016 20:19:10 +0000 (23:19 +0300)
committerUwe Hermann <redacted>
Wed, 10 Aug 2016 13:11:10 +0000 (15:11 +0200)
commitb93872aadb4d9aa576b9ce8d56dd2d0d8f953230
tree7f58d3ea8cc06ab259f374a4cfcc05f672c75ad3
parent1f99664cd09baa9bc584c884d7fd509d332d984e
Refactor and bugfix the delay adding code for analog capture

There're two essential modifications in this change:

1. Fix timing for capture frequencies less than 200 kHz;
2. Sample ADC output after CLK is set low, as per the TLC5510
datasheet.

The second point is also important as the capture state sets CLK low,
so with the previous code there might have been a very short glitch on
this line during capture. Not confirmed by measurements, but it's
cleaner this way.

Signed-off-by: Paul Fertser <redacted>
gpif-acquisition.c