From 4ffd61093b41e8f1e6d09dfcf1845a397116d1b5 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 27 Jan 2013 18:23:38 -0300 Subject: [PATCH] ubb-la/ubb-la.c (do_bufs): don't skip 122 nibbled (for evaluation) A series of measurements of A# ./ubb-patgen -f 41kHz 1 A# ./ubb-patgen -f 41kHz -c B# ./ubb-la -f 12 -n 10 yielded these results: 1 3 gap 2 0 1 3 ------- ------- ------- ------- ------- ------- ------- 106 77 11 98 120 78 11 83 134 79 11 68 3 79 11 53 18 78 11 39 33 78 11 24 47 79 11 9 62 79 5 6 140 147 77 79 11 125 147 Where for example the last entry corresponds to ...1{146}3{77} 0{11}1{125}3{147}... Since this looks as if DAT1 was 1 for 77 samples before the first capture ended, was 0 throughout the pulling low of DAT0 (11 cycles), stayed low for another 125 cycles, and then went high for the 146.29 nominal half-period, we thus get a gap length of 2*146-77-11-125 = 79 --- ubb-la/ubb-la.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubb-la/ubb-la.c b/ubb-la/ubb-la.c index de62d4b..d8e2845 100644 --- a/ubb-la/ubb-la.c +++ b/ubb-la/ubb-la.c @@ -309,7 +309,7 @@ static void do_bufs(int n_bufs, int nibbles) xfers(addrs, n_bufs, nibbles); for (i = 0; i != n_bufs; i++) - print_samples(stdout, bufs[i], INITIAL_SKIP, nibbles); + print_samples(stdout, bufs[i], 0, nibbles); }