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

Internal pullups overpower input file values after 1 cycle #498

Open
jeffpc opened this issue Jul 12, 2022 · 0 comments
Open

Internal pullups overpower input file values after 1 cycle #498

jeffpc opened this issue Jul 12, 2022 · 0 comments

Comments

@jeffpc
Copy link

jeffpc commented Jul 12, 2022

I tried to use the --input option to toggle MCU pins to get pin change interrupts. It looks like that an input file asserting a pin low works for only 1 cycle (1us @ 1MHz) before the pullup resistor overpowers it. In other words, it looks like _avr_vcd_input_timer in simavr sets the value but the next timestep simavr "forgets" that there is an external logic-low input and sets the pin high because of the pullup.

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