M16C/62P Group (M16C/62P, M16C/62PT)
19. D/A Converter
Rev.2.41
Jan 10, 2006
Page 252 of 390
REJ09B0185-0241
Figure 19.2
DACON, DA0 and DA1 Registers
Figure 19.3
D/A Converter Equivalent Circuit
D/Ai Register (i = 0 to 1)
(1)
Symbol
DA0
DA1
Setting Range
RW
NOTES :
1.
b0
b7
RW
After Reset
00h
Address
03DAh
03D8h
When not using the D/A converter, clear the DAiE bit (i = 0 to 1) to “0” (output disabled) to reduce the unnecessary
current consumption in the chip and set the DAi register to “00h” to prevent current from flow ing into the R-2R resistor
Function
Output value of D/A conversion
00h to FFh
00h
D/A Control Register
(1)
Symbol
DACON
Bit Symbol
RW
NOTES :
1.
b3 b2 b1 b0
b7 b6 b5 b4
When not using the D/A converter, clear the DAiE bit (i = 0 to 1) to “0” (output disabled) to reduce the unnecessary
current consumption in the chip and set the DAi register to “00h” to prevent current from flow ing into the R-2R resistor
Bit Name
Function
0 : Output disabled
1 : Output enabled
D/A0 Output Enable Bit
Nothing is assigned.
When w rite, set to “0”. When read, their contents are “0”.
DA1E
RW
RW
DA0E
After Reset
00h
0 : Output disabled
1 : Output enabled
Address
03DCh
D/A1 Output Enable Bit
—
(b7-b2)
—
VREF
(2)
AVSS
2R
R
2R
R
2R
R
2R
R
2R
R
2R
R
2R
R
2R
2R
DAi
MSB
LSB
DAiE bit
DAi register
NOTES:
1. The above diagram shows an instance in which the DA0 register is assigned “2Ah”.
2. VREF is not related to VCUT bit setting in the AD0CON1 register.
r
i = 0 to 1
“0”
“0”
“1”
“1”
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655