This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assembler example for STM32F103

Hi everybody,

I have here an MCBSTM32E with an STM32F103ZE. I want to write a short routine in assembler, becaue my C code is to slow. But unfortunatly i dont find any example how to use Inline Assembly with the µVision 4 IDE.
Hope somebody here can help me.
In the routine i want to start a Timer and let a GPIO Pin toggle.

Regards

Parents
  • What does the code look like, that results in it being too slow?

    Starting a timer and controlling an output sounds like code that would have almost 1-to-1 translation between C and assembler since it's a question of writing data to SFR.

    Remember that you can have inline functions, where you don't get the cost of a function call/return when "calling" a function.

Reply
  • What does the code look like, that results in it being too slow?

    Starting a timer and controlling an output sounds like code that would have almost 1-to-1 translation between C and assembler since it's a question of writing data to SFR.

    Remember that you can have inline functions, where you don't get the cost of a function call/return when "calling" a function.

Children
No data