Not applicable
Oct 03, 2013
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 03, 2013
09:31 AM
Hello,
I'm trying to use the DTS on the XMC4400 via DAVE3. The code is generated but it seems that power for that peripheral is missing. so I tried to activate it with
SCU_GENERAL->DTSCON = 0; // reset is power off with "1" in LSB
but that setting is rejected by the register. Is there anything to be done in advace to the power on? I did not find that peripheral in the reset list as others !!
Best regards
Uwe
I'm trying to use the DTS on the XMC4400 via DAVE3. The code is generated but it seems that power for that peripheral is missing. so I tried to activate it with
SCU_GENERAL->DTSCON = 0; // reset is power off with "1" in LSB
but that setting is rejected by the register. Is there anything to be done in advace to the power on? I did not find that peripheral in the reset list as others !!
Best regards
Uwe
- Tags:
- IFX
3 Replies
Not applicable
Oct 04, 2013
01:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 04, 2013
01:33 AM
Hi Uwe,
This is my code and it works fine:
Is your code the same as mine?
This is my code and it works fine:
int main(void)
{
// status_t status; // Declaration of return variable for DAVE3 APIs (toggle comment if required)
uint32_t Temp = 0;
DAVE_Init(); // Initialization of DAVE Apps
TMPS001_Enable();
while(1)
{
TMPS001_StartMeasurement();
delay(150000); // 0.5msec delay
Temp = TMPS001_ReadTemp();
}
return 0;
}
Is your code the same as mine?
Not applicable
Oct 04, 2013
03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 04, 2013
03:54 AM
Hi Jackson,
I did not see the macro in the header file so far, I'm sorry.
But it is working now, since I replaced the delay-statement (where is it defined??) with this
The temperature is about 42 degrees which seems to be OK.
Thanks very much for your help. Have a nice weekend !
Uwe
I did not see the macro in the header file so far, I'm sorry.
But it is working now, since I replaced the delay-statement (where is it defined??) with this
while (TMPS001_GetStatus() != TMPS001_READY) {}
The temperature is about 42 degrees which seems to be OK.
Thanks very much for your help. Have a nice weekend !
Uwe
Not applicable
Oct 07, 2013
01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 07, 2013
01:37 AM
Hi Uwe,
The delay function is not defined in the code generated.
That's the my application code. Basically, just need to indicated there is a delay in between start measurement and read temperature.
Sorry for not stated it clearly.
The delay function is not defined in the code generated.
That's the my application code. Basically, just need to indicated there is a delay in between start measurement and read temperature.
Sorry for not stated it clearly.