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/semaphores

volt.tech Latest Questions

Alex thomas
  • 0
Alex thomas
Asked: June 5, 2023In: Microcontroller

How to block the R_SPI_WriteRead Function Easily?

  • 0

Hi, I need to read SPI registers from the assignment as well as ISR. So setting a flag isn’t an option and I can’t take semaphores from ISR. Is there a way to block the R_SPI_WriteRead function? Thank You Alex Thomas

Hi,

I need to read SPI registers from the assignment as well as ISR. So setting a flag isn’t an option and I can’t take semaphores from ISR.

Is there a way to block the R_SPI_WriteRead function?

Thank You

Alex Thomas

Read less
assignmentRegisterssemaphoresspiwriteread
  1. Julian White
    Added an answer on June 7, 2023 at 9:52 am

    Hello Alex, By default, the perpetration of the drivers in FSP is nonblocking. This is happening to improve the effectiveness of your code. That is the reason callback functions are added in order to be sure that the operation you want to perform is completed. Let's say for example that you want toRead more

    Hello Alex,

    By default, the perpetration of the drivers in FSP is nonblocking. This is happening to improve the effectiveness of your code. That is the reason callback functions are added in order to be sure that the operation you want to perform is completed.

    Let’s say for example that you want to perform a UART read, and you call R_SCI_UART_Read() API, this API’ll return immediately and your code will enter the callback function you created in order to check if data is ready and if the read operation is actually completed.

    In case you would like to make blocking the operation of R_SPI_WriteRead() maybe you should consider adding a wait after the call of the API in your code by using R_BSP_SoftwareDelay(), if this is what you’re meaning.

    By making tests you can find the proper delay you need to set.

    Thank you!

    Best Regards,
    Julian White

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  • 1 Answer
Answer

Sidebar

Ask A Question

Stats

  • Questions 449
  • 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

test9602842

test9602842

  • 0 Questions
  • 0 Answers
test22052428

test22052428

  • 0 Questions
  • 0 Answers
farmanali

farmanali

  • 1 Question
  • 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.