Content originally posted in LPCWare by LRWEng on Fri Feb 13 11:55:21 MST 2015
Hello;;
I think I'm clear on how to enable the DAC function and make it work. My issue is with the ambiguities in the Spec Sheet and User Manual for this part describing which PINS and what conditions the DAC signal appears on particular pins. (BGA256)
The ENAIO1 and ENAIO2 registers are part of the SCU. And ENAIO2 specifically
15.4.8 Analog function select register
For pins which have digital and analog functions, this register selects the analog DAC and
band gap function over any of the possible digital functions.
In addition, the DAC function is pinned out on a dedicated analog pin which is not affected
by this register.
The following pins are controlled by the ENAIO2 register: -- refers to PIN4.4 where setting this bit Overrides the ADC function for that particular pin. The "dedicated" pin referred to in the quote above (E3) ---- is NOT truly dedicated to the DAC. It is shared with ADC. So does setting this bit in ENAIO2 bring DAC out on MULTIPLE PINS??
In the question above -- I referred to other pins which were described as possible DAC output pins. But that bit in ENAIO2 is the ONLY place where there seems to be a routing choice given.. See the original question for pins mentioned as possible DAC outputs.