[SUPERFLY] Turbo 4speed for Butterfly

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[MODERATORS NOTE: BINARY ONLY RELEASES NOT ALLOWED. BINARIES REMOVED, THREAD LOCKED]

Turn Your Butterfly into a [SUPERFLY] Speed Demon by adding a 4-Speed Transmission and a Super Charger!

Due to Lock-Up problem with Butterfly Booter you should replace original BootLoader. Replace it with [SUPERFLY] or [SUPERFLEA].

MAIN FEATURES:

a) SMALLER: Only 240 (or 378) words (original is 1500+)
b) SECURE - Can't accidentally alter fuse/lockbits - No LOCKOUTS
c) SAFER - Extra Warning - No Accidental Over-Writes
d) FASTER - Joystick Up Launch programs at Turbo (High) Speed
e) FLEXABLE - Joystick Down at Original (2MHz) Speed
f) ADDITIONAL- Joystick Left goes Mid-Speed (4Mhz)
g) VARIETY- Joystick Right is Slow Speed (1Mhz)
h) FASTER - Programs Upload Quicker
i) EFFICIENT - Conserves Battery with "Sleep Mode"
j) EASIER Stack set-up, no need to do it in your program.
i) ROOMIER - More program space for your Applications
k) CONVIENIENT - Don't waste code on speed selection
l) SIMPLE - Works like original, no extra docs needed

(FREE for personal or educational, non-commercial applications. All rights reserved.)

CURRENT UPDATES 2006: .
MAR-16 Size reduction [SUPERFLEA] from 254 to 240
MAR-18 [SUPERFLY] v0.9d "Quad Speed" 1/2/4/8 MHz
MAR-19 [SUPERFLEA] "Quad Speed" v0.9d edition.

I can't get Lock-Up or Failure from either of these and no has reported a single one to date. If you do, let us know ASAP.

Thank to the AVRfreaks that helped me with this project especially Giorgos K.

Last Edited: Thu. Mar 23, 2006 - 06:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

NOTICE: BUAD RATE SPEED ADJUSTMENT

If you are running your own applications at a speed other than old 2MHz and need to use UART/Serial port you have to adjust the UBBR register.

The formula is:

 UBBR = [(1,2,4,8MHz)/(8xBAUD)]-1 (Double Speed Mode) 

If you are NOT using the Butterfly default Double Speed Mode the formula is:

UBBR = [(1,2,4,8 MHz) / (16 x BAUD)] - 1 

And if you are using the Synchonous Master Mode:

UBBR = [(1,2,4,8x1,000,000) / (2 x BAUD)] -1 

FOR EXAMPLE: 19,200 BUAD at 8MHz

Your application was using serial port at 19,200 BAUD so your UBBR is set to 12.
To get 19,200 at 8 MHz the UBBR calculation is:

UBBR = (8,000,000 / 8 x 19,200) -1 
UBBR = (8,000,000 / 153,600) -1 
UBBR = 52.08 - 1 
UBBR = 51 

For 4Mhz it is UBBR=25
For 1Mhz answer is 5.5 so use 5 or 6 (see below):

BAUD5 = 1,000,000 / 8(5+1) - for UBBR=5 
BAUD5 = 1,000,000/48 
BAUD5 = 20,833 (Error = +8.5%) 
BAUD6 = 1,000,000/ [ 8 x (6+1)]  - for UBBR=6 
BAUD6 = 1,000,000/56 
BAUD6 = 17,857 (Error = -7.0%) 

I hope you find the above information useful.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[SOURCE CODE REMOVED]

Last Edited: Sun. Mar 26, 2006 - 11:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The intent of this forum is for the discussion of projects in the Academy section. You have not submitted your code as a project, so you are off-topic. And legal discussion of code is just as valid as technical discussion. I also add that this forum is for discussion of code, not binaries. So far you have only posted binaries.

I suggest you Read this before continuing in this forum.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[Source Code Deleted]

Last Edited: Sun. Mar 26, 2006 - 10:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[MODERATORS NOTE: BINARY-ONLY POSTS NOT ALLOWED. BINARIES REMOVED]

A fellow in another thread had a broken Joystick that did not work in the centre position, so he could not start any BootLoader, so I modified this version of [SUPERFLY] so that one can launch into BootLoader mode by holding joystick in DOWN postion instead of CENTRE.

I'm posting it here in case there are others with same problem.

This version has only 3 Speed "Transmission" 2, 4, 8Mhz.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

[MODERATORS NOTE: BINARY ONLY RELEASES NOT ALLOWED. BINARIES REMOVED FROM THIS POST]

Quote:
Several of my students have laptops that do not have 9-pin serial ports. They are having problems talking to their Butterflies.

A teacher in another thread was having some problems with Bootloaders and Butterflies so I made available to him a version I had been working on that does not require pressing the joystick in while trying to connect. I have been using it myself because my thumb got sore pressing the joystick all the time. So I might as well make it available as a beta release so you can try it also.

Quote:
Try this Bootloader and see if it works. The calibration is a little tighter on the oscillator.

Also, it's very convienient, as you don't have to keep pressing joystick down to do an upload. Just reset Butterfly and its already looking to USART for reprogramming, you have about 8 seconds to start your upload programming before it goes back to sleep again. You never have to press the joystick centre position again.

You'll know when it goes back to sleep, try it and you'll see exactly what I mean. You'll aslo know exactly when it's waiting for an upload... again... try it and you'll know what I'm talking about.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

As mentioned you must post the complete source code to this project, not just "enough" of the source code.

It doesn't matter if it's not pretty, you can always clean it up sometime later!

Unless we can create the binary from the source code posted then it is not complete, that is the nature of the academy. As such I will be forced to lock and/or remove this thread unless the source is posted.

Warm Regards,

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Colin, I have gone back and re-read the "Stickys" and rules, and there's no mention of having to post even a single line of source code.

Where is it written in the rules? Until I read such a rule I can't see much point in posting anything.

[Source Code Deleted]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey,

As you wish, it is now in the rules.

Regards,

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm either blind or extremely stupid!

I just re-read both "Sticky's" at the top of the Forum which out-line the posting rules
and still don't see any mention of requiring anyone to post any source-code.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey,

It appeared in the first post of this thread, 4th paragraph - https://www.avrfreaks.net/index.p...

It doesn't show that it is new, so it's easy to miss it, sorry!

Warm Regards,

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hay is for Horses!

You are 100% correct old man, there it is!

Guess that make me both blind and extremely stupid!

So technically, up to this very moment I have not broken
any POSTED rules by asking people to wait for the posting
of the complete source code.

I guess a few apologies are in order before I proceed.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

RetroDan wrote:

Quote:
I guess a few apologies are in order before I proceed.

Dan, I would say that you need to offer an abundance of apologies...

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry to hear that Old Chap!

Not a problem Carl: I'M SORRY.. I had no idea I had violated any rules.

Please forgive me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well Dan, I hold no hard feeling regarding our past conflict. Apology accepted.

But...

There are many others that do habor ill feelings about what has gone on.

I think it might go a long way toward repairing things of the past if you offered certian individuals a sincere apology. And, just maybe they would begin to accept you and possibly begin to recognize the tallent that you could bring to the group.

Just a suggestion. Give it some thought...

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm all ears man! You wanna PM me with a few ideas?

So many have suggested in private that I just start fresh
with a new alias, but I'd rather do things the right way.

I just wish that others could be a mature as yourself
and let bygones be bygones.

Sometimes I get the feeling we're the only ones
in the house, so I'm glad we can get along.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey,

Quote:

So many have suggested in private that I just start fresh
with a new alias, but I'd rather do things the right way.

I respect that as well, and I wouldn't suggest you try to get an new alias.

There is new need to apologize about breaking rules, they were effectively unwritten rules that had been followed. As a new member we cannot expect you to know these "unwritten" rules such as releasing source code, however now you do!

We are looking for the complete source code just to have something as proof of where the binaries came from, and so that we can make our own modifications and contribute them back to you!

When the full source is posted I will remove or split all these OT posts too, so as not to hijack this thread.

Warm Regards,

-Colin

Topic locked