kyle
|
66f5bfbf1a
|
Initial commit: HC32F005 turning table firmware
Firmware (src/app):
- system state machine: IDLE / ROTATING / POWER_OFF
- button: 20 ms debounce, short/double/long classification, boot hold-off
- LED: idle slow blink, solid, speed/direction feedback patterns
- motor: 8-phase half-step drive with trapezoidal acceleration,
speed levels 2.5/5/7.5/10 RPM, reversal via standstill
- power latch on P33 (push-pull, high = hold, low = cut) with
decelerate-to-stop sequence before power-off (FR18)
- base timer mode-2 reload semantics (interval = 0x10000 - ARR)
Build: Makefile for arm-none-eabi-gcc, selective DDL compile,
vendor startup + linker script under src/.
Docs: FIRMWARE_REQUIREMENTS.md, STATE_MACHINE.md, README.md.
Vendor datasheet/RM/DDL references under docs/ are kept locally and
tracked in a separate shared repo.
|
2026-11-06 08:14:55 +00:00 |
|