We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在FwLib_STC8\FwLib_STC8\demo\rtcrtc_interrupt.c中定义的中断服务函数: INTERRUPT(RTC_Routine, EXTI_VectRTC) { .............. }
FwLib_STC8\FwLib_STC8\demo\rtcrtc_interrupt.c
INTERRUPT(RTC_Routine, EXTI_VectRTC) { .............. }
📝目前Keil各个版本的C51和C251编译器均只支持32个中断号(0~31),后面的中断需要经过添加汇编调整指令跳转实现。
INTERRUPT(RTC_Routine, EXTI_VectUser) { .............. }
fw_exti.h
`
END
✨以上是对该demo工程的完善,已经在STC8H8K64U B版本单片机上验证。
The text was updated successfully, but these errors were encountered:
Thank you for the bug report, I will add this fix.
Sorry, something went wrong.
fix: cx51 interrupt > 31 issue #14
6fa0ac7
No branches or pull requests
在
FwLib_STC8\FwLib_STC8\demo\rtcrtc_interrupt.c
中定义的中断服务函数:INTERRUPT(RTC_Routine, EXTI_VectRTC) { .............. }
🛠调整方法:
INTERRUPT(RTC_Routine, EXTI_VectUser) { .............. }
fw_exti.h
头文件中修改限定宏`
//#if (__CONF_MCU_TYPE == 1 )
#define EXTI_VectUser 13
//#endif
`
`
CSEG AT 0123H ;36号RTC中断入口地址
LJMP 006BH ;借用 13 号006BH中断的入口地址
END
`
`
Project:RTC
Target 1
├ Source Group 1
+ rtc_interrupt.c
+ fw_util.c
+ fw_uart.c
+ fw_sys.c
+ fw_tim.c
- Isr.asm
`
The text was updated successfully, but these errors were encountered: