Wireless Charging Sonic Electric Toothbrushes
WAS-1972EN V1.00
12 / 17
December 27, 2021
Toothbrush Body Main Flowchart Description
Start
Initialisation
Measure and process signals
Execute Toothbrush function
Control capacity display
Transmit codes during wireless charging
100ms Timer
1s Timer
Figure 9. BP45F1330
Toothbrush Body Main Flowchart
1.
Initialisation: RAM clear, GPIO initialisation, Timer setting and WDT setting.
2.
Measure and process signals: the MCU measures all input signals and executes debounce
operations. It also measures battery voltage.
3.
Execute the toothbrush function: Refer to the toothbrush function execution subroutine description
below.
4.
Transmit codes during wireless charging: During charging, transmit codes once at time intervals.
5.
Control capacity display: Refer to the capacity display control subroutine description below.
6.
100ms Timer: Execute every 100ms to process the related timer flags.
7.
1s Timer: Execute every 1s to process the related timer flags