Datasheet

Chapter 7 Digital-to-Analog Converter (DAC8B1CV1)
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor 243
7.4 Functional Description
The DAC8B1C module consists of analog and digital sub-blocks.
7.4.1 Functional Description
Data to be converted is written to DACD register. The data can be mapped either to left end or right end of
DACD register by clearing or setting DJM bit of DACC0 register. Also, the data written to DACD can be
a signed or unsigned data depending on DSGN bit of DACC0 register. See Table 7-3 below for data
formats. The maximum unsigned data that can be written to DACD register is $FF while the minimum
value is $00. If the data is signed, the maximum value that can be written to DACD is $7F while the
minimum value is $80, where $7F (signed) corresponds to $FF (unsigned) and $80 (signed) corresponds
to $00 (unsigned). Table 7-4 shows this characteristic between signed, unsigned data values and their
corresponding voltage output. See Table 7-4 for DAC signed and un-signed data and DAC output codes.
Table 7-3. Data Formats
DJM DSGN Description and Bus Bit Mapping
0 0 8 bit/left justified/unsigned — bits 15–8
0 1 8 bit/left justified/signed — bits 15–8
1 0 8 bit/right justified/unsigned — bits 7–0
1 1 8 bit/right justified/signed bits — 7–0
Table 7-4. Signed and Unsigned Data
and DAC Output Codes
Input signal
V
RL
= 0
V
REF
/V
RH
= 5.12volts
Signed
8-Bit
Codes
Unsigned
8-Bit
Codes
5.12 7F FF
5.08 7E FE
5.07 7D FD
2.580 01 81
2.56 00 80
2.54 FF 7F
2.52 FE 7E
0.020 81 01
0.000 80 00