Wireless Charging Sonic Electric Toothbrushes
WAS-1972EN V1.00
10 / 17
December 27, 2021
The corresponding settings should be prepared before the charging base communicates with the
toothbrush body, that is, the ID code of the charging base and the toothbrush body must be the same.
In the Holtek provided program, a fixed parameter of 2 bytes will be used as the ID code and 1 byte
of data will be used as user-defined data.
When configuring the toothbrush body, the following parameters will be found in the main program.
1.
c_ID_H: Toothbrush ID code - high byte - fixed parameter
2.
c_ID_L: Toothbrush ID code - low byte - fixed parameter
3.
a_Rx_STA: a user-defined variable for the toothbrush body.
The charging base provides users with a set of complete and convenient ID identification functions. It
can also adjust the parameter settings such as the PWM operating time, ping time interval and
toothbrush body absence time. The toothbrush body has a user-defined 1 byte space for data
transmission such as toothbrush body state, battery voltage, etc. The following section will describe
the definable parameters.
1.
c_ID_H: Charging base ID code - high byte - fixed parameter
2.
c_ID_L: Charging base ID code - low byte - fixed parameter
3.
c_PWM_ON_time: PWM ping operating time, unit is 10ms.
4.
c_ping_cycle: PWM ping period (On + Off time), unit is 10ms.
5.
c_time_out_after_success: The length of time after the toothbrush body is absent from the
charging base, it returns to a ping state, unit is 10ms.
6.
c_OCPDA_offset: OCPDA offset calibration
Refer to the application note BP45F0044 Wireless Electric Toothbrush Application for detailed design
methods and notes (No. AN0569EN).
MCU Operating Environment
BP45F0044
V
DD
: 5V
Oscillator: 16MHz
Watchdog Timer: 1s
Timer: 50µs
BP45F1330
V
DD
: 5V
Oscillator: 8MHz
Watchdog Timer: 1s
Time Base: 200µs
Software Description
BP45F0044
ROM: 512×13 (use 499×13, percentage: 97%)
RAM: 32×8 (use 29×8, percentage: 90%)
OCP: demodulate with the appropriate debounce time when using the OCP for demodulation.
PWM: set the appropriate frequency and period to control LC resonance.
Timer: execute demodulation and timing once every 50µs when the flag is set.