Close

It's On!

A project log for Floppy-bird

Use a floppy-disk as a multi-frame-buffer, store audio-samples, and increase capacity to boot!

eric-hertzEric Hertz 10/07/2018 at 20:080 Comments

It has been a very packed couple weeks getting this thing going... BUT it's going!

Lest I fall asleep and forget to update, here's the latest:

I'm now recording PWM-nibbles onto disk *and* reading them back!

There's a definite 'thing' with trying to do so much simultaneously with such limited resources... Each microsecond has 16 clock-cycles for the CPU to work with... in 5us per PWM-nibble we need to do quite a bit. Writing a nibble, for instance, requires updating the AVR's PWM configuration *twice*. There's a bit of math to be done, and looping/tests... a bit of overhead that should probably be written in assembly... which I'm slow-to-remember.

So, presently, I think we're not really getting a constant stream of data, there are probably some hiccups. 

Hah! BUT... we don't Need a constant stream of precise back-to-back 5us PWM-nibbles, all we *really* need is precise timing between the start and "value" edges of the PWM cycle! The duration to the next nibble's 'start' is irrelevant! How'd I forget?! 

Off To Work!

Discussions