Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Hi, I'm starting to program in PSOC and I have problem with the ADCINC, I made a program for read a LM35, but when i conected it, to psoc it only read cero, if a remplace with a pot i can see the variation, i have been searching a explain but i cant found it. I hope that you can help me. I anex the code. excuse me for me redaction y and the coments in spanish.
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
#include "stdlib.h" //incluimos la libreria para conversiones
#include "delay.h" //incluimos la libreria para retardos
#include "string.h" //incluimos libreria para punto flotante
#define _FTOA_TOO_LARGE -2
#define _FTOA_TOO_SMALL -1
/*El programa realizará una conversion analogica a digital para detectar temperatura mediante un sensor LM35
y visualizarlo posteriormente mediante un LCD con barra grafica.