patchAVR Downloader/UploaDEr - Patches: patch #6484, Software control for USBasp ISP...

 
 

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

patch #6484: Software control for USBasp ISP speed

Submitter:  Jurgis Brigmanis <velko>
Submitted:  Sun 30 Mar 2008 07:54:25 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  fischl Open/Closed:  Closed

Sat 04 Apr 2009 12:55:28 PM UTC, comment #4: 

Thank you for quick reply - I looked only at latest SVN revision and didn't thought that appropriate changes was submitted over a month ago.

Tomasz Ostrowski <tomeko>
Sat 04 Apr 2009 12:01:20 PM UTC, comment #3: 

Yes, you are right, I have introduced a new command for setting ISP speed instead of using parameters.

The changes in avrdude are already done and are commited to the source repository (revision 815).

Thomas Fischl <fischl>
Group Member
Sat 04 Apr 2009 11:32:56 AM UTC, comment #2: 

Thomas, correct me if I'm wrong, but I see that your changes are slightly different than proposed by Jurgis - speed is set with new command USBASP_FUNC_SETISPSCK, not as parameter of USBASP_FUNC_CONNECT.
Could you supply corresponding patch for avrdude?

Tomasz Ostrowski <tomeko>
Sun 01 Mar 2009 10:32:29 AM UTC, comment #1: 

Based on this patch, I have integrated support for software controlled ISP speed in avrdude.

USBasp supports this function in firmware version 2009-02-28 or newer (see http://www.fischl.de/usbasp/).

Thomas Fischl <fischl>
Group Member
Sun 30 Mar 2008 07:54:25 PM UTC, original submission:  

Patches for Avrdude and USBasp firmware, to add software control over ISP SCK frequency from 1.5 MHz down to 500 Hz.

Patches are against latest released USBasp firmware version
(2007-10-23) and Avrdude's CVS version (as of 29.03.2008).

Bitclock period, specified using -B switch, is rounded
to closest available frequency:

  • less than 0.5 or none - default speed (jumper setting)
  • 0.5 - 1.0 -> 1.5 MHz
  • 1.0 - 2.0 -> 750 kHz
  • 2.0 - 4.0 -> 375 kHz
  • 4.0 - 8.0 -> 187.5 kHz
  • 8.0 - 20.96 -> 93.75 kHz
  • 20.96 - 46.88 -> 32 kHz
  • 46.88 - 93.75 -> 16 kHz
  • 93.75 - 187.5 -> 8 kHz
  • 187.5 - 375.0 -> 4 kHz
  • 375.0 - 750.0 -> 2 kHz
  • 750.0 - 1500.0 -> 1 Khz
  • more than 1500.0 -> 500 Hz


Doesn't break forward/backward avrdude/usbasp compability
(at least I hope so ;)) - firmware just falls back to jumper setting.

Jurgis Brigmanis <velko>

 

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

Attached Files
file #15363:  avrdude.diff added by velko (2KiB - text/x-diff)
file #15364:  usbasp.diff added by velko (4KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomeko (Posted a comment)
  • -email is unavailable- added by fischl (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Updated the item)
  • -email is unavailable- added by velko (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-01 fischl Open/ClosedOpen Closed
    2009-03-01 fischl StatusNone Done
    2008-03-30 joerg_wunsch Assigned toNone fischl
    2008-03-30 velko Attached File- Added avrdude.diff, #15363
        Attached File- Added usbasp.diff, #15364

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code