Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.

Sign Up Here
Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Volt.Tech

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

What is the capital of Egypt? ( Cairo )

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

volt.tech Logo volt.tech Logo
Sign InSign Up

volt.tech

volt.tech Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Tags
  • Category
    • Amplifiers
    • Passives & Protection
    • Clocks & Timing
    • Diodes & Rectifiers
    • FPGAs & PLDs
    • Interface ICs & Transceivers
    • LEDs & Optoelectronics
    • Memories
    • MEMS & Sensors
    • Microcontroller
    • Power Management
    • RF & Microwave
    • Security & Smart Card
    • Motor Drivers
    • Wireless Connectivity
  • Groups
  • Add group
  • Badges
  • Help
  • Home
  • About Us
  • Contact Us
Home/Questions/Q 1526
Next
In Process
Anonymous
  • 0
Anonymous
Asked: July 27, 20222022-07-27T16:11:22+05:30 2022-07-27T16:11:22+05:30In: Microcontroller

Why RA6M2 Take Accurate Second Timekeeper

  • 0

I am using FreeRTOS on the RA6M2, and what I need is a fairly accurate detention that works in the range of 1- 64 forevers. The software detention is way out in this range( 60us software detention turned out to be 84us), indeed when using critical task section and disabling irqs.

I have tried rather using a tackle timekeeper like below

This will not be veritably accurate but I was hoping the outflow would be small enough that I could ignore it. still, when I try this, the do while noway exits. For some reason the timekeeper counter keeps resetting indeed though this is a one shot timekeeper. Can someone tell me where I am going wrong with this? I am using the configurator in the e2Studio IDE to set up the timekeeper.

Any results to this problem will be appreciated.

e2studiora6m2timer
  • 1 1 Answer
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    Related Questions

    • How to accompanied Three PWM waveforms to RA4M1?
    • How to test voice with TW001- VUIA6E1POCZ?
    • How to find the SRAM Backup in STM32H563?
    • How RA4M2 MCU Boot stops at Verify boot image?
    • How to use Pin Group B in TMP117 sensor EK-RA6M5?

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. vikas Nagpal
      2022-08-02T10:32:38+05:30Added an answer on August 2, 2022 at 10:32 am

       You need to create the callback in the FSP configurator first, then inside your code create its implementation like this: volatile uint8_t timer_done; ....................... /* Example callback called when timer expires. */ void timer_callback (timer_callback_args_t * p_args) {   if (TIMER_EVENT_CRead more

       You need to create the callback in the FSP configurator first, then inside your code create its implementation like this:

      volatile uint8_t timer_done;
      .......................
      /* Example callback called when timer expires. */
      void timer_callback (timer_callback_args_t * p_args)
      {
        if (TIMER_EVENT_CYCLE_END == p_args->event)
        {
          timer_done = 1;
        }
      }
      ............................
      set_output(OUTPUT1, IO_HIGH);
      timer_done = 0;
      R_GPT_Start(&g_timer0_ctrl);
      while (!timer_done);
      R_GPT_Reset(&g_timer0_ctrl);
      See less
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Facebook
    Continue with Google
    or use

    What is the capital of Egypt? ( Cairo )

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Facebook
    Continue with Google

    Sidebar

    Ask A Question

    Related Questions

    • vikas Nagpal

      RA6M2 and SCE7?

      • 1 Answer
    • nidhi singh

      Renesas RA6M2 MCU RTC Issue

      • 1 Answer
    • vsharma

      Boot Loader for the RA6M2 Processor

      • 1 Answer
    • geek

      Reserve ROM area in linker

      • 1 Answer
    • Rahul B

      Setting Ofast optimization level for RA Series.

      • 1 Answer

    Stats

    • Questions 450
    • Answers 435
    • Comments 0
    • Best Answers 9
    • Popular
    • Answers
    • Manoj

      Configuration using .dp vision in Infineon XDPL series IC .

      • 5 Answers
    • Linto

      Renesas RL78/G14 ADC interface code

      • 4 Answers
    • Alex thomas
      Alex thomas added an answer Hello, Right, existing LED drivers all have PWM engines. It… September 19, 2023 at 11:10 am
    • Julian White
      Julian White added an answer Hello, You should set handshake after setting property RtsEnable =… September 14, 2023 at 10:59 am
    • Julian White
      Julian White added an answer Hello @Vikas, Thanks for posting your question online. Yes, one… September 12, 2023 at 10:33 am
    • Alex thomas
      Alex thomas added an answer Hi @sachinsharma, XDPL8221 has a PWM dimming interface which is… September 4, 2023 at 11:01 am
    • ashishgawade
      ashishgawade added an answer Hello I assume that you're using our STEVAL_ISC005V1 board and… August 29, 2023 at 10:32 am

    Users

    test38067226

    test38067226

    • 0 Questions
    • 0 Answers
    test2376360

    test2376360

    • 0 Questions
    • 0 Answers
    Erica Mills

    Erica Mills

    • 2 Questions
    • 0 Answers

    Explore

    • Tags
    • Category
      • Amplifiers
      • Passives & Protection
      • Clocks & Timing
      • Diodes & Rectifiers
      • FPGAs & PLDs
      • Interface ICs & Transceivers
      • LEDs & Optoelectronics
      • Memories
      • MEMS & Sensors
      • Microcontroller
      • Power Management
      • RF & Microwave
      • Security & Smart Card
      • Motor Drivers
      • Wireless Connectivity
    • Groups
    • Add group
    • Badges
    • Help

    Footer

    volt.tech

    Volt.Tech

    Find your spark

    About Us

    • About Us
    • Contact Us
    • Groups

    Legal Stuff

    • Privacy Policy
    • Faqs

    Follow

    © 2022 volt.tech. All Rights Reserved
    With Love by volt.tech.

    Go to mobile version

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.