DM163012 Microchip Technology, DM163012 Datasheet - Page 29
DM163012
Manufacturer Part Number
DM163012
Description
BOARD DEMO PICDEM FOR 16C781/782
Manufacturer
Microchip Technology
Datasheet
1.DM163012.pdf
(44 pages)
Specifications of DM163012
Supported Devices
PIC16C781/782
Interface Type
Serial
Processor To Be Evaluated
PIC16C781/782
For Use With
PIC16C781/782
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
2001 Microchip Technology Inc.
DAC module
enable
DAC output
enable
Figure 3.3: DAC Setup Initial Display
The DAC module is controlled by means of four Special Function registers:
The DACON0 register controls three items:
The DAC register holds the digital value to be converted to analog output.
The TRISB and the ANSEL registers are the primary controls for the configu-
ration of PORTB pins.
Note:
• DACON0
• DAC
• TRISB
• ANSEL.
• Enable/disable the DAC
• Enable DAC output on RB1/AN5/V
• Selection of reference voltage.
and TRISB<1>=1)
DACON0 register shows all zeros before the DAC is enabled and
configured.
DAC
pins (providing ANSEL<5>=1
Tutorial/Demo
DS41178A-page 25
DACON0
shows
DAC Output
enabled
Waveform
Arbitrary
button