Multiple(five) alarm time setting in stm32f0 mcu












3












$begingroup$


I am working on my hobbyist project and need to develop the alarm timings.
And RTC and Timer are new for me and I am confused in RTC Alarm time setting.
I need to make alarm with RTC for five different times(as we are doing in the mobile).
So, I am looking for the same thing with my mcu.
Looking forward for the kind support ...
(I am using STM32 Nucleo Board, KEIL-IDE, CubeMX)



Thanks










share|improve this question









$endgroup$

















    3












    $begingroup$


    I am working on my hobbyist project and need to develop the alarm timings.
    And RTC and Timer are new for me and I am confused in RTC Alarm time setting.
    I need to make alarm with RTC for five different times(as we are doing in the mobile).
    So, I am looking for the same thing with my mcu.
    Looking forward for the kind support ...
    (I am using STM32 Nucleo Board, KEIL-IDE, CubeMX)



    Thanks










    share|improve this question









    $endgroup$















      3












      3








      3





      $begingroup$


      I am working on my hobbyist project and need to develop the alarm timings.
      And RTC and Timer are new for me and I am confused in RTC Alarm time setting.
      I need to make alarm with RTC for five different times(as we are doing in the mobile).
      So, I am looking for the same thing with my mcu.
      Looking forward for the kind support ...
      (I am using STM32 Nucleo Board, KEIL-IDE, CubeMX)



      Thanks










      share|improve this question









      $endgroup$




      I am working on my hobbyist project and need to develop the alarm timings.
      And RTC and Timer are new for me and I am confused in RTC Alarm time setting.
      I need to make alarm with RTC for five different times(as we are doing in the mobile).
      So, I am looking for the same thing with my mcu.
      Looking forward for the kind support ...
      (I am using STM32 Nucleo Board, KEIL-IDE, CubeMX)



      Thanks







      firmware stm32f0 stm32cubemx hal-library development






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 11 at 12:59









      SACHIN RAJPUTSACHIN RAJPUT

      192




      192






















          2 Answers
          2






          active

          oldest

          votes


















          7












          $begingroup$

          Check AN3371 at the official website of ST.



          However, according to paragraph 2 there are only 2 alarms (A and B).



          Alternatives:




          • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.

          • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).






          share|improve this answer









          $endgroup$













          • $begingroup$
            Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
            $endgroup$
            – A.R.C.
            Jan 23 at 8:03



















          0












          $begingroup$

          There are only two Alarms but you can always make a software alarm and implement that (different discussion on the details of that)



          I got this on the keil website and it helped me to understand the RTC functionality a bit better: http://www.keil.com/download/docs/356.asp



          I know it is not for the STM32F0 but I had to modify only a little bit of code in order to get it going






          share|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("schematics", function () {
            StackExchange.schematics.init();
            });
            }, "cicuitlab");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "135"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f416407%2fmultiplefive-alarm-time-setting-in-stm32f0-mcu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7












            $begingroup$

            Check AN3371 at the official website of ST.



            However, according to paragraph 2 there are only 2 alarms (A and B).



            Alternatives:




            • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.

            • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).






            share|improve this answer









            $endgroup$













            • $begingroup$
              Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
              $endgroup$
              – A.R.C.
              Jan 23 at 8:03
















            7












            $begingroup$

            Check AN3371 at the official website of ST.



            However, according to paragraph 2 there are only 2 alarms (A and B).



            Alternatives:




            • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.

            • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).






            share|improve this answer









            $endgroup$













            • $begingroup$
              Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
              $endgroup$
              – A.R.C.
              Jan 23 at 8:03














            7












            7








            7





            $begingroup$

            Check AN3371 at the official website of ST.



            However, according to paragraph 2 there are only 2 alarms (A and B).



            Alternatives:




            • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.

            • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).






            share|improve this answer









            $endgroup$



            Check AN3371 at the official website of ST.



            However, according to paragraph 2 there are only 2 alarms (A and B).



            Alternatives:




            • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.

            • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 11 at 13:05









            Michel KeijzersMichel Keijzers

            5,94492662




            5,94492662












            • $begingroup$
              Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
              $endgroup$
              – A.R.C.
              Jan 23 at 8:03


















            • $begingroup$
              Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
              $endgroup$
              – A.R.C.
              Jan 23 at 8:03
















            $begingroup$
            Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
            $endgroup$
            – A.R.C.
            Jan 23 at 8:03




            $begingroup$
            Alternative number one is best if you want to use Low Power modes in your controller because the RTC can run on the external 32kHz crystal even if your main clock is stopped.
            $endgroup$
            – A.R.C.
            Jan 23 at 8:03













            0












            $begingroup$

            There are only two Alarms but you can always make a software alarm and implement that (different discussion on the details of that)



            I got this on the keil website and it helped me to understand the RTC functionality a bit better: http://www.keil.com/download/docs/356.asp



            I know it is not for the STM32F0 but I had to modify only a little bit of code in order to get it going






            share|improve this answer









            $endgroup$


















              0












              $begingroup$

              There are only two Alarms but you can always make a software alarm and implement that (different discussion on the details of that)



              I got this on the keil website and it helped me to understand the RTC functionality a bit better: http://www.keil.com/download/docs/356.asp



              I know it is not for the STM32F0 but I had to modify only a little bit of code in order to get it going






              share|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                There are only two Alarms but you can always make a software alarm and implement that (different discussion on the details of that)



                I got this on the keil website and it helped me to understand the RTC functionality a bit better: http://www.keil.com/download/docs/356.asp



                I know it is not for the STM32F0 but I had to modify only a little bit of code in order to get it going






                share|improve this answer









                $endgroup$



                There are only two Alarms but you can always make a software alarm and implement that (different discussion on the details of that)



                I got this on the keil website and it helped me to understand the RTC functionality a bit better: http://www.keil.com/download/docs/356.asp



                I know it is not for the STM32F0 but I had to modify only a little bit of code in order to get it going







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 11 at 16:49









                Tjaart van aswegenTjaart van aswegen

                8810




                8810






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Electrical Engineering Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f416407%2fmultiplefive-alarm-time-setting-in-stm32f0-mcu%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    File:DeusFollowingSea.jpg