Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing bits after sector read / write #3

Open
dshadoff opened this issue Mar 31, 2019 · 2 comments
Open

Trailing bits after sector read / write #3

dshadoff opened this issue Mar 31, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dshadoff
Copy link

According to this post:
http://pcedev.blockos.org/viewtopic.php?f=5&t=98&start=10#p737

The 'read sector' routine should send 3 bits after completing a sector read (but your code doesn't do this yet). I have tested this, and it seems necessary.

In the same post, the 'write sector' routine has a slightly different end-sector sequence. It seems to read 2 bits, then send 3, then check the value of the last bit read. I haven't checked whether this is necessary though.

@dshadoff
Copy link
Author

I have just tested the write sectors again, on a real MB128.

The 'write sectors' function does expect - after the 512 bytes have been written - two status bits to be read, followed by the three '0' trailer bits to be written (unlike the read routine which only writes the three '0' trailer bits).

Although it was a limited review of dozens (not hundreds) of sectors, the first status bit returned was always a '1', and the second always a '0'.

@dshadoff
Copy link
Author

Also note that the status bit read after the 'boot' command (before the 3 trailer bits) is always returned as a '0'.

@BlockoS BlockoS self-assigned this Oct 30, 2019
@BlockoS BlockoS added the bug Something isn't working label Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants