How ofpr/fuoz works
FUOZ is AVR firmware for timed engine ignition, configured for transistor-controlled (TCI) or capacitor-discharge (CDI) operation. The main workflow initializes timer and external-interrupt handling; an engine trigger lets the interrupt handler calculate ignition timing, then timer compare events switch the ignition output. The sampled code also contains optional thermistor conversion and an LCD driver, but the main loop has their use commented out. The graph reflects the inspected excerpts; it does not establish wiring for those optional modules or hardware beyond the pin-level behavior shown.
Main entry points: formirovatelj.c Ignition Timing · fuoz.c Firmware Main · term.c Temperature Readout
Components 8
Ignition Control
- Firmware Main
fuoz/fuoz.c - Ignition Timing
fuoz/formirovatelj.c - AVR Timer
Optional Sensing
- Temperature Readout
fuoz/term.c
Display Support
- LCD Interface
fuoz/lcd_lib.c
Other components
- Engine Trigger
- Ignition Switch
- Thermistor
Connections 6
- Firmware Main → Ignition Timing: initializes
fuoz/fuoz.c - Engine Trigger → Ignition Timing: triggers interrupt
fuoz/formirovatelj.c - Ignition Timing → AVR Timer: sets compare timing
fuoz/formirovatelj.c - AVR Timer → Ignition Timing: dispatches compare ISRs
fuoz/formirovatelj.c - Ignition Timing → Ignition Switch: switches output pin
fuoz/formirovatelj.c - Thermistor → Temperature Readout: provides ADC input