Coding guidelines documentation

This commit is contained in:
Pierre Barbier committed 2026-06-03 14:47:39 +02:00
1 parent de4b471790
commit 1e8d3b766f
2 files changed
+23 -2

No files matched your search

+3 -2
View File
@@ -21,9 +21,10 @@ As mentioned previously, all core engine control is handled on the Cortex M7, th
### Input Signals
The engine provides two key input signals:
- Crank pulse
- Cam pulse
- Crank pulse, triggered every 180 deg
- Cam pulse, triggered every 720 deg and slightly dephased
These are both registered using a hardware interrupt using `TIM2` as a low jitter time source.
These signals can have missing pulses or extra triggers which need to be accounted for.
### Time Base
`TIM2` is the main timebase used to control the engine, it provides 4 channels that are used as follows: