- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using a CY8C6247BZI-D54 and PSoC Creator 4.4. Trying to configure the ADC and am getting strange results. I am using single-ended inputs and configured to Vdda and Vssa. The voltage range says 0 to 3.3V and dialog says 12 bits. But, the SE bit range shows 0 to 0x7ff. I would expect 0 to 0xfff. I have experimented with different settings and get the same results.
Thoughts?
Thanks,
Todd
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Tags:
- adc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Todd,
For single-ended mode with VMINUS connected to VSSA, conversions are effectively 11-bit because voltages cannot swing below VSSA on any PSoC 6 MCU pin. Because of this, the global configuration bit SINGLE_ENDED_SIGNED (SAR_SAMPLE_CTRL[2]) will be ignored and the result is always (0x000-0x7FF). See the table below.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Todd from WI,
You are correct. A 12-bit code unsigned range is 0x00 to 0xFFFF. = (2^12) -1 = 0v0000 1111 1111 1111
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Todd,
For single-ended mode with VMINUS connected to VSSA, conversions are effectively 11-bit because voltages cannot swing below VSSA on any PSoC 6 MCU pin. Because of this, the global configuration bit SINGLE_ENDED_SIGNED (SAR_SAMPLE_CTRL[2]) will be ignored and the result is always (0x000-0x7FF). See the table below.
Best Regards,
Vasanth