
SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 170
Revision 1.93
1
1
1
2
2
2
7-BIT DIGITAL TO ANALOG
CONVERTER
OVERVIEW
The D/A converter uses 7-bit structure to synthesize 128 steps' analog signal with current source output. After DAENB
bit is set to “1”, DAC circuit will turn to be enabled and the DAM register, from bit0 to bit6, will send digital signal to
ladder resistors in order to generate analog signal on DAO pin.
LADDER RESISTORS
DAM REGISTER
DAO OUTPUT
LADDER RESISTORS
DAM REGISTER
DAO OUTPUT
Figure 12-1. The DA converter Block Diagram
In order to get a proper linear output, a Loading Resistor R
L
is usually added between DAO and Ground. The example
shows the result of Vdd = 5V, R
L
=150ohm and Vdd = 3V, R
L
=150ohm.
Figure 12-2 DAO Circuit with R
L
Figure 12-3. DAC Output Voltage in Vdd=5V and 3V
The D/A converter is not designed for a precise DC voltage output and is suitable for a simple audio application e.g.
Tone or Melody generation.
DAM REGISTER
DAM initial value = 0000 0000
0B0H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
DAM
DAENB DAB6 DAB5 DAB4 DAB3 DAB2 DAB1 DAB0
R/W R/W R/W R/W R/W R/W R/W R/W
DAENB: Digital to Analog converter control bit. 0 = disable, 1 = enable.
DABn: Digital input data.
Vdd=3V
Vdd=5V