On Saturday (09/07/2013 at 03:44PM -0700), Al Kossow wrote:
On 9/7/13 12:57 PM, shadoooo wrote:
Clearly the 12-sectors will have 12 dents, while
the 16 -sectors 16 dents
Slots in the hub ring.
There are actually 13 and 17, one extra midway between the 12'th and 1'st for the
index.
I think your micro has to be a little smart and isolate the index
pulse from all the others and become synchronous with it. Then it
can synthesize the 12- or 16- sector pulses by simple "dead reckoning"
timing after using the leading edge of the index pulse as the trigger.
The sector to sector duration will be one value but the sector to index
duration will be half of that and then you know you just found the
index mark.
The micro then generates an outbound index pulse and the 12- or 16-
synthetic sector pulses, the first of which comes sooner than the others,
and then goes back to finding the next inbound index pulse... rinse
lather repeat.
Use a decent stability crystal or oscillator (as opposed to some on die
RC osc) to clock your micro and you should have it.
I have done something very similar to emulate 10- and 16-hole hard-sector
floppies with 3.5" soft-sector media and it works very well.
http://sebhc.lesbird.com/storage/storage.html#HARD_SECTOR_FLOPPY_EMULATOR
Chris
--
Chris Elmquist