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

Use timeout when waiting for dreq in sci mode #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

episource
Copy link

I observed that sometimes dreq did not become high after SCI operations. This is compliant with the datasheet p.38 ("If DREQ is low when an SCI operation is performed, it also stays low after SCI operation processing"). The datasheet gives maximum times SCI operations may require until completion.

Howerver, the current implemention always expected dreq to become high after SCI operations. It will wait endlessly if not.

This PR adds a timed wait for data request to be used for SCI operations. The default timeout (50ms) is chosen, such that all SCI operations will have completed within the chosen timeout. See datasheet p.38.

Default timeout (50ms) chosen, such that all sci operations have completed
within the chosen timeout. See datasheet, p.38.
@episource episource force-pushed the feature/wait-for-dreq-timeout-in-sci-mode branch from 91b230e to 4315250 Compare September 28, 2023 18:36
@episource
Copy link
Author

Conflicts resolved. Rebased to current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant