patchAVR Downloader/UploaDEr - Patches: patch #9122, Fixed MISO sampling in ftdi_syncbb

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9122: Fixed MISO sampling in ftdi_syncbb

Submitter:  Ivan Frederiks <ifred>
Submitted:  Mon 19 Sep 2016 06:30:40 PM UTC
   
 
Category:  None Priority:  7 - High
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Sun 14 Nov 2021 03:45:55 PM UTC, comment #1: 

Tried to follow what all that code does, but frankly, without really tracking everything on a logic analyzer, it's quite complex. Since I don't have any such programmer handy, I trust that this is the right thing to do.

So, applied in r1474.

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 19 Sep 2016 06:30:40 PM UTC, original submission:  

ATmega samples MOSI and shifts out MISO data on rising edge of SCK. Existing ftdi_syncbb implementation samples MISO data shortly after rising edge of SCK. This is incorrect, but might work for slow FTDI chip or ATmega with high speed external oscillator.

This patch implements correct MISO sampling, i.e. on falling edge of SCK.

Tested with ATmega88 (1MHz, internal RC) and FT232H.

Ivan Frederiks <ifred>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #38554:  miso_sampling.patch added by ifred (1KiB - text/x-patch - Apply to avrdude-6.3 with 'patch -p 1'.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by ifred (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-14 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2016-09-19 ifred Attached File- Added miso_sampling.patch, #38554

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code