User Tools

Site Tools

Bankstick Routines

We're using the writepage MIOS function because a write to the bankstick takes a long time
this way we can write 64bytes at once so only 4 eeprom accesses are necessary

First versions of the firmware had a pattern size of 128bytes
so a pattern could be saved with two calls to the writepage function

Saving a pattern with 256bytes takes four page writes, this makes it impossible
to save the four pages after each other without affecting the sequencer timing.
To avoid this the pattern is written over four ticks. Each time the program cycles through
the main loop a block is written until the whole pattern is saved.

Reading from a eeprom is a lot quicker so we can just call readpage for each block…