-
Notifications
You must be signed in to change notification settings - Fork 87
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
How to use PCINT4? #178
Comments
I never use pin change interrupts. I found few examples for you: |
@brother-yan what was your results with LaZsolt's suggestions? |
Since the @brother-yan hasn't loggen in the Github for two years, I close this issue. |
That's perfectly fine, I added them in #40 |
@dwillmore I don't use LGT MCU since 2020. I have a solution: 添加文件: #include <avr/io.h>
#ifdef __AVR_MEGA__
#define XJMP jmp
#define XCALL call
#else
#define XJMP rjmp
#define XCALL rcall
#endif
.section .vectors, "ax", @progbits
.weak __vector_26
;.set __vector_26, __bad_interrupt
XJMP __vector_26
.weak __vector_27
;.set __vector_27, __bad_interrupt
XJMP __vector_27
.weak __vector_28
;.set __vector_28, __bad_interrupt
XJMP __vector_28
.weak __vector_29
;.set __vector_29, __bad_interrupt
XJMP __vector_29 即可 |
Thank you for the answer.- |
Since mega328p doesn't have this interrupt vector. How to use this interrupt in lgt8f328p? Thanks!
The text was updated successfully, but these errors were encountered: