Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

saurabh
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hello community,

I have been trying to read analog data on CY8c4245ACI-483 MCU. Is there any specific reference that could be helpful??

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

It worked on my device.

That is a good news 😉

 

We can access the datasheet of the component by

(1) From "Open Datasheet" link in the Component Catalog (right side area of the WorkBench)

(2) Double clicking the component (this time ADC SAR Seq) and in its Configuration Window

     select "Datasheet" button.

WorkBench

000-component_catalog.JPG

Configure ADC

001-Config_ADC.JPG

Datasheet

002-ADC_Datasheet.JPG

In the Datasheet the concept/usage of the component is explained.

Meantime, when we see the "Configure ADC" Dialog above, 

we can notice that the "Average mode" is "Accumulate" which accumulate the result specified times

and ends up larger value (= higher resolution) so you got more than 12 bit data here.

You can change it to "Fixed" so that the value always stays within the bit width.

 

moto

View solution in original post

4 Replies
MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

I could not find CY8C4245ACI-483 from the datasheet I have.

If it was CY8C4245AXI-483, which is the device used in CY8CKIT-042,

I wrote an ADC sample while ago (attached).

Or if you need read other type of analog data,

you need to explain what kind of data you want to measure.

moto

Well @MotooTanaka , that was really helpful. It worked on my device. I just have one query, the resolution is 12-bit so technically, 4096 should be the max value but I get max value nearby 16000. What could possibly be wrong?

0 Likes
MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

It worked on my device.

That is a good news 😉

 

We can access the datasheet of the component by

(1) From "Open Datasheet" link in the Component Catalog (right side area of the WorkBench)

(2) Double clicking the component (this time ADC SAR Seq) and in its Configuration Window

     select "Datasheet" button.

WorkBench

000-component_catalog.JPG

Configure ADC

001-Config_ADC.JPG

Datasheet

002-ADC_Datasheet.JPG

In the Datasheet the concept/usage of the component is explained.

Meantime, when we see the "Configure ADC" Dialog above, 

we can notice that the "Average mode" is "Accumulate" which accumulate the result specified times

and ends up larger value (= higher resolution) so you got more than 12 bit data here.

You can change it to "Fixed" so that the value always stays within the bit width.

 

moto

Well it worked. Thank you for the detailed explanation.