Skip to content

All interrupt pins become input ports when attachInterrupt() is executed. #1

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

Closed
SuguruHarada64 opened this issue Oct 27, 2023 · 0 comments
Labels

Comments

@SuguruHarada64
Copy link
Collaborator

■ Corresponding version
v.2.0.0 and Before v.2.0.0

■ Contents and Occurrence conditions
The attachInterrupt function is originally a function that sets the specified interrupt pin as an input port and defines an interrupt handler. However, there was a problem in which all interrupt pins were set to input ports in the attachInterrupt function. Therefore, if a specific terminal is set as output before calling the attachInterrupt function, that terminal will be overwritten as input. The pins to be initialized are as follows
P16, P31, P137, P140

■ Workaround
1. Set the attachInterrupt() function at the beginning of the setup function.
2. 1 Set the next output terminal with pinMode.

■ Permanent measures
Fixed in v.2.1.0.

@SuguruHarada64 SuguruHarada64 changed the title All interrupt pins become input ports when attachInterrupt() is executed (RL78G22) All interrupt pins become input ports when attachInterrupt() is executed. Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants