Skip to content

Inside LrTMAX

じゅん edited this page Mar 17, 2023 · 13 revisions

Usage of Timers

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.

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

DFU Bootloader

push & hold SW1 and SW3 when USB connect.

Firmware reboot usage

push SW1 and SW8 simultaneously.

Clone this wiki locally