
Rev. 1.40
134
March 29, 2019
Rev. 1.40
135
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
Voice Output
Voice Control
The voice control register controls the DAC circuit. If the DAC circuit is not enabled, any DAH/
DAL outputs will be invalid. Writing a “1” to the DACEN bit will enable the DAC circuit and
channel the DAC output to its corresponding I/O pin, while writing a “0” to the DACEN bit will
disable the DAC circuit.
Audio Output and Volume Control – DAL, DAH, DACTRL
The audio output is 12-bits wide whose highest 8-bits are written into the DAH register and whose
lowest four bits are written into the highest four bits of the DAL register. Bits 0~3 of the DAL
register are always read as zero.
There are 8 levels of volume which are setup using the DACTRL register. The highest 3-bits of
this register are used for volume control and the DACEN bit is used to control the DAC function
enable or not. Once the DACEN bit is set to “1”, this will channel the DAC output to the I/O pin and
disable the original I/O pin shared function.
DAL Register
Bit
7
6
5
4
3
2
1
0
Name
D3
D2
D1
D0
—
—
—
—
R/W
R/W
R/W
R/W
R/W
—
—
—
—
POR
0
0
0
0
—
—
—
—
Bit 7~5
D3~D2
: Audio output low 4 bit
Bit 3~0
unimplemented, read as “0”
DAH Register
Bit
7
6
5
4
3
2
1
0
Name
D11
D10
D9
D8
D7
D6
D5
D4
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~5
D4~D11
: Audio output high 8 bit
Bit 4~1
unimplemented, read as “0”
DACTRL Register
Bit
7
6
5
4
3
2
1
0
Name
VOL2
VOL1
VOL0
—
—
—
—
DACEN
R/W
R/W
R/W
R/W
—
—
—
—
R/W
POR
0
0
0
—
—
—
—
0
Bit 7~5
VOL2~VOL0: DAC volume control bit
000: min. volume
111: max. volume
Bit 4~1
unimplemented, read as “0”
Bit 0
DACEN
: DAC enable control bit
0: disable
1: enable
Note: When the DACEN is set to “1”, the DAC signal will be channeled to the I/O pin anddisable
the original I/O pin shared function.