Psoc1 CY8C28452 Microcontroller ADC

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Dear sir,

   

                  I am working on CY8C28452.I try to configure ADC but its not working.  I also attached my circuit diagram and code.
                 I display result of adc on segment, but it will show different value.Please guide me where am i wrong.

   

Thanks & Regards,

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

Because you configured your ADC as signed 14 bit you should use the ADC_iGetData() API which will return a signed integer. This might not fit on your display, so you need to scale the result accordingly.

   

Think to by a more modern CY8CKIT-043 Prototyping Kit which has debug capabilities built-in.

   

 

   

Bob

0 Likes