
22
© 2007 Microchip Technology Incorporated. All Rights Reserved. Audio Digital-to-Analog Converter Slide 22
Data Formats
z The DAC accepts 16-bit input data in two
formats:
− Signed (two’s complement)
− 0x7FFF = Most positive output voltage
− 0x0000 = Midpoint output voltage
− 0xFFFF = Value just below midpoint
− 0x8000 = Minimum output voltage
− Unsigned
− 0xFFFF = Most positive output voltage
− 0x8000 = Midpoint output voltage
− 0x7FFF = Value just below midpoint
− 0x0000 = Minimum output voltage
The DAC accepts data in two formats, signed and unsigned integers. An unsigned
16-bit value can range from 0x0000 to 0xFFFF. With 0x0000 being the absolute
minimum and 0xFFFF being the most positive value. A signed 16-bit value will
range from 0x8000 to 0x7FFF, where 0x7FFF is the most positive value. 0x0000
will represent the midpoint value and 0xFFFF is a value just below the midpoint.
The FORM bit in the DAC Control Register is where the user can select between
signed and unsigned Data input.
Comentarios a estos manuales