Skip to content

Clear PCI at end of byte #84

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

Merged
merged 1 commit into from
Nov 1, 2019
Merged

Clear PCI at end of byte #84

merged 1 commit into from
Nov 1, 2019

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Nov 1, 2019

This PR fixes a bug that corrupts non-visible ASCII.

Notes:

The Pin Change Interrupt was firing after the compare interrupt (completion of byte) which was causing the incorrect start of a new byte. PCI is now cleared at the end of Compare. In the future, we could change the PCI from CHANGE to FALLING to be more sure that we're seeing the start of a new byte but it's not a guarantee. And this PR works.

This was found while connecting the Artemis to the LTE shield using software serial. Lots of \n and \r's in the AT command flows that were getting corrupt. This fixes those corruptions.

Fixes a bug receiving non-visable ASCII.
@oclyke oclyke merged commit 43e90a3 into master Nov 1, 2019
@oclyke oclyke deleted the ssClearPCI branch November 1, 2019 17:53
@nseidle nseidle restored the ssClearPCI branch November 27, 2019 18:58
@nseidle nseidle deleted the ssClearPCI branch November 27, 2019 18:58
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.

2 participants