- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am developing my project using "CY8C58LP" this chip and in Datasheet i have found that this chip have built in temperature sensor , but i don't found the specific GPIO pin or anything like how to use it , or how to design driving circuit for it? or may br i am mis-understanding that this chip have built in temperature sensor to measure the temperature of the chip itself? please answer as soon as possible.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I imagine you are talking about DieTemp.
I tried with CY8CKIT-059.
Schematic
pin list
main.c
================
#include "project.h"
#include "stdio.h"
#define STR_LEN 64
char str[STR_LEN+1] ;
void print(char *str)
{
UART_PutString(str) ;
}
void cls(void)
{
print("\033c") ; /* reset */
CyDelay(100) ;
print("\033[2J") ; /* clear screen */
CyDelay(100) ;
}
int main(void)
{
cystatus status ;
int16_t temp ;
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start() ;
cls() ;
snprintf(str, STR_LEN, "DieTemp Test (%s %s)\n", __DATE__, __TIME__) ;
print(str) ;
CyDelay(10) ;
print("Method 1: using Start() and Query() \n") ;
status = DieTemp_Start() ;
if (status == CYRET_STARTED) {
while(status != CYRET_SUCCESS) {
status = DieTemp_Query(&temp) ;
}
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
print("Method 2: using GetTemp() \n") ;
status = DieTemp_GetTemp(&temp) ;
if (status == CYRET_SUCCESS) {
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
for (;;) {
// the rest is silence
}
}
================
TeraTerm Log
According to the datasheet
======================
The Die Temperature reading returned on the first sequence of DieTemp_Start() followed by DieTemp_Query() can be unreliable,
so you must do this sequence twice and use the value returned from the second sequence.
======================
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I imagine you are talking about DieTemp.
I tried with CY8CKIT-059.
Schematic
pin list
main.c
================
#include "project.h"
#include "stdio.h"
#define STR_LEN 64
char str[STR_LEN+1] ;
void print(char *str)
{
UART_PutString(str) ;
}
void cls(void)
{
print("\033c") ; /* reset */
CyDelay(100) ;
print("\033[2J") ; /* clear screen */
CyDelay(100) ;
}
int main(void)
{
cystatus status ;
int16_t temp ;
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start() ;
cls() ;
snprintf(str, STR_LEN, "DieTemp Test (%s %s)\n", __DATE__, __TIME__) ;
print(str) ;
CyDelay(10) ;
print("Method 1: using Start() and Query() \n") ;
status = DieTemp_Start() ;
if (status == CYRET_STARTED) {
while(status != CYRET_SUCCESS) {
status = DieTemp_Query(&temp) ;
}
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
print("Method 2: using GetTemp() \n") ;
status = DieTemp_GetTemp(&temp) ;
if (status == CYRET_SUCCESS) {
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
for (;;) {
// the rest is silence
}
}
================
TeraTerm Log
According to the datasheet
======================
The Die Temperature reading returned on the first sequence of DieTemp_Start() followed by DieTemp_Query() can be unreliable,
so you must do this sequence twice and use the value returned from the second sequence.
======================
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for the kind reply, we are planning to work with the CYPRESS "CY8C5467LTI" chip , and as we are new to this we have several questions on this.
1] it is not specified in the datasheet that which pins can be used as ADC and which should use as DAC, as we have ADC and DAC in our application and this chip also have built in ADC and DAC but we are not able to find the specified pin numbers in the datasheet.
2]as per the datasheet this chip have built in LCD drive capabilities, what is exact meaning of this? we mean we want to use 320*240 resolution Touch Display , is this possible? if es then using which pins?
3] "https://download.mikroe.com/documents/smart-displays/mikromedia/3/psoc5-lp/mikromedia-for-psoc-5lp-schematic-v101.pdf"
as per the above PDF , which display they are using, is this display only or display with touch control.
we are sorry for the silly questions as we are new to this , please take a bit amount of time to answer our question , it will be really appreciable.
Thanks & Regards
Jagrutkumar Vaghela
-
On Thu, 17 Oct 2019 12:33:15 +0530 Motoo Tanaka <community-manager@cypress.com> wrote -
http://www.cypress.com
https://community.cypress.com/?et=watches.email.thread
how to use Temperature sensor of "CY8C58LP" ? which GPIO? please share the Hardware Connections or schematic if possible.
reply from https://community.cypress.com/people/MoTa_728816?et=watches.email.thread in PSoC 5LP MCU Community - https://community.cypress.com/message/212227?et=watches.email.thread#212227
Hi,
I imagine you are talking about DieTemp.
I tried with CY8CKIT-059.
Schematic
https://community.cypress.com/servlet/JiveServlet/showImage/2-212227-428946/000-schematic.JPG
pin list
https://community.cypress.com/servlet/JiveServlet/showImage/2-212227-428947/001-pin-list.JPG
main.c
================
#include "project.h"
#include "stdio.h"
#define STR_LEN 64
char str[STR_LEN+1] ;
void print(char *str)
{
UART_PutString(str) ;
}
void cls(void)
{
print("\033c") ; /* reset */
CyDelay(100) ;
print("\033[2J") ; /* clear screen */
CyDelay(100) ;
}
int main(void)
{
cystatus status ;
int16_t temp ;
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start() ;
cls() ;
snprintf(str, STR_LEN, "DieTemp Test (%s %s)\n", __DATE__, __TIME__) ;
print(str) ;
CyDelay(10) ;
print("Method 1: using Start() and Query() \n") ;
status = DieTemp_Start() ;
if (status == CYRET_STARTED) {
while(status != CYRET_SUCCESS) {
status = DieTemp_Query(&temp) ;
}
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
print("Method 2: using GetTemp() \n") ;
status = DieTemp_GetTemp(&temp) ;
if (status == CYRET_SUCCESS) {
snprintf(str, STR_LEN, "%d\n", temp) ;
UART_PutString(str) ;
}
for (;;) {
// the rest is silence
}
}
================
TeraTerm Log
https://community.cypress.com/servlet/JiveServlet/showImage/2-212227-428951/000-TeraTerm-log.JPG
moto
Reply to this message by replying to this email, or https://community.cypress.com/message/212227?et=watches.email.thread#212227
Start a new discussion in PSoC 5LP MCU Community by mailto:discussions-community-MCU-psoc--5@broadcomwiced-v8.hosted.jivesoftware.com or at https://community.cypress.com/choose-container.jspa?contentType=1&containerType=14&container=2171&et=watches.email.thread
Following https://community.cypress.com/message/212227?et=watches.email.thread#212227 in these streams:
Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may https://community.cypress.com/unsubscribe.jspa?email=jagrutvaghela%40vegg.co.in&token=c37e62121257f4f5b09c84763a959524f855011f48613413031a85f1394d5eb1 instantly from Cypress Developer Community, or adjust email frequency in your https://community.cypress.com/user-preferences!input.jspa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Jagrutkumar-san,
> Thank you for the kind reply,
> we are planning to work with the CYPRESS "CY8C5467LTI" chip ,
> and as we are new to this we have several questions on this.
In this community I think that we would like to have 1 question and 1 answer per topic,
so that other people can find question - answer easily.
So if you have more questions not directly related to the original topic/question,
please post a new question for that with appropriate title.
I would recommend you to post a couple of topics,
one for ADC, and the other for LCD Display.
Meantime, if my response to the original question worked for you
please mark it as a "Correct Answer",
or please let me know how my response did not work.
Best Regards,
21-Oct-2019
Motoo Tanaka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes i will now post different questions for the different topics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!