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

PB0 acts really strange after attachInterrupt #134

Open
imayoda opened this issue Feb 5, 2022 · 0 comments
Open

PB0 acts really strange after attachInterrupt #134

imayoda opened this issue Feb 5, 2022 · 0 comments

Comments

@imayoda
Copy link

imayoda commented Feb 5, 2022

Hi there guys :)
Tonight I've encountered a strange behavior.
PB0 manipulation works OK in setup, but after one INT0 interrupt (in which I equal an unsigned long variable to millis() ) the PB0 low->high manipulation results in a barely 1 volt square wave (got with oscilloscope), correct in duty cycle but very weak in voltage.
My circuit is a 1 signal to 4 multiplier with direct calculation of the high and low duty cycle period from the signal sender, and behaves very regularly if I "manually" do the PB0-2-3-4 switching with digitalWrite but before the attachInterrupt..
I think it's somewhat related (I'm not a pro) with #125 (comment) ..
Is there something I could do? Unfortunately I'm on a run, will switch to 25/45/85 line (what a waste 😿 ) so will leave this just as a "note".

Kind regards and thank you all

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

No branches or pull requests

1 participant