- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using CY8CKIT-044 kit for development .I am using VDD as reference and channel is configured as 12 bit resolution .
For voltage range below 3.3 it is working fine .
However if i apply 3.3 volt to channel ,reading sometimes exceed 4095 like 4096 and 4097 ,
since it has 12 bit resolution how values are coming more than that . I want to understand why it is happening and is it normal
or not .
Below are the settings that i have used and isr snippet:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
By selecting the Average Mode equal Accumulate, you allow the number to grow up to a 16-bit value.
If you want to make sure the value do not grown beyond the maximum value for the given resolution (12-bits), choose the Fixed Resolution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
By selecting the Average Mode equal Accumulate, you allow the number to grow up to a 16-bit value.
If you want to make sure the value do not grown beyond the maximum value for the given resolution (12-bits), choose the Fixed Resolution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi rlos,
If i select fixed resolution then the adc reading's are coming half of the actual value .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That makes sense. Refer to the table in page 8 in the ADC datasheet:
2*Vref -> 0x0FFF
Vref -> 0x0800
Vss -> 0x0000
Your Vref is set to VDDA, that means if your input is VDDA, you will get a value around 0x800 (2048).