Rev. 1.10
98
November 04, 2019
Rev. 1.10
99
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
Digital to Analog Converter
The battery charge module contains a 14-bit and 12-bit R2R D/A converters, namely DAC0 and DAC1.
Their reference input voltage comes from V
DD
, and can be power down to save power.
The DAC0 and DAC1 are enabled or disabled by the DAOPC register. They are used to set a reference
charging current and voltage using the DA0H/DA0L and DA1H/DA1L registers respectively.
• DA0L Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
1
0
0
0
0
0
0
Bit 7~0
D7~D0
: D/A converter 0 output control code low byte
Writing this register will only write the data to a shadow buffer and writing the DA0H
register will simultaneously copy the shadow buffer data to the DA0L register.
• DA0H Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
D13
D12
D11
D10
D9
D8
R/W
—
—
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
—
0
0
0
0
0
0
Bit 7~6
Unimplemented, read as “0”
Bit 5~0
D13~D8
: D/A converter 0 output control code high byte
The D/A converter 0 output voltage is calculated using the following equation:
DAC0OUT=(V
DD
/2
14
)×D[13:0], where V
DD
is D/A converter 0 reference input voltage.
• DA1L Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0
D7~D0
: D/A converter 1 output control code low byte
Writing this register will only write the data to a shadow buffer and writing the DA1H
register will simultaneously copy the shadow buffer data to the DA1L register.
• DA1H Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
D11
D10
D9
D8
R/W
—
—
—
—
R/W
R/W
R/W
R/W
POR
—
—
—
—
1
0
0
0
Bit 7~4
Unimplemented, read as “0”
Bit 3~0
D11~D8
: D/A converter 1 output control code high byte
The D/A converter 1 output voltage is calculated using the following equation:
DAC1OUT=(V
DD
/2
12
)×D[11:0], where V
DD
is D/A converter 1 reference input voltage.