你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

st-img
chrome
st-img
firefox
st-img
safari
st-img
ie8及以上
shequ.stmicroelectronics.cn
  • ST意法半导体官网
  • STM32中文官网
  • ST全球论坛
登录/注册
  • 首页
  • 技术问答
  • 话题
  • 资源
  • 创客秀
  • 视频
  • 标签
  • 积分商城
  • 每日签到
冷不丁-357544

冷不丁-357544

 

回答数 0 关注数 0
关注 私信
  • 动态99
  • 提问
  • 回答0
  • 创客秀 0
  • 分享 0
  • 关注0
3 回答

使用STM32F072 RTC模块每隔1分钟触发一次中断

STM32F0
冷不丁-357544 冷不丁-357544 回答时间: 2020-8-19 11:31

Tcreat 发表于 2020-8-19 08:42 这里有你要的例程 :https://www.stmcu.org.cn/document/detail/index/id-213581 之前按例程中的方法配置的就不进中断了,没找出来原因 void RTC_AlarmConfig(void) {   EXTI_InitTypeDef EXTI_InitStructure;   RTC_AlarmTypeDef RTC_AlarmStructure;   NVIC_InitTypeDef NVIC_InitStructure;   RTC_AlarmStructInit(&RTC_AlarmStructure);       /* EXTI configuration */   EXTI_ClearITPendingBit(EXTI_Line17);   EXTI_InitStructure.EXTI_Line = EXTI_Line17;   EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;   EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising;   EXTI_InitStructure.EXTI_LineCmd = ENABLE;   EXTI_Init(&EXTI_InitStructure);      /* Enable the RTC Alarm Interrupt */   NVIC_InitStructure.NVIC_IRQChannel = 2;//RTC_IRQn;   NVIC_InitStructure.NVIC_IRQChannelPriority = 0;   NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;   NVIC_Init(&NVIC_InitStructure);   /* Set the alarmA Masks */   RTC_AlarmStructure.RTC_AlarmMask = RTC_AlarmMask_All;   RTC_SetAlarm(RTC_Format_BIN, RTC_Alarm_A, &RTC_AlarmStructure);      /* Set AlarmA subseconds and enable SubSec Alarm : generate 8 interripts per Second */   RTC_AlarmSubSecondConfig(RTC_Alarm_A, 0xFF, RTC_AlarmSubSecondMask_SS14_8);   /* Enable AlarmA interrupt */   RTC_ITConfig(RTC_IT_ALRA, ENABLE); } void RTC_IRQHandler(void) {         USART1_Printf_RTC();                         //RTC           /* Check on the AlarmA flag and on the number of interrupts per Second (60*8) */   if(RTC_GetITStatus(RTC_IT_ALRA) != RESET)   {     /* ALARM is enabled */ //    ALARM_Occured = 1;         /* Clear RTC AlarmA Flags */     RTC_ClearITPendingBit(RTC_IT_ALRA);   }   /* Clear the EXTIL line 17 */   EXTI_ClearITPendingBit(EXTI_Line17); }

赞0
2 回答

STM32F0芯片SPI外扩SRAM IS62/65WVS5128FBLL

STM32F0
butterflyspring butterflyspring 回答时间: 2020-8-13 12:11

楼主注意,这样的SPI连接,RAM的读写速度不快,而且没有地址映射功能

赞0
冷不丁-357544 冷不丁-357544


阅读作者更多的帖子

所在话题

参与活动

  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    网络 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16
  • 滴滴押注社区团购,明确“投入不设上限,要做市场第一”

    线下 2020-10-16