Battery measurement, Table 33. jack detection registers, Table 34. battery measurement registers – Rainbow Electronics MAX98088 User Manual
Page 110
Stereo Audio Codec
with FLEXSOUND Technology
MAX98088
110
Table 33. Jack Detection Registers
Battery Measurement
The IC measures the voltage applied to SPKLVDD (typically the battery voltage) and reports the value in register 0x03.
This value is also used by the speaker limiter circuitry to set accurate thresholds. When the battery measurement func-
tion is disabled, the battery voltage is user programmable.
Table 34. Battery Measurement Registers
REGISTER
BIT
NAME
DESCRIPTION
0x02
(Read Only)
6
JKSNS
JACKSNS State
Reports the status of JACKSNS when JDETEN = 1, MBEN = 1, BIASEN = 1, and
VCMEN = 1.
0 = JACKSNS low
1 = JACKSNS high
0x4B
7
JDETEN
Jack Detection Enable
0 = Disabled
1 = Enabled
1
JDEB
Jack Detection Debounce
Configures the debounce time for setting JDET.
00 = 25ms
01 = 50ms
10 = 100ms
11 = 200ms
0
REGISTER
BIT
NAME
DESCRIPTION
0x03
4
VBAT
Battery Voltage
Read VBAT when V
BATEN
= 1 to determine V
SPKLVDD
. Program VBAT when V
BATEN
= 0 to allow proper speaker amplifier signal processing. Calculate the battery voltage
using the following formula:
V
BATTERY
= 2.55V + [VBAT/10]
3
2
1
0
0x51
7
SHDN
See Power Management
6
VBATEN
Battery Measurement Enable. Enables an internal ADC to measure V
SPKLVDD
.
0 = Disabled (register 0x03 readable and writeable)
1 = Enabled (register 0x03 read only)
3
PERFMODE
See the Power Management section.
2
HPPLYBCK
See the Power Management section.
1
PWRSV8K
See the Power Management section.
0
PWRSV
See the Power Management section.