Skip to content

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.

Notifications You must be signed in to change notification settings

ErniW/Servo-motor-in-Assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published