Skip to content

Inside LrTMAX

Jun edited this page Aug 13, 2023 · 13 revisions

Usage of Timers (until 0.67)

TIMx Purpose
TIM1 8mS interval timer for key scanning.
TIM3 Neopixel 800KHz PWM pulse generator for CH1.
TIM6 Neopixel flashing timer.
TIM7 OLED display control timer.
TIM14 spin lock timer used for make OLED command interval
and make Neopixel 'RESET' state.
TIM15 Make timing for encoder de-chater.

Usage of Timers (from 0.68)

TIMx Purpose
TIM1 8mS interval timer for key scanning.
TIM2 Rotary Encoder scanning timer.
TIM3 Neopixel 800KHz PWM pulse generator for CH1.
TIM6 Neopixel flashing timer.
TIM7 OLED display control timer.
TIM14 spin lock timer used for make OLED command interval
and make Neopixel 'RESET' state.

Power consumption

element power(mA)
Neopixel 16mA x 8 128
OLED 40
MPU 16
sum 184
on descriptor 200

USB connection state

graph TD;
 A["POR"] --> B["NO LINK"];
 B["NO LINK"] -- establish USB conn. --> C[ESTAB];
 C[ESTAB] --> D[LINKED];
 D[LINKED] -- disconnected --> E[DISCONN];
 E[DISCONN] --> B[NOLINK];
Loading

Special key combinations

Call DFU Bootloader

push & hold SW1 and SW3 when USB connect.

Firmware reboot

push SW1 and SW8 simultaneously.

Rotary Encoder spec.

30 positioning, 15 pulses rotation.
Minimum pulse width = 5mSec.