ErniW / Servo-motor-in-Assembly

Playing around with timers and ADC on STM32F446 to control a servo with a knob. Trivial unless written purely in ARM assembly on STM32 Cortex-M4F.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Servo-motor-in-Assembly

Playing around with timers on STM32F446RE to control a servo with potentiometer written purely in ARM assembly.

  • Servo motor uses Timer 2 channel 1 which is binded to PA5 (D13 pin on board).
  • Potentiometer uses ADC1 on pin A0.
  • Delay is done via SysTick which uses interrupt.

To build and upload the code type make compile upload. Before doing that update STLink directory in makefile.

About

Playing around with timers and ADC on STM32F446 to control a servo with a knob. Trivial unless written purely in ARM assembly on STM32 Cortex-M4F.


Languages

Language:Assembly 97.4%Language:Makefile 2.6%