вторник, 28 декабря 2021 г.

Adding floppy disk support to CircuitPython, step 2

OK now that we’ve gotten the motor up and running, and the drive selected in step 1 – we know our wiring is correct. step 2 is getting data out! unlike almost all protocols we’re used to, there’s no clock pin on floppy data. it comes out in MFM format (at least, this floppy disk format does) which means we get a series of ~500kHz open-drain pulses with short negative widths, and varying positive widths that indicate flux transitions. now the *proper* thing to do here is use a PLL to sync up with the pulses since the motor speed can vary a few %, then convert the pulse widths to bits of data. but we’re gonna do it dirty to start, and just busy-poll the pin using a fast register gpio read and collect pulse widths, then maybe decode and bitpack them on the fly. not sure if this is workable yet, but it looks OK so far: just started collecting the data pulses and they seem to be binnable.

part 1 is here (video), and post.



from Adafruit Industries – Makers, hackers, artists, designers and engineers! https://ift.tt/3z6s3nE
via IFTTT

Комментариев нет:

Отправить комментарий

Know us

Our Team

Tags

Video of the Day

Contact us

Имя

Электронная почта *

Сообщение *