You are here

different mode of input channels of ADC | Cypress Semiconductor

different mode of input channels of ADC

Summary: 15 Replies, Latest post by chaplin.u_1533771 on 08 Nov 2016 05:46 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
chaplin.u_1533771's picture
User
105 posts

ADC have possibility to select different mode of input channels but when I select it I receive error ( see pic).

Something wrong with configuration or it`s not possible to mix ?

Attachments: 
user_1377889's picture
User
9606 posts

You cannot use two muxes one after the other.  Best solution for you will be to increase the number of channels for the ADC and remove the hardware mux.

 

Bob

chaplin.u_1533771's picture
User
105 posts

I made it but it`s not work :(

 

user_1377889's picture
User
9606 posts

My crystal ball is out of order ;-), so can you tell me what does not work?

As a general tip: The sequencing ADC will scan all its enabled sources (one after the other) with a single call. So there is no need to manually select one input after the other.

 

Bob

chaplin.u_1533771's picture
User
105 posts

I tried without it but same result. Value is 0

user_1377889's picture
User
9606 posts

Designing binary: Runs or doesn't run   ;-)

What values have

    static int32 temperature  
    int32 thermistorResistance
    int16 referenceVoltage
    int16 thermistorVoltage
    int16 offsetVoltage

at end of  ProcessTemperature()

and which kit are you using? CY8CKIT-0???

 

Bob

 

chaplin.u_1533771's picture
User
105 posts

1.

2.

 

 

user_1377889's picture
User
9606 posts

CY8CKIT ?

user_242978793's picture
User
1033 posts

Channel 2 of the ADC  is connected to Ground so it will always read 0.

chaplin.u_1533771's picture
User
105 posts

Same KIT , same project

chaplin.u_1533771's picture
User
105 posts

bobgoar you right it`s always 0 but work

Log in to post new comments.