DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

P87LPC779 View Datasheet(PDF) - Philips Electronics

Part Name
Description
Manufacturer
P87LPC779 Datasheet PDF : 74 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
Philips Semiconductors
P87LPC779
CMOS single-chip 8-bit microcontroller
ADRead:
orl ADCON,A
setb ADCS
ADChk:
jnb ADCI,ADChk
mov A,DAC0
clr ADCI
anl ADCON,#0fch
ret
; Add in the new channel number.
; Start A/D conversion.
; Wait for ADCI to be set.
; Get A/D result.
; Clear the A/D completion flag.
; Clear the A/D channel number.
8.5 Digital to Analog Converter (DAC) outputs
The P87LPC779 provides a two channel, 8-bit DAC function. DAC0 is also part of the
A/D Converter and is should not be enabled while the A/D is active. The DAC outputs
function down to a VDD of 3.0 V. Digital outputs must be disabled on the DAC output
pins while the corresponding DAC is enabled, as described in Section 8.2 “Analog
functions” on page 12.
The DACs use the power supply as the references: VDD as the upper reference and
VSS as the lower reference. The DAC output is generated by a tap from a resistor
ladder and is not buffered. The maximum resistance to VDD or VSS from a DAC output
is 10 k. Care must be taken with the loading of the DAC outputs in order to avoid
distortion of the output voltage. DAC accuracy is affected by noise generated on-chip
and elsewhere in the application. Since the P87LPC779 power pins are used for the
DAC references, the power supply also affects the accuracy of the DAC outputs.
The ideal DAC output may be calculated as follows:
Result
=
(
DAC
value
+
0.5 )
×
V-----D---D----------V----S---S
256
(2)
where DAC Value is the contents of the relevant DAC register: DAC0 or DAC1.
D/A CONVERTER
ENDACn
VREF+ = VDD
DACn pin
VREF- = VSS
ADCON
DACn
(D/A conversion, write DACn)
002aaa817
Fig 6. DAC block diagram.
8.6 Analog comparators
Two analog comparators are provided on the P87LPC779. Input and output options
allow use of the comparators in a number of different configurations. Comparator
operation is such that the output is a logic 1 (which may be read in a register and/or
routed to a pin) when the positive input (one of two selectable pins) is greater than the
9397 750 13213
Product data
Rev. 02 — 03 May 2004
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
17 of 74

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]