Temperature sensing in PSOC1

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

cross mob
Anonymous
Not applicable

Hi Everyone,

   

Currently now i'm able to read two temperature values through ADC[i.e for 60 & 90 degree],

   

I'm reading this temperature by calculating values given in the NTC thermistor table.

   

But now i'm not able to read more than 2 temperatures,I have defined atleast 5  tempeartures,

   

but able to read only 2,Kindly suggest how to read multiple temperature values through ADC.

   

Regards,

   

Angiey

0 Likes
8 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Since we do not know how you set up your PSoC1 it will be very difficult to give you advices. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Designer->File->Archive Project
and attach the resulting file.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Kindly find the attached archive project.

   

Output of the temperature is taken from the ADCModule in the code.

   

But in the main design characteristics I have not done any changes,like in the different

   

modules attached in the project.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Sounds like your ADC range is not sufficient to handle a wide enough range

   

of the V being measured.

   

 

   

http://www.cypress.com/forum/psoc-community-components/psoc-today-usb-psoc-3-pulse-generator-project...     AN2017 - PSoC® 1 Temperature Measurement with Thermistor

   

http://www.cypress.com/documentation/application-notes-obsolete/an2395-psoc-1-thermistor-lookup-tabl...    AN2395 - PSoC® 1 Thermistor Lookup Table Generation Tool

   

http://www.cypress.com/documentation/application-notes/an78920-psoc-1-temperature-measurement-using-...     AN78920 - PSoC® 1 Temperature Measurement Using Diode

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Yes i'm not getting how to handle the ADC range.

   

Thanks for the links i'll go through it.

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

Can the reason be that only P0_0 and P0_1 are defined as analog input, but your further requested pins P0_2,4 and 6 are defined as digital?

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I noticed a couple of things -

   

 

   

1) SAR input is not set in SAR properties window.

   

 

   

2) You have many pins that you did not functionally name, makes life easy

   

to troubleshoot, prototype when functional names are given to all the pins.

   

In the pinout view just double click pin and give it a functional name.

   

 

   

3) You have mixed I/O in at least one port, which means you are probably doing

   

read modify writes to the port. You need to use shadow register(s) on any port

   

where you are doing this.

   

 

   

https://www.youtube.com/watch?v=tei6q5M3C0g                                                                                                                         Shadow Registers

   

http://www.cypress.com/?rID=39497                                                                                                                                                    Shadow Registers

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thank you for the observation made.

   

But before, I had tested connecting the SAR input to P0.4 pin of ADC for temperature measurement,

   

but didn't find any changes after connecting it.

   

Meanwhile I have not used shadow registers will try doing it.

   

Regards,

   

Angiey.

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

I still suggest to adjust the required drive mode of the pins to Analog input!

   

 

   

Bob

0 Likes