Date:2013-01-27 22:38:23 (11 years 2 months ago)
Author:Werner Almesberger
Commit:18a822b8452c911d7b7b8c21b6921a045cfa5a94
Message:ubb-la/ubb-la.c (xfers): wait for END_CMD_RES instead of DATA_FIFO_EMPTY

This seems to make no difference for the gap but the "start bit" (DAT0
pulled low) seem to get 1-2 samples shorter:

1 3 gap 2 0 1 3
------- ------- ------- ------- ------- ------- -------
146 77 9 60
147 13 79 9 45
145 28 79 10 29
146 43 79 9 15
Files: ubb-la/ubb-la.c (1 diff)

Change Details

ubb-la/ubb-la.c
192192    while (1) {
193193        MSC_STRPCL = MSC_STRPCRL_START_OP;
194194
195        while (MSC_STAT & MSC_STAT_DATA_FIFO_EMPTY);
195// while (MSC_STAT & MSC_STAT_DATA_FIFO_EMPTY);
196        while (!(MSC_STAT & MSC_STAT_END_CMD_RES));
196197
197198        IN(UBB_CMD);
198199

Archive Download the corresponding diff file

Branches:
master



interactive