This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/MSP430F6435:无法生成警报事件中断

Guru**** 2582405 points
Other Parts Discussed in Thread: MSP430F6435

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/603807/ccs-msp430f6435-unable-to-generate-alarm-event-interrupt

器件型号:MSP430F6435

工具/软件:Code Composer Studio

大家好、我正在尝试使用以下配置生成警报事件

 RTCCTL01 |=RTCAIFG + RTCTEVIE + RTCRDYIE + RTCBCD + RTCHOLD; // BCD 模式、RTC 保持、启用 RTC
                                              //事件中断
    RTCYEAR = 0x2011;                      
    RTCMON = 0x10;                        
    RTCDAY = 0x07;                           
    RTCDOW = 0x05;                          
    RTCHOUR = 0x11;                  
    RTCMIN = 0x55;                        
    RTCSEC = 0x45;                           

    RTCAHOUR = 0x91;                          //小时= 0x11
    RTCAMIN = 0xD6;                           //
    RTCCTL1 |=(RTCTEV_0|RTCRDYIE_L|RTCAIFG_L);                     //启用定时器事件、警报事件、就绪事件中断
    RTCCTL01 &=~(RTCHOLD);

RTCRDYIE 的中断正在工作、但是、警报事件中断不会生成&相应的 ISR 也不会执行

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Suraj、

    您是否在程序中全局启用了中断?

    此外、您还可以在 此处找到器件的 RTC 示例代码。 或者、您可以使用以下路径通过 Resource Explorer (在 CCS 或 dev.ti.com 中)导航到该文件:Software -> MSP430Ware-v:3.60.00.10 -> Devices -> MSP430F5xx_6XX -> MSP430F6435 -> Peripheral Examples -> Register Level -> msp430f66xx_RTC_01.c

    此致、

    Matthew

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Suraj、

    您对此问题是否有任何更新?

    此致、
    Matthew