Nancy Neff

Bug in PE in CW v10.6 for ADC component

Discussion created by Nancy Neff on Jul 19, 2015
Latest reply on Jul 20, 2015 by Nancy Neff

I can't find where to report bugs, so I'll post it here in case anyone runs into the problem I had:  I created an ADC_LDD component and tried to set the reference voltage to external (VDDA/VSSA) in the Component Inspector.  I discovered that no matter how I set that attribute, it had no effect on the value actually in the register, so I had to set it manually in my own initialization code.  Include the header file for your ADC component, and in your own code write ADC_SC2 = ADC_SC2_REFSEL(0x01); to set the reference voltage to VDDA/VSSA.

Outcomes